/* Flores Ag Services: dressed as a Walla Walla wine bottle. Front label, back labels, wine neck label. Flat ink only. */

@font-face { font-family: "Syncopate"; src: url(assets/fonts/syncopate-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Syncopate"; src: url(assets/fonts/syncopate-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(assets/fonts/ebgaramond-400.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }  /* variable file */
@font-face { font-family: "EB Garamond"; src: url(assets/fonts/ebgaramond-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --glass: #16201a;          /* bottle glass */
  --glass-2: #22332a;
  --stock: #f8f7f2;          /* uncoated label stock */
  --ink: #161616;
  --ink-2: #55554e;          /* secondary text on stock, 7:1 */
  --hair: rgb(22 22 22 / .28);
  --wine: #6b1e2c;           /* foil */
  --wine-deep: #4c121d;
  --on-glass: #e9e6dc;

  --caps: "Syncopate", "Helvetica Neue", Arial, sans-serif;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;

  --gut: clamp(16px, 3vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .38 0 0 0 0 .32 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  --applied: 0 1px 1px rgb(0 0 0 / .35), 0 24px 50px -20px rgb(0 0 0 / .7);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scrollbar-color: var(--wine) var(--glass); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 400 1.25rem/1.55 var(--serif);
  color: var(--ink);
  background-color: var(--glass);
  /* bottle glass: two long vertical highlights and a darker belly */
  background-image:
    linear-gradient(90deg,
      rgb(0 0 0 / .45) 0%, transparent 9%,
      rgb(255 255 255 / .05) 15%, rgb(255 255 255 / .11) 17%, rgb(255 255 255 / .03) 19.5%,
      transparent 30%, transparent 74%,
      rgb(255 255 255 / .04) 82%, rgb(255 255 255 / .07) 83.2%, transparent 85.5%,
      rgb(0 0 0 / .5) 100%),
    radial-gradient(70% 50% at 50% 30%, var(--glass-2), transparent 75%);
  background-attachment: fixed;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--wine); color: var(--stock); }
input, textarea { caret-color: var(--wine); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.capsule :focus-visible, .neck :focus-visible, .field :focus-visible { outline-color: var(--stock); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--stock); padding: 10px 14px; }
.skip:focus { top: 12px; }
.ico { width: 1.05em; height: 1.05em; flex: none; }
.num { font-family: var(--serif); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; letter-spacing: .03em; }

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
h2 { font: 700 clamp(1.45rem, 3vw, 2.1rem)/1.25 var(--caps); text-transform: uppercase; letter-spacing: .14em; }

/* small tracked caps, the label's fine print */
.front__app, .front__facts dt, .ruled__lab, .person__role, .vintages caption, .fine__small, .front__origin {
  font-family: var(--caps); font-weight: 400; text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; line-height: 1.7;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 54px; padding: 0 1.6em; border: 0; border-radius: 2px; cursor: pointer; text-decoration: none;
  font: 700 .74rem/1.2 var(--caps); text-transform: uppercase; letter-spacing: .2em;
  transition: background-color .25s var(--ease-out), color .25s, box-shadow .25s var(--ease-out);
}
.btn .ico, .callbar .ico { width: 18px; height: 18px; }
.btn__txt { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: .55em; row-gap: 2px; }
.btn .num { font-size: 1.55em; letter-spacing: .04em; font-weight: 500; text-transform: none; }
.btn--foil { color: #fff; background: var(--wine); box-shadow: 0 2px 6px rgb(60 10 20 / .25); }
.btn--foil:hover { background: var(--wine-deep); box-shadow: 0 6px 16px rgb(60 10 20 / .3); }
.btn--foil:active { background: var(--wine-deep); }
.btn--line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--stock); }
.btn--paper { background: var(--stock); color: var(--wine); box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.btn--paper:hover { background: #fff; box-shadow: 0 8px 18px rgb(0 0 0 / .35); }
.btn--wide { width: 100%; }
.btn--big { min-height: 72px; font-size: .9rem; }
.btn--big .num { font-size: 2.1em; }

/* ---------- capsule (header) ---------- */
.capsule {
  position: relative; z-index: 5; overflow: hidden;
  background: var(--wine);
  box-shadow: 0 8px 18px rgb(0 0 0 / .35);
  color: var(--stock);
}
.capsule__in { max-width: 1180px; margin: 0 auto; padding: 14px var(--gut); display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); }
.wordmark { font: 700 1rem/1 var(--caps); letter-spacing: .32em; text-decoration: none; padding: 14px 0; white-space: nowrap; }
.wordmark span { font-weight: 400; }
.nav { display: flex; gap: clamp(16px, 2.6vw, 36px); margin-left: auto; }
.nav a { font: 400 .66rem/1 var(--caps); text-transform: uppercase; letter-spacing: .26em; text-decoration: none; padding: 12px 0; opacity: .88; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out), opacity .2s; }
.nav a:hover { opacity: 1; background-size: 100% 1px; }
.lang { display: inline-flex; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55); border-radius: 2px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; font: 700 .62rem/1 var(--caps); letter-spacing: .2em; text-decoration: none; color: var(--stock); min-width: 48px; min-height: 44px; padding-left: .2em; }
.lang a[aria-current] { background: var(--stock); color: var(--wine); }
.lang a:not([aria-current]):hover { background: rgb(255 255 255 / .12); }
.capsule__call { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 1.2rem; padding: 8px 0; }
.capsule__call:hover .num { text-decoration: underline; }

/* ---------- labels (shared) ---------- */
.label {
  position: relative; background: var(--grain), var(--stock);
  box-shadow: var(--applied);
}
.label::before {   /* printed hairline frame, double */
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  border: 1px solid var(--hair); outline: 1px solid var(--hair); outline-offset: -5px;
}

/* ---------- front label ---------- */
.bottle { padding: clamp(22px, 3vw, 36px) var(--gut) clamp(56px, 8vw, 104px); }
.front {
  max-width: 700px; margin: 0 auto; text-align: center;
  padding: clamp(40px, 4.4vw, 52px) clamp(30px, 6vw, 64px) clamp(34px, 4vw, 46px);
  border-radius: 46% 46% 4px 4px / 64px 64px 4px 4px;    /* die-cut arched top */
}
.front::before { border-radius: 46% 46% 2px 2px / 54px 54px 2px 2px; outline: 0; }
.crest { width: 66px; height: 62px; object-fit: cover; object-position: 0 50%; margin: 0 auto 14px; mix-blend-mode: multiply; }
.front__title { margin: 0; }
.front__name { display: block;
  font: 700 clamp(2.6rem, 9.4vw, 5.2rem)/1 var(--caps); letter-spacing: .2em; padding-left: .2em;
  color: var(--ink);
}
.front__sub { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 18px); margin-top: clamp(10px, 1.6vw, 16px); font: 700 clamp(1.05rem, 3.4vw, 1.85rem)/1 var(--caps); letter-spacing: .3em; padding-left: .3em; color: var(--ink); white-space: nowrap; }
.leafrule { width: 44px; height: 22px; color: var(--wine); }
.front__varietal { margin-top: clamp(20px, 2.6vw, 28px); font: italic 400 clamp(1.9rem, 4.6vw, 2.75rem)/1.12 var(--serif); color: var(--wine); }
.front__app { margin-top: 14px; color: var(--ink-2); }
.front__app span { display: block; }
.front__app, .front__facts dt, .ruled__lab { font-size: .76rem; }
.vignette { margin: clamp(18px, 2.4vw, 24px) auto 0; width: 270px; }
.front > .vignette img { aspect-ratio: 3 / 2; }
.vignette img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 5px var(--stock), 0 0 0 6px var(--ink); }
.front__lede { max-width: 44ch; margin: 22px auto 0; color: #2c2c28; }
.front__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.front__facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.front__facts > div { padding: 10px 8px; }
.front__facts > div + div { border-left: 1px solid var(--hair); }
.front__facts dt { color: var(--ink-2); }
.front__facts dd { margin: 4px 0 0; font-size: 1.12rem; line-height: 1.3; }
.front__origin { margin-top: 16px; color: var(--ink-2); }

/* ---------- back labels ---------- */
.back { max-width: 1000px; width: calc(100% - 2 * var(--gut)); margin: 0 auto clamp(48px, 7vw, 88px); padding: clamp(42px, 6vw, 72px) clamp(28px, 6vw, 72px); border-radius: 4px; }
.back__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 40px; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.back__head p { color: var(--ink-2); justify-self: end; max-width: 40ch; }
.back__head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.back__head--center p { justify-self: center; max-width: 52ch; }

.order { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 clamp(28px, 4.4vw, 60px); }
.lines { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-content: start; }
.line { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 2px; border-bottom: 1px solid var(--hair); cursor: pointer; font-size: 1.2rem; line-height: 1.2; transition: color .2s; }
.line:hover { color: var(--wine); }
.line input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { width: 22px; height: 22px; flex: none; border: 1.5px solid var(--ink); border-radius: 2px; position: relative; background: #fff; transition: background-color .2s, border-color .2s; }
.box svg { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); }
.box path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .3s var(--ease-out) .05s; }
.line input:checked + .box { background: var(--wine); border-color: var(--wine); }
.line input:checked + .box path { stroke-dashoffset: 0; }
.line input:checked ~ span:last-child { color: var(--wine); }
.line input:focus-visible + .box { outline: 2px solid var(--wine); outline-offset: 3px; }

