/* Virginia Wedding Reviews. The page is the object: a winery tasting list on white paper over claret. */
:root {
  --bg: #ffffff;
  --surface: #f4f4f2;
  --ink: #1f2b4d;
  --muted: #4d5470;
  --accent: #f7941d;
  --accent-ink: #1f2b4d;
  --claret: #4a1424;
  --claret-ink: #ffffff;
  --navy: #1f2b4d;
  --navy-ink: #ffffff;
  --warm: #e3e1dc;
  --m: clamp(16px, 2.4vw, 32px);
  --step-small: 0.9375rem;
  --step-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  --step-display: clamp(3rem, 4.8vw, 4.75rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --tear: polygon(0.00% 0px, 4.17% 10px, 8.33% 0px, 12.50% 10px, 16.67% 0px, 20.83% 10px, 25.00% 0px, 29.17% 10px, 33.33% 0px, 37.50% 10px, 41.67% 0px, 45.83% 10px, 50.00% 0px, 54.17% 10px, 58.33% 0px, 62.50% 10px, 66.67% 0px, 70.83% 10px, 75.00% 0px, 79.17% 10px, 83.33% 0px, 87.50% 10px, 91.67% 0px, 95.83% 10px, 100.00% 0px, 100.00% calc(100% - 0px), 95.83% calc(100% - 10px), 91.67% calc(100% - 0px), 87.50% calc(100% - 10px), 83.33% calc(100% - 0px), 79.17% calc(100% - 10px), 75.00% calc(100% - 0px), 70.83% calc(100% - 10px), 66.67% calc(100% - 0px), 62.50% calc(100% - 10px), 58.33% calc(100% - 0px), 54.17% calc(100% - 10px), 50.00% calc(100% - 0px), 45.83% calc(100% - 10px), 41.67% calc(100% - 0px), 37.50% calc(100% - 10px), 33.33% calc(100% - 0px), 29.17% calc(100% - 10px), 25.00% calc(100% - 0px), 20.83% calc(100% - 10px), 16.67% calc(100% - 0px), 12.50% calc(100% - 10px), 8.33% calc(100% - 0px), 4.17% calc(100% - 10px), 0.00% calc(100% - 0px));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--warm); color: var(--ink); font-family: Boska, 'Times New Roman', serif; font-size: var(--step-body); line-height: 1.5; letter-spacing: .005em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--navy); }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; line-height: .98; margin: 0; text-wrap: balance; }
p { margin: 0; }
em { font-style: italic; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:where(.top, .plate, .slip-row, .vista-grid, .stub-row, .card-back, .flights, .notes) > * { min-width: 0; }

/* the sheet: everything above the footer, so the footer is uncovered like a curtain */
.sheet { position: relative; z-index: 1; background: var(--bg); }

/* top row on the field */
.top { position: absolute; z-index: 3; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px var(--m); color: var(--claret-ink); }
.mono { font-style: italic; font-size: 26px; text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; min-height: 44px; }
.top-links { display: flex; gap: clamp(14px, 2vw, 30px); flex-wrap: wrap; justify-content: center; }
.top-links a { text-decoration: none; font-size: 17px; display: inline-flex; align-items: center; min-height: 44px; }
.top-links a:hover, .top-links a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--navy); color: var(--navy-ink); text-decoration: none; font-size: 17px; transition: background .2s, color .2s, transform .15s var(--ease); }
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn:active { transform: scale(.97); }

