/* Williamsburg Harvest Celebration - broadside stylesheet */
:root {
  --whc-parchment: #F7F2E7;
  --whc-ink: #1F1A17;
  --whc-russet: #9A3412;
  --whc-russet-deep: #7C2D12;
  --whc-bayberry: #365314;
  --whc-laid: #EFE7D6;
  --whc-laid-deep: #E3D7BE;
  --whc-rule: rgba(31, 26, 23, 0.28);
  --whc-rule-soft: rgba(31, 26, 23, 0.14);
  --whc-serif: 'IM Fell DW Pica', 'Iowan Old Style', Georgia, serif;
  --whc-sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --whc-mono: 'Courier Prime', 'Courier New', monospace;
  --whc-measure: 68ch;
  --whc-gutter: clamp(1rem, 4vw, 2.75rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
.whc-body {
  margin: 0;
  background: var(--whc-parchment);
  background-image: repeating-linear-gradient(0deg, rgba(31,26,23,0.025) 0 1px, transparent 1px 7px);
  color: var(--whc-ink);
  font-family: var(--whc-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--whc-russet); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--whc-russet-deep); }
.whc-skip { position: absolute; left: -999px; top: 0; background: var(--whc-ink); color: var(--whc-parchment); padding: .5rem 1rem; z-index: 20; }
.whc-skip:focus { left: 1rem; top: 1rem; }
.whc-tally { font-family: var(--whc-mono); font-size: .92em; letter-spacing: 0; }

/* dateline + imprint */
.whc-dateline {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .9rem;
  padding: .45rem var(--whc-gutter);
  background: var(--whc-ink); color: var(--whc-laid);
  font-family: var(--whc-serif); font-size: .9rem; letter-spacing: .04em;
}
.whc-dateline-fleuron { color: #C9A46A; }
.whc-imprint { border-bottom: 3px double var(--whc-rule); background: var(--whc-parchment); }
.whc-imprint-inner {
  max-width: 76rem; margin: 0 auto; padding: 1.1rem var(--whc-gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
}
.whc-colophon-mark { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--whc-ink); }
.whc-mark-glyph { width: 50px; height: 50px; flex: none; }
.whc-mark-shell { fill: var(--whc-laid-deep); stroke: var(--whc-ink); stroke-width: 2; stroke-linejoin: round; }
.whc-mark-rib { fill: none; stroke: var(--whc-ink); stroke-width: 1.4; stroke-linecap: round; }
.whc-mark-apple { fill: var(--whc-russet); stroke: var(--whc-ink); stroke-width: 1.4; }
.whc-mark-words { display: flex; flex-direction: column; line-height: 1.1; }
.whc-mark-name { font-family: var(--whc-serif); font-size: clamp(1.25rem, 2.6vw, 1.7rem); letter-spacing: .01em; }
.whc-mark-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--whc-bayberry); margin-top: .3rem; }
.whc-masthead-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; }
.whc-masthead-link {
  font-family: var(--whc-serif); font-size: 1.1rem; color: var(--whc-ink); text-decoration: none;
  padding: .25rem 0; border-bottom: 2px solid transparent;
}
.whc-masthead-link:hover, .whc-masthead-link[aria-current="page"] { border-bottom-color: var(--whc-russet); color: var(--whc-russet-deep); }

/* main broadsheet */
.whc-broadsheet { max-width: 76rem; margin: 0 auto; padding: 1.5rem var(--whc-gutter) 4rem; }
.whc-trail { font-size: .85rem; margin: 0 0 1.5rem; color: rgba(31,26,23,.72); }
.whc-trail-sep { margin: 0 .5rem; }