.slip { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.ruled { display: block; border-bottom: 1px solid var(--ink); padding: 14px 0 4px; }
.ruled__lab { display: block; color: var(--ink-2); }
.ruled input, .ruled textarea { width: 100%; border: 0; background: transparent; padding: 6px 0 2px; font: 400 1.25rem/1.35 var(--serif); color: var(--ink); resize: vertical; outline: none; }
.ruled:focus-within { border-bottom-color: var(--wine); box-shadow: 0 1px 0 var(--wine); }
.ruled input::placeholder { color: #75756c; opacity: 1; font-style: italic; }
.ruled-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tally { min-height: 3em; margin: 16px 0 8px; font-style: italic; font-size: 1.1rem; color: var(--ink-2); }
.tally.is-set, .tally.is-sent { color: var(--wine); }
.tally.is-sent { font-style: normal; }
.tally a { color: inherit; }
.slip__note { font-size: 1.05rem; color: var(--ink-2); margin-top: 10px; }
.slip__note a { white-space: nowrap; color: var(--ink); display: inline-block; padding: 10px 0; margin: -10px 0; }

/* seasons */
.seasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.seasons li { padding: 34px 18px 10px; }
.seasons li + li { border-left: 1px solid var(--hair); }
.seasons h3 { font: 700 1.05rem/1.3 var(--caps); text-transform: uppercase; letter-spacing: .22em; padding-left: .22em; }
.seasons__crop { margin-top: 10px; font-size: 1.3rem; }
.seasons__when { margin-top: 4px; font-style: italic; color: var(--wine); }

/* crew */
.crew__cols { display: grid; grid-template-columns: 1fr 1fr; }
.person { padding: 40px clamp(10px, 3vw, 44px) 6px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.person + .person { border-left: 1px solid var(--hair); }
.vignette--person { width: 210px; margin: 0 0 24px; }
.vignette--person figcaption { margin-top: 16px; font-style: italic; font-size: 1rem; color: var(--ink-2); }
.person h3 { font: 700 clamp(1.25rem, 2.4vw, 1.6rem)/1.2 var(--caps); text-transform: uppercase; letter-spacing: .14em; padding-left: .14em; }
.person__role { margin-top: 10px; color: var(--ink-2); max-width: 34ch; }
.prose { display: grid; gap: .9em; margin-top: 20px; text-align: left; max-width: 46ch; }
.person__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; color: var(--wine); font-size: 1.45rem; text-decoration: none; border-bottom: 1px solid currentColor; }
.person__phone:hover { color: var(--wine-deep); }
.vintages { border-collapse: collapse; margin-top: 26px; width: 100%; max-width: 420px; text-align: left; }
.vintages caption { text-align: center; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.vintages td, .vintages th { padding: 10px 0; border-bottom: 1px solid var(--hair); vertical-align: baseline; }
.vintages td.num { color: var(--wine); font-size: 1.3rem; padding-right: 16px; width: 1%; }
.vintages th { font-weight: 500; font-size: 1.2rem; padding-right: 12px; }
.vintages td:last-child { font-style: italic; color: var(--ink-2); font-size: 1rem; text-align: right; }
.vintages__also { margin-top: 14px; max-width: 420px; font-style: italic; color: var(--ink-2); }

/* field photos printed small, on the glass */
.field { max-width: 1000px; width: calc(100% - 2 * var(--gut)); margin: 0 auto clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.field figure { margin: 0; background: var(--stock); padding: 6px; box-shadow: var(--applied); }
.field img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ---------- neck label (contact) ---------- */
.neck {
  max-width: 1100px; width: calc(100% - 2 * var(--gut)); margin: 0 auto clamp(40px, 6vw, 72px);
  color: var(--stock); border-radius: 4px; box-shadow: var(--applied);
  background: var(--wine);
  padding: clamp(42px, 6vw, 72px) clamp(28px, 6vw, 72px);
  position: relative;
}
.neck::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgb(255 255 255 / .3); pointer-events: none; border-radius: 2px; }
.neck__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px clamp(28px, 5vw, 72px); position: relative; }
.neck__head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.neck__head p { color: #f0dfe2; max-width: 32ch; }
.neck__area { font-style: italic; margin-top: -8px; }
.neck__es { font-style: italic; font-size: 1.35rem; color: var(--stock) !important; border-top: 1px solid rgb(255 255 255 / .4); padding-top: 14px; }
.contacts { margin: 0; border-top: 1px solid rgb(255 255 255 / .6); }
.contacts__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid rgb(255 255 255 / .22); }
.contacts dt { font: 700 .82rem/1.5 var(--caps); text-transform: uppercase; letter-spacing: .16em; }
.contacts dt span { display: block; font-weight: 400; font-size: .7rem; letter-spacing: .22em; opacity: .85; margin-top: 4px; }
.contacts dd { margin: 0; display: flex; flex-direction: column; gap: 0; }
.contacts a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 1.2rem; line-height: 1.35; overflow-wrap: anywhere; }
.contacts a .ico { opacity: .85; }
.contacts a:hover { text-decoration: underline; }

/* ---------- fine print ---------- */
.fine { text-align: center; color: var(--on-glass); padding: 0 var(--gut) 64px; }
.fine p:first-child { font-style: italic; font-size: 1.15rem; max-width: 46ch; margin: 0 auto; }
.fine__small { margin-top: 12px; opacity: .8; }

/* ---------- mobile call bar ---------- */
.callbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: none;
  align-items: center; justify-content: center; gap: .6em; min-height: 56px; border-radius: 2px; color: #fff; text-decoration: none;
  font: 700 .7rem/1 var(--caps); text-transform: uppercase; letter-spacing: .18em;
  background: var(--wine);
  box-shadow: 0 12px 24px -6px rgb(0 0 0 / .6);
  transform: translateY(150%); transition: transform .4s var(--ease-out);
}
.callbar .num { font-size: 1.6em; letter-spacing: .03em; }
.callbar.is-on { transform: none; }