/* hero: the card, cropped by the bottom of the screen */
.hero { background: var(--claret); padding: 140px var(--m) 0; height: 100svh; min-height: 720px; overflow: hidden; display: flex; justify-content: center; }
.hero-short { height: auto; min-height: 0; padding-bottom: 0; }
.card { --cw: 640px; --cpad: 56px; --hpad: var(--m); --inner: calc(min(100vw - 2 * var(--hpad), var(--cw)) - 2 * var(--cpad)); position: relative; background: var(--bg); width: min(100%, var(--cw)); padding: 56px var(--cpad) 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; align-self: flex-start; }
.hero .card { min-height: calc((min(100vw - 2 * var(--m), 640px)) * 1.4); }
.card::before, .card::after { content: ''; position: absolute; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: var(--claret); }
.card::before { left: -22px; }
.card::after { right: -22px; }
.card h1 { font-size: min(var(--step-display), calc(var(--inner) / (var(--len, 15) * 0.48))); line-height: .95; display: flex; flex-direction: column; }
.card h1 .l1 { align-self: center; transform: translateX(-5%); }
.card h1 .l2 { align-self: center; transform: translateX(5%); }
.card-sub { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.card-details { font-size: 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.card-details .row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 14px; }
.card-details a { text-decoration: none; }
.card-details a:hover { text-decoration: underline; }
.dia { width: 8px; height: 8px; flex: none; background: var(--claret); transform: rotate(45deg); display: inline-block; }
.card-photo { margin: 16px 0 0; width: 100%; }
.card-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-short .card { --cw: 760px; padding-bottom: 56px; }

/* the tasting list */
.list { background: var(--bg); padding: clamp(120px, 12vw, 200px) var(--m) 0; }
.menu { max-width: 1120px; margin: 0 auto; }
.menu > h2 { font-size: var(--step-head); text-align: center; }
.menu-sub { text-align: center; max-width: 52ch; margin: 22px auto 0; font-size: var(--step-lead); line-height: 1.3; }
.regions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 40px auto 56px; }
.regions button { font: inherit; font-size: 18px; border: 0; background: var(--surface); color: var(--ink); padding: 10px 18px; cursor: pointer; transition: background .2s, transform .15s; }
.regions button:hover { background: var(--warm); }
.regions button:active { transform: scale(.97); }
.regions button[aria-pressed="true"] { background: var(--navy); color: var(--navy-ink); }
.flights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; }
.flight { padding-bottom: 64px; }
.flight-wide { grid-column: 1 / -1; }
.flight-wide .pours { columns: 2; column-gap: 72px; }
.flight h3 { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); font-style: italic; }
.flight h3 a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.flight h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.flight-sub { color: var(--muted); margin: 6px 0 20px; }
.flight-more { margin-top: 14px; font-size: 17px; }
.pours { list-style: none; padding: 0; margin: 0; }
.pours-wide { columns: 2; column-gap: 72px; }
.pour { padding: 12px 0; break-inside: avoid; }
.pour[hidden] { display: none; }
.pour-line { display: flex; align-items: last baseline; gap: 10px; }
.pour-name { font-size: 22px; font-weight: 500; text-decoration: none; line-height: 1.25; text-wrap: pretty; }
a.pour-name:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.leader { flex: 1; min-width: 24px; border-bottom: 4px dotted var(--warm); transform: translateY(-4px); }
.pour-rate { font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pour-note { font-size: 16px; line-height: 1.45; color: var(--muted); margin-top: 4px; }
.nw { white-space: nowrap; }
.pour-rec { background: var(--claret); color: var(--claret-ink); padding: 18px 20px; margin: 6px 0; }
.pour-rec .pour-note { color: #f0dfe3; }
.pour-rec .leader { border-color: #8a4a5a; }
.menu-count { text-align: center; color: var(--muted); font-size: 16px; margin-top: 8px; }

/* showcase: the stub */
.showcase { background: var(--claret); color: var(--claret-ink); margin-top: clamp(120px, 12vw, 200px); padding: clamp(80px, 8vw, 128px) var(--m); }
.showcase > h2 { font-size: var(--step-head); margin-bottom: 56px; }
.plate { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--bg); color: var(--ink); padding: 40px; clip-path: polygon(0 0, 100% 0, 100% calc(50% - 22px), calc(100% - 22px) 50%, 100% calc(50% + 22px), 100% 100%, 0 100%, 0 calc(50% + 22px), 22px 50%, 0 calc(50% - 22px)); }
.plate[hidden] { display: none; }
.plate-img img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.plate-text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.plate-tabs { display: flex; gap: 28px; }
.plate-tabs button { font: inherit; font-size: 18px; border: 0; background: none; color: var(--muted); padding: 0; min-height: 44px; cursor: pointer; }
.plate-tabs button[aria-selected="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.plate h3 { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); font-style: italic; }
.plate-desc { margin-top: 24px; max-width: 40ch; }
.plate-disclose { font-size: var(--step-small); color: var(--muted); margin-top: 16px; }
.plate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell { display: flex; align-items: center; height: 72px; padding: 0 22px; text-decoration: none; font-size: 18px; transition: background .2s, transform .15s var(--ease); }
.cell:active { transform: scale(.98); }
.cell-ink { background: var(--navy); color: var(--navy-ink); }
.cell-ink:hover { background: var(--accent); color: var(--accent-ink); }
.cell-tone { background: var(--surface); }
.cell-tone:hover { background: var(--warm); }

/* slips */
.slips { background: var(--navy); color: var(--navy-ink); padding: clamp(96px, 10vw, 160px) var(--m) clamp(120px, 12vw, 200px); overflow: hidden; }
.slips > h2 { font-size: var(--step-head); max-width: 14ch; }
.slip-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 64px 2% 0; align-items: start; }
.slip { margin: 0; background: var(--bg); color: var(--ink); padding: 48px 32px 60px; clip-path: var(--tear); transition: transform .4s var(--ease); }
.slip-0 { transform: rotate(-2.5deg); }
.slip-1 { transform: rotate(1.5deg) translateY(56px); }
.slip-2 { transform: rotate(3deg) translateY(12px); }
.slip:hover { transform: rotate(0) translateY(-6px); position: relative; z-index: 2; }
.slip-name { text-align: center; font-weight: 500; font-size: 18px; }
.slip-role { text-align: center; font-size: 16px; color: var(--muted); margin-top: 2px; }
.slip-text { margin-top: 22px; font-size: 18px; line-height: 1.55; }

/* vista: the photographs between pieces of stationery */
.vista { background: var(--bg); padding: clamp(120px, 12vw, 200px) var(--m) 0; }
.vista-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: min(78svh, 760px); }
.vista-grid img { width: 100%; height: 100%; object-fit: cover; min-height: 0; transition: transform 1.2s var(--ease); }
.vista-grid img:first-child { grid-row: span 2; }
.vista-h { font-size: var(--step-head); font-style: italic; margin-top: 36px; text-align: right; }

/* notes: answers as reading text */
.notes { background: var(--bg); display: grid; grid-template-columns: 3fr 9fr; gap: 0 48px; padding: clamp(120px, 12vw, 200px) var(--m) clamp(120px, 12vw, 200px); }
.notes h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-style: italic; }
.notes-text { columns: 2; column-gap: 56px; }
.notes-text p { break-inside: avoid; margin-bottom: 20px; font-size: 18px; line-height: 1.55; }
.notes-text strong { font-weight: 500; }