/* broadside hero */
.whc-broadside {
  border: 1px solid var(--whc-rule); outline: 1px solid var(--whc-rule); outline-offset: 4px;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3.5rem);
  text-align: center; background: var(--whc-laid);
  margin: .5rem 0 2.5rem;
}
.whc-broadside-kicker { font-family: var(--whc-serif); font-style: italic; letter-spacing: .06em; margin: 0 0 .5rem; color: var(--whc-bayberry); }
.whc-broadside-title {
  font-family: var(--whc-serif); font-weight: 400; font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.02; margin: 0 0 1rem; letter-spacing: -.005em;
}
.whc-broadside-title em { font-style: italic; color: var(--whc-russet); }
.whc-broadside-rule { width: 9rem; height: 0; margin: 1.2rem auto; border: 0; border-top: 1px solid var(--whc-bayberry); position: relative; }
.whc-broadside-rule::after { content: '\2766'; position: absolute; left: 50%; top: -.8em; transform: translateX(-50%); background: var(--whc-laid); padding: 0 .5rem; color: var(--whc-bayberry); font-size: 1.1rem; }
.whc-broadside-lede { font-family: var(--whc-serif); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.45; max-width: 48rem; margin: 0 auto 1.2rem; }
.whc-broadside-notice { font-size: .92rem; color: rgba(31,26,23,.8); margin: 0 auto; max-width: 42rem; }
.whc-broadside-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1rem; margin-top: 1.6rem; }
.whc-button {
  display: inline-block; background: var(--whc-russet); color: var(--whc-parchment); text-decoration: none;
  font-family: var(--whc-sans); font-weight: 500; padding: .7rem 1.3rem; border: 1px solid var(--whc-russet-deep);
  box-shadow: 3px 3px 0 var(--whc-ink);
}
.whc-button:hover { background: var(--whc-russet-deep); color: var(--whc-parchment); }
.whc-button-quiet { display: inline-block; font-family: var(--whc-serif); font-size: 1.1rem; padding: .7rem 0; color: var(--whc-ink); }

/* section plates */
.whc-leaf { margin: 0 0 3.5rem; }
.whc-leaf-head { display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--whc-rule); margin-bottom: 1.4rem; padding-bottom: .4rem; }
.whc-leaf-no { font-family: var(--whc-mono); font-size: .85rem; color: var(--whc-bayberry); white-space: nowrap; }
.whc-leaf-title { font-family: var(--whc-serif); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0; line-height: 1.15; }
.whc-leaf-intro { max-width: var(--whc-measure); font-size: 1.1rem; }
.whc-two-col { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 60rem) { .whc-two-col { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

/* provisioner */
.whc-banquet {
  background: var(--whc-laid); border: 1px solid var(--whc-rule); padding: clamp(1.1rem, 3vw, 2rem);
  display: grid; grid-template-columns: 1fr; gap: 1.6rem;
}
@media (min-width: 56rem) { .whc-banquet { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); } }
.whc-banquet-form { display: grid; gap: 1rem; align-content: start; }
.whc-field label, .whc-field .whc-field-label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: .35rem; color: var(--whc-bayberry); }
.whc-field input[type="number"], .whc-field select {
  width: 100%; font: inherit; font-family: var(--whc-mono); padding: .55rem .7rem; background: var(--whc-parchment);
  border: 1px solid var(--whc-ink); color: var(--whc-ink); border-radius: 0;
}
.whc-field input[type="range"] { width: 100%; accent-color: var(--whc-russet); margin-top: .5rem; }
.whc-field-hint { font-size: .82rem; color: rgba(31,26,23,.72); margin: .3rem 0 0; }
.whc-banquet-result { border-left: 1px solid var(--whc-rule); padding-left: clamp(0rem, 3vw, 1.6rem); }
@media (max-width: 55.99rem) { .whc-banquet-result { border-left: 0; border-top: 1px solid var(--whc-rule); padding-top: 1.2rem; } }
.whc-banquet-note { font-family: var(--whc-serif); font-style: italic; font-size: 1.05rem; margin: 0 0 1rem; }
.whc-cellar-tally { margin: 0; }
.whc-tally-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .5rem 1rem; padding: .7rem 0; border-bottom: 1px dotted var(--whc-rule); }
.whc-tally-row:last-child { border-bottom: 0; }
.whc-tally-row dt { font-family: var(--whc-serif); font-size: 1.05rem; }
.whc-tally-row dd { margin: 0; }
.whc-tally-row dd .whc-tally { font-size: 1.35rem; color: var(--whc-russet-deep); }
.whc-tally-unit { font-family: var(--whc-mono); font-size: .85rem; margin-left: .35rem; color: var(--whc-bayberry); }
.whc-tally-detail { display: block; font-size: .85rem; color: rgba(31,26,23,.74); margin-top: .15rem; }
.whc-banquet-method { font-size: .9rem; color: rgba(31,26,23,.8); margin: 1rem 0 0; max-width: var(--whc-measure); }