/* ---------- the one authored moment: the label is applied ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .front { animation: apply 1.1s var(--ease-out) both; }
  .js .front__name { animation: settle 1.4s var(--ease-out) .35s both; }
}
@keyframes apply { from { transform: translateY(22px); box-shadow: 0 1px 1px rgb(0 0 0 / .2), 0 50px 70px -20px rgb(0 0 0 / .8); } to { transform: none; } }
@keyframes settle { from { letter-spacing: .3em; opacity: .55; } to { letter-spacing: .2em; opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .wordmark { font-size: .82rem; letter-spacing: .22em; }
  .capsule__call { display: none; }
  .callbar { display: flex; }
  .fine { padding-bottom: 96px; }
  html { scroll-padding-bottom: 84px; }
  .order { padding-bottom: 24px; }
  .back__head, .order, .neck__in { grid-template-columns: minmax(0, 1fr); }
  .back__head p { justify-self: start; }
  .crew__cols { grid-template-columns: 1fr; }
  .person + .person { border-left: 0; border-top: 1px solid var(--hair); margin-top: 24px; }
  .field { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 1.2rem; }
  .front { border-radius: 40% 40% 4px 4px / 44px 44px 4px 4px; padding-top: 44px; }
  .front::before { inset: 10px; border-radius: 40% 40% 2px 2px / 38px 38px 2px 2px; }
  .back::before, .neck::before { inset: 10px; }
  .front__name { letter-spacing: .14em; padding-left: .14em; }
  .crest { width: 56px; height: 52px; }
  .vignette { width: 220px; }
  .front__app, .front__facts dt, .ruled__lab { font-size: .8rem; }
  .front__actions .btn { width: 100%; }
  .front__facts > div { padding: 10px 4px; }
  .front__facts dt { letter-spacing: .12em; font-size: .62rem; }
  .front__facts dd { font-size: .98rem; }
  .lines { grid-template-columns: 1fr; }
  .ruled-row { grid-template-columns: 1fr; gap: 0; }
  .seasons { grid-template-columns: 1fr; }
  .seasons li { padding: 22px 8px; }
  .seasons li + li { border-left: 0; border-top: 1px solid var(--hair); }
  .contacts__row { grid-template-columns: 1fr; }
  .btn--big { width: 100%; }
  .field { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
  .field figure { flex: 0 0 70%; scroll-snap-align: center; }
  .vignette--person { width: 180px; }
}