/* vendor stubs */
.stub-row { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; background: var(--claret); padding: 64px var(--m); }
.stub { background: var(--bg); color: var(--ink); padding: 28px; text-decoration: none; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; clip-path: polygon(0 0, 100% 0, 100% calc(50% - 14px), calc(100% - 14px) 50%, 100% calc(50% + 14px), 100% 100%, 0 100%, 0 calc(50% + 14px), 14px 50%, 0 calc(50% - 14px)); transition: transform .25s var(--ease); }
a.stub:hover { transform: translateY(-4px); }
.stub-dark { background: var(--navy); color: var(--navy-ink); }
.stub-n { font-size: clamp(3rem, 5vw, 5rem); line-height: .9; letter-spacing: -0.03em; }

/* review explorer */
.menu-reviews { max-width: 820px; }
.rx { margin-top: 48px; }
.rx-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.rx-label { display: block; font-size: 16px; color: var(--muted); margin-bottom: 6px; }
.rx input, .rx select { font: inherit; font-size: 19px; width: 100%; height: 60px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); padding: 0 18px; }
.rx input:focus, .rx select:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.rx-tries { margin-top: 16px; font-size: 16px; color: var(--muted); }
.rx-tries button { font: inherit; font-size: 16px; border: 0; background: var(--warm); color: var(--ink); padding: 0 14px; min-height: 40px; margin: 6px 4px 0 0; cursor: pointer; transition: background .2s; }
.rx-tries button:hover { background: var(--accent); }
.rx-count { margin: 32px 0 12px; color: var(--muted); font-size: 16px; }
.rv { padding: 28px 24px; }
.rv:nth-child(odd) { background: var(--surface); }
.rv-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 16px; align-items: baseline; }
.rv-name { font-weight: 500; }
.rv-src, .rv-stars { color: var(--muted); }
.rv-title { font-style: italic; margin-top: 8px; font-size: 19px; }
.rv-text { margin-top: 10px; max-width: 68ch; }
.rv mark { background: var(--accent); color: var(--ink); }
.rx-more { font: inherit; font-size: 18px; margin: 24px auto 0; display: block; border: 0; background: var(--navy); color: var(--navy-ink); padding: 16px 28px; cursor: pointer; transition: background .2s; }
.rx-more:hover { background: var(--accent); color: var(--accent-ink); }

/* footer: the back of the card, uncovered as the sheet lifts */
.foot { background: var(--warm); padding: 96px var(--m) 48px; }
.card-back { position: relative; background: var(--bg); max-width: 1120px; margin: 0 auto; padding: 72px 56px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; min-height: 420px; }
.back-h { font-size: 32px; font-style: italic; }
.back-left p { margin-top: 16px; font-size: 16px; max-width: 46ch; }
.back-disclose { color: var(--ink); }
.back-right { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-direction: row-reverse; }
.stamp { background: var(--bg); padding: 6px; width: 112px; flex: none; outline: 6px dotted var(--warm); outline-offset: -2px; }
.stamp img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.address { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 18px; }
.address a { display: inline-flex; align-items: center; min-height: 40px; }
.imprint { grid-column: 1 / -1; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 72ch; margin: 24px auto 0; }
.scallops { position: absolute; left: 0; right: 0; top: -24px; height: 25px; display: flex; overflow: hidden; }
.scallops span { flex: 1 1 0; height: 50px; border-radius: 50%; background: var(--bg); }