/* plate / svg */
.whc-plate { margin: 0 0 1rem; }
.whc-plate-svg { width: 100%; height: auto; display: block; border: 1px solid var(--whc-rule); background: var(--whc-parchment); }
.whc-plate-caption { font-family: var(--whc-serif); font-style: italic; font-size: .95rem; margin-top: .6rem; color: rgba(31,26,23,.8); }
.whc-svg-ink { fill: var(--whc-ink); }
.whc-svg-frame { fill: none; stroke: var(--whc-ink); stroke-width: 1; }
.whc-svg-head { font-family: var(--whc-serif); font-size: 18px; fill: var(--whc-ink); }
.whc-svg-tally { font-family: var(--whc-mono); font-size: 11px; fill: var(--whc-ink); }
.whc-svg-label { font-family: var(--whc-serif); font-size: 14px; fill: var(--whc-ink); }
.whc-svg-label-i { font-style: italic; }
.whc-svg-water { stroke: var(--whc-ink); stroke-width: 1.2; }
.whc-svg-coast { fill: none; stroke: var(--whc-ink); stroke-width: 1.6; }
.whc-svg-coast-thin { stroke-width: .8; stroke-dasharray: 3 3; }
.whc-svg-river { fill: none; stroke: var(--whc-bayberry); stroke-width: 2; stroke-linecap: round; }
.whc-svg-oyster path { fill: var(--whc-laid-deep); stroke: var(--whc-ink); stroke-width: 1.2; }
.whc-svg-axis { fill: none; stroke: var(--whc-ink); stroke-width: 1; }
.whc-svg-timber { fill: #C9A46A; stroke: var(--whc-ink); stroke-width: 1.2; }
.whc-svg-screw path { fill: none; stroke: var(--whc-ink); stroke-width: 2; }
.whc-svg-rack { fill: var(--whc-laid-deep); stroke: var(--whc-ink); stroke-width: .8; }
.whc-svg-pomace { fill: var(--whc-russet); fill-opacity: .55; }
.whc-svg-juice { fill: var(--whc-russet); stroke: var(--whc-ink); stroke-width: .8; }

/* bill of fare */
.whc-fare-wrap { margin: 1.5rem 0 2rem; overflow-x: auto; }
.whc-bill-of-fare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.whc-bill-of-fare caption { caption-side: top; text-align: left; font-family: var(--whc-serif); font-size: 1.2rem; padding: 0 0 .6rem; }
.whc-bill-of-fare th, .whc-bill-of-fare td { padding: .55rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--whc-rule-soft); }
.whc-bill-of-fare thead th { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid var(--whc-ink); }
.whc-bill-of-fare tbody th { font-family: var(--whc-serif); font-weight: 400; font-size: 1.05rem; }
.whc-bill-of-fare td.whc-tally, .whc-bill-of-fare .whc-tally { font-family: var(--whc-mono); }
.whc-fare-compact .whc-bill-of-fare { font-size: .9rem; }

/* foreword */
.whc-foreword { max-width: var(--whc-measure); font-family: var(--whc-serif); font-size: 1.2rem; line-height: 1.55; }
.whc-foreword p:first-of-type::first-letter { font-size: 3.4em; float: left; line-height: .8; padding: .08em .12em 0 0; color: var(--whc-russet); }
.whc-foreword-sign { font-style: italic; margin-top: 1.5rem; }