/* motion */
.card h1 .l1, .card h1 .l2 { animation: settle 1s var(--ease) both; }
.card h1 .l2 { animation-delay: .1s; }
.card-sub, .card-details { animation: rise .8s var(--ease) .25s both; }
.card-photo img { animation: rise 1s var(--ease) .35s both; }
@keyframes settle { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js-rise [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-rise [data-rise].in { opacity: 1; transform: none; }
.pour, .flight h3, .rv, .stub, .notes-text p, .vista-grid img, .slip-name { animation: rise .6s var(--ease) both; }
.vista-grid img:nth-child(2) { animation-delay: .08s; } .vista-grid img:nth-child(3) { animation-delay: .16s; }
.vista-grid:hover img:first-child { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-rise [data-rise] { opacity: 1; transform: none; }
  .foot { position: static; }
}

/* laptop and tablet: the plate keeps two columns, its buttons stack */
@media (max-width: 1100px) {
  .plate-actions { grid-template-columns: 1fr; }
  .cell { height: 60px; }
}

/* tablet and phone */
@media (max-width: 860px) {
  .top { flex-wrap: wrap; padding: 12px var(--m); gap: 4px 12px; }
  .top-links { order: 3; width: 100%; justify-content: flex-start; gap: 0 18px; }
  .top-links a { font-size: 16px; }
  .btn { min-height: 44px; padding: 0 16px; font-size: 16px; }
  .hero { padding: 132px 12px 0; min-height: 0; }
  .card { --cpad: 22px; --hpad: 12px; padding-top: 44px; padding-bottom: 36px; gap: 18px; }
  .hero-short .card { padding-bottom: 40px; }
  .card h1 { font-size: min(12vw, calc(var(--inner) / (var(--len, 15) * 0.48))); }
  .card h1 .l1, .card h1 .l2 { transform: none; }
  .flights { grid-template-columns: 1fr; }
  .flight-wide .pours, .pours-wide { columns: 1; }
  .plate { gap: 28px; padding: 28px; }
  .plate-text { justify-content: flex-start; }
  .plate-desc { margin-top: 16px; }
  .slip-row { grid-template-columns: 1fr; margin: 48px 0 0; gap: 0; }
  .slip { width: 78%; margin-top: 16px; }
  .slip-0 { transform: rotate(-2.5deg); margin-top: 0; }
  .slip-1 { transform: rotate(2deg); justify-self: end; position: relative; }
  .slip-2 { transform: rotate(-1.5deg); position: relative; }
  .slips { padding-bottom: 112px; }
  .vista-grid { grid-template-columns: 1fr 1fr; height: auto; grid-template-rows: auto; }
  .vista-grid img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .vista-grid img { aspect-ratio: 1; }
  .notes { grid-template-columns: 1fr; gap: 24px; }
  .notes-text { column-gap: 40px; }
  .stub-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stub { min-height: 160px; padding: 24px; }
  .foot { padding: 80px var(--m) 32px; }
  .card-back { padding: 64px 32px 28px; gap: 32px 40px; }
  .stamp { width: 96px; }
}

/* phone */
@media (max-width: 600px) {
  .hero { padding-top: 176px; }
  .plate { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
  .regions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 32px 0 40px; }
  .regions button { font-size: 16px; line-height: 1.25; text-align: left; padding: 10px 14px; min-height: 56px; }
  .regions button:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .pour-name { font-size: 20px; }
  .pour-rate { font-size: 17px; }
  .slip { width: 88%; padding: 44px 24px 56px; }
  .slips > h2 { font-size: 9vw; }
  .stub-row { grid-template-columns: 1fr; padding: 40px var(--m); }
  .stub { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 20px; padding: 20px 28px; }
  .stub-n { font-size: 48px; min-width: 2.4em; }
  .foot { padding: 64px 12px 24px; }
  .card-back { grid-template-columns: 1fr; padding: 56px 22px 24px; }
  .scallops span:nth-child(n + 7) { display: none; }
  .back-right { flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; }
  .stamp { width: 84px; }
  .address { font-size: 17px; }
  .rx-bar { grid-template-columns: 1fr; }
  .notes-text { columns: 1; }
}