/* treatise */
.whc-treatise { max-width: 52rem; }
.whc-treatise-head { border-bottom: 3px double var(--whc-rule); padding-bottom: 1.2rem; margin-bottom: 1.6rem; }
.whc-treatise-no { font-family: var(--whc-mono); font-size: .82rem; color: var(--whc-bayberry); margin: 0 0 .6rem; }
.whc-title { font-family: var(--whc-serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; margin: 0 0 .8rem; }
.whc-lede { font-family: var(--whc-serif); font-size: 1.3rem; line-height: 1.45; margin: 0 0 .8rem; }
.whc-byline { font-size: .9rem; color: rgba(31,26,23,.75); margin: 0; }
.whc-prose { max-width: var(--whc-measure); }
.whc-prose h2 { font-family: var(--whc-serif); font-weight: 400; font-size: 1.75rem; line-height: 1.15; margin: 2.2rem 0 .7rem; }
.whc-prose h3 { font-family: var(--whc-serif); font-weight: 400; font-size: 1.3rem; margin: 1.6rem 0 .5rem; }
.whc-prose p, .whc-prose ul, .whc-prose ol { margin: 0 0 1rem; }
.whc-prose li { margin-bottom: .45rem; }
.whc-prose blockquote { margin: 1.4rem 0; padding: .4rem 0 .4rem 1.2rem; border-left: 3px solid var(--whc-russet); font-family: var(--whc-serif); font-size: 1.15rem; }
.whc-prose blockquote cite { display: block; font-size: .9rem; font-style: normal; font-family: var(--whc-sans); margin-top: .4rem; color: rgba(31,26,23,.72); }
.whc-cellar-tally.whc-prose-tally { border: 1px solid var(--whc-rule); background: var(--whc-laid); padding: .6rem 1rem; margin: 1.2rem 0 1.6rem; }
.whc-homeward {
  background: var(--whc-laid); border: 1px solid var(--whc-rule); padding: 1.3rem 1.5rem; margin: 0 0 1.8rem;
  box-shadow: 4px 4px 0 var(--whc-laid-deep);
}
.whc-homeward-kicker { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--whc-bayberry); margin: 0 0 .3rem; }
.whc-homeward-heading { font-family: var(--whc-serif); font-size: 1.45rem; margin: 0 0 .5rem; line-height: 1.2; }
.whc-homeward p:last-of-type { margin-bottom: 1rem; }
.whc-homeward-foot { margin-top: 2.5rem; }

/* tavern grid */
.whc-tavern { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.whc-tavern-card { border: 1px solid var(--whc-rule); background: var(--whc-laid); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; }
.whc-tavern-card h3 { font-family: var(--whc-serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 .4rem; line-height: 1.2; }
.whc-tavern-card p { margin: 0 0 .8rem; font-size: .96rem; }
.whc-tavern-card .whc-tally { font-size: .82rem; color: var(--whc-bayberry); margin-bottom: .5rem; }
.whc-tavern-card a { margin-top: auto; font-weight: 500; }

/* about */
.whc-society-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 56rem) { .whc-society-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.whc-ledger { border: 1px solid var(--whc-rule); background: var(--whc-laid); padding: 1.2rem 1.4rem; }
.whc-ledger h2 { font-family: var(--whc-serif); font-weight: 400; font-size: 1.4rem; margin: 0 0 .8rem; }
.whc-ledger dl { margin: 0; }
.whc-ledger dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--whc-bayberry); margin-top: .8rem; }
.whc-ledger dd { margin: .15rem 0 0; }

/* legal */
.whc-articles { max-width: var(--whc-measure); counter-reset: whc-article; }
.whc-articles h2 { counter-increment: whc-article; }
.whc-articles h2::before { content: 'Article ' counter(whc-article, upper-roman) '. '; color: var(--whc-russet); }

/* colophon footer */
.whc-colophon { border-top: 3px double var(--whc-rule); background: var(--whc-laid); padding: 2.4rem var(--whc-gutter) 1.5rem; font-size: .93rem; }
.whc-colophon-inner { max-width: 76rem; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.6rem 2rem; }
.whc-colophon-name { font-family: var(--whc-serif); font-size: 1.25rem; margin: 0 0 .5rem; }
.whc-colophon-brand p { margin: 0 0 .6rem; }
.whc-colophon-head { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--whc-bayberry); margin: 0 0 .6rem; }
.whc-colophon-col ul { list-style: none; margin: 0; padding: 0; }
.whc-colophon-col li { margin-bottom: .4rem; }
.whc-colophon-col a { color: var(--whc-ink); }
.whc-colophon-line { max-width: 76rem; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid var(--whc-rule-soft); font-size: .82rem; color: rgba(31,26,23,.7); text-align: center; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .whc-dateline, .whc-masthead, .whc-skip { display: none; } .whc-body { background: #fff; } }
