  @font-face { font-family: "Editorial"; src: url("editorial.woff2") format("woff2"); font-style: normal; font-weight: 300 700; font-display: swap; }
  @font-face { font-family: "Editorial"; src: url("editorial-italic.woff2") format("woff2"); font-style: italic; font-weight: 300 700; font-display: swap; }

  :root {
    --white: #ffffff;
    --paper: #f6f2ea;
    --paper-2: #ece5d8;
    --paper-3: #faf8f3;
    --ink: #1c1a17;
    --ink-2: #47423b;
    --ink-3: #6b645a;
    --line: #e5dfd4;
    --line-2: #d3cbbd;
    --accent: #8a3b2a;
    --accent-soft: rgba(138, 59, 42, .1);
    --lake: #1f2a2b;
    --lake-deep: #172021;
    --lake-ink: #ece6da;
    --lake-ink-2: #bcc3bb;
    --ember: #e3a57c;
    --serif: "Editorial", "Cormorant Garamond", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --gutter: clamp(16px, 4vw, 48px);
  }

  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) transparent; }
  body {
    margin: 0;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;

    caret-color: var(--accent);
  }
  ::selection { background: rgba(138, 59, 42, .18); color: var(--ink); }
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 11px; border: 3px solid var(--white); }
  ::-webkit-scrollbar-track { background: transparent; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
  img { display: block; max-width: 100%; }
  button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  input, textarea { font: inherit; color: inherit; }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3, p { margin: 0; }
  .wrap { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
  .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .i { width: 18px; height: 18px; flex: none; }
  fieldset.bare { border: 0; margin: 0; padding: 0; min-width: 0; }

  /* Type */
  .d-xl, .d-l, .d-m, .d-s { font-family: var(--serif); font-weight: 500; color: var(--ink); text-wrap: balance; }
  .d-xl { font-size: clamp(3rem, 7.4vw, 6rem); line-height: .94; letter-spacing: -.025em; }
  .d-l { font-size: clamp(2.5rem, 4.8vw, 4.25rem); line-height: .98; letter-spacing: -.02em; }
  .d-m { font-size: clamp(2rem, 3.2vw, 2.875rem); line-height: 1.04; letter-spacing: -.015em; }
  .d-s { font-size: 1.875rem; line-height: 1.08; letter-spacing: -.01em; }
  .d-xl em, .d-l em, .d-m em, .d-s em { font-style: italic; font-weight: 400; }
  .lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
  .fine { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
  .sig { font-family: var(--serif); font-style: italic; font-size: 2.25rem; line-height: 1; color: var(--ink); }
  .label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); }
  .opt-label { font-weight: 400; color: var(--ink-3); }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px; border-radius: 4px;
    font-size: 14px; font-weight: 500; line-height: 1.25; text-align: left;
    transition: background-color .2s, box-shadow .2s, color .2s, transform .2s var(--ease);
  }
  .btn .i { width: 16px; height: 16px; transition: transform .3s var(--ease); }
  .btn:hover .i { transform: translateX(2px); }
  .btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 1px 2px rgba(28, 26, 23, .22), inset 0 1px 0 rgba(255, 255, 255, .08); }
  .btn-ink:hover { background: #38332c; }
  .btn-ink:active { transform: translateY(1px); }
  .btn-ink[disabled] { background: var(--paper-2); color: var(--ink-3); box-shadow: none; cursor: not-allowed; }
  .btn-ink[disabled] .i { display: none; }
  .btn-line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
  .btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .input {
    width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 4px;
    border: 1px solid var(--line-2); background: var(--white); font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
  }
  .input::placeholder { color: var(--ink-3); }
  .input:hover { border-color: #bdb4a4; }
  .input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
  .input[aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
  /* Request 3 · name or link */
  .drop { background: var(--paper); border-top: 1px solid var(--line); padding: clamp(72px, 11vw, 152px) 0; text-align: center; }
  .drop-inner { max-width: 800px; margin: 0 auto; }
  .drop .lede { margin: 22px auto 0; }
  .drop h2 { outline: none; }
  .slot { margin: 52px auto 0; display: flex; align-items: flex-end; gap: 16px; border-bottom: 1.5px solid var(--ink); padding-bottom: 12px; text-align: left; transition: border-color .2s; }
  .slot:focus-within { border-color: var(--accent); }
  .slot.is-invalid { border-color: var(--accent); }
  .wish-writing { position: relative; z-index: 1; flex: 1; min-width: 0; overflow: clip; }
  .slot input, .wish-outgoing { width: 100%; border: 0; background: none; outline: none; padding: 4px 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.2; }
  .slot input::placeholder { color: var(--ink-3); }
  .wish-writing:has(.wish-outgoing) input::placeholder { opacity: 0; }
  .send { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; flex: none; transition: background .2s, transform .35s var(--ease); }
  .send:hover { background: #38332c; transform: translateX(3px); }
  .send .i { width: 20px; height: 20px; }
  .detect { margin-top: 16px; min-height: 22px; font-size: 14px; color: var(--ink-2); display: flex; justify-content: center; align-items: center; gap: 8px; }
  .detect.is-error { color: var(--accent); }
  .detect .i { width: 16px; height: 16px; color: var(--accent); }
  .mail-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
  .mail-row .input { width: auto; flex: 1 1 260px; max-width: 340px; }
  .drop .err { margin-top: 12px; }
  .drop-final { display: grid; gap: 20px; justify-items: center; }

  /* The wishlist uses the same single-field composition as Name or link. */
  .bottle-list { --ink: #eee5d8; --ink-2: #d2c7b8; --ink-3: #bbad97; --paper: #302716; --accent: #e2b084; --line: #58462e; background: var(--paper); color: var(--ink); }
  .bottle-list .send, .bottle-list .btn-ink { background: #171819; color: #f4eee4; }
  .bottle-list .btn-line { color: var(--ink); border-color: #8d806b; }
  .bottle-list .slot { border-color: #9f7651; }
  .bottle-list input { color: var(--ink); }
  .bottle-list input[type=email] { background: #221d15; border-color: #85765e; }
  .bottle-list :focus-visible { outline: 2px solid #efc39b; outline-offset: 3px; }
  .bottle-list .slot input:focus-visible { outline: none; }
  .bottle-list .slot:focus-within { border-color: #efc39b; }
/* Side Notes wishlist clipboard — scoped to .list-summary */
.list-summary{--ink:#2a1f17;--ink-soft:#5a4a3b;--rule:rgba(52,86,128,.2);--margin:rgba(190,70,58,.5);--paper:#fbf7ee;
  position:relative;box-sizing:border-box;width:100%;max-width:390px;min-width:0;text-align:left;padding:30px 12px 12px;border-radius:14px;
  background:
    radial-gradient(120% 60% at 30% 0%,rgba(255,214,160,.18),transparent 60%),
    repeating-linear-gradient(97deg,rgba(60,32,14,.0) 0 7px,rgba(60,32,14,.16) 7px 8px,rgba(255,220,170,.05) 8px 15px),
    linear-gradient(160deg,#a06f42,#7c502c 55%,#5f3c20);
  box-shadow:inset 0 1px 0 rgba(255,228,186,.35),inset 0 -2px 0 rgba(0,0,0,.28),0 18px 34px -14px rgba(0,0,0,.65)}
.list-summary[hidden]{display:none}
/* spring clip: plate + wire loop */
.list-summary::before{content:"";position:absolute;z-index:2;top:9px;left:50%;width:min(136px,48%);height:32px;transform:translateX(-50%);
  border-radius:6px 6px 14px 14px;background:linear-gradient(180deg,#f6f6f4 0%,#c3c5c7 34%,#8e9194 60%,#d7d8d8 86%,#9b9ea1 100%);
  box-shadow:inset 0 1px 0 #fff,inset 0 -2px 3px rgba(0,0,0,.28),0 4px 5px -1px rgba(0,0,0,.4)}
.list-summary::after{content:"";position:absolute;z-index:3;top:-5px;left:50%;width:min(52px,20%);height:20px;transform:translateX(-50%);
  border:4px solid #a9acaf;border-bottom:0;border-radius:14px 14px 0 0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 -1px 0 rgba(0,0,0,.25)}
/* paper sheet with subtle stack beneath */
.list-summary .clipboard-paper{position:relative;min-width:0;padding:30px 14px 14px 36px;border-radius:2px 2px 4px 4px;color:var(--ink);background:var(--paper);
  box-shadow:0 1px 0 #ece4d2,0 2px 0 #f6f0e3,0 3px 0 #e4dbc7,0 5px 6px -2px rgba(0,0,0,.35)}
.list-summary .clipboard-paper::before{content:"";position:absolute;top:0;bottom:0;left:24px;width:3px;border-inline:1px solid var(--margin);pointer-events:none}
.list-summary #wish-count{margin:0;padding-bottom:6px;border-bottom:2px solid var(--margin);
  font:600 1.4rem/1.15 var(--serif,Georgia,serif);letter-spacing:.01em;color:var(--ink);overflow-wrap:anywhere}
/* Six paper lines are visible even while the list is partly filled. */
.list-summary .saved-list {
  --slot-height: 44px;
  display: grid;
  grid-template-rows: repeat(6, var(--slot-height));
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--slot-height) - 1px), var(--rule) calc(var(--slot-height) - 1px) var(--slot-height));
}
.list-summary .saved-list li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.list-summary .saved-list li > span {
  flex: 1;
  min-width: 0;
  font: 600 1.1rem/1.15 var(--serif, Georgia, serif);
  color: var(--ink);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.list-summary [data-remove]{flex:none;min-width:44px;min-height:44px;padding:0 10px;border:0;border-radius:22px;background:transparent;
  color:#8b2c20;font:500 1.1rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.02em;cursor:pointer}
.list-summary [data-remove]:hover{background:rgba(139,44,32,.1)}
.list-summary .fine{margin:10px 0 0;font:.82rem/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink-soft);overflow-wrap:anywhere}
.list-summary .list-actions{display:flex;margin-top:12px}
.list-summary #wish-finish{flex:1;min-height:44px;border:1.5px solid var(--ink);border-radius:999px;background:transparent;color:var(--ink);cursor:pointer}
.list-summary #wish-finish:hover{background:var(--ink);color:var(--paper)}
.list-summary :is(button,a):focus-visible{outline:2px solid #1f4f8a;outline-offset:2px}
@media (max-width:360px){
  .list-summary{padding:28px 9px 9px;border-radius:12px}
  .list-summary .clipboard-paper{padding:28px 10px 12px 28px}
  .list-summary .clipboard-paper::before{left:18px}
  .list-summary #wish-count{font-size:1.25rem}}
@media (forced-colors:active){.list-summary::before,.list-summary::after,.list-summary .clipboard-paper::before{display:none}.list-summary .clipboard-paper{border:1px solid CanvasText}}

  .bottle-list { position: relative; }
  .wish-layout, .wish-controls { position: relative; }
  /* The original form sets the footprint, even while another step is visible. */
  #wish-entry[inert] { visibility: hidden; }
  #wish-choice, #wish-result {
    position: absolute; inset: 0; display: grid; align-content: center;
  }
  #wish-message { position: absolute; bottom: 100%; width: 100%; margin: 0 0 12px; }
  .wish-layout .list-summary {
    position: absolute; z-index: 2; top: -72px;
    --board-gap: clamp(18px, calc(18vw - 214px), 128px);
    left: calc(100% + var(--board-gap));
    width: min(354px, calc((100vw - 800px) / 2 - var(--board-gap) - 20px));
  }
  #wish-review {
    position: absolute; top: calc(100% + 14px); right: 0;
    min-height: 44px; padding: 0 14px; border: 1px solid #97856c;
    border-radius: 4px; font-size: 14px; color: var(--ink);
  }
  #wish-close { float: right; min-width: 44px; height: 44px; font-size: 20px; color: #452c17; }
  @media (max-width: 1279px) {
    .wish-layout .list-summary {
      left: auto; right: 0; top: 50%; translate: 0 -50%; width: min(100%, 350px);
      max-height: min(560px, 75svh); overflow-y: auto;
    }
  }
  #wish-review { overflow: hidden; }
  #wish-review > span, .wish-row-name { display: block; }
  #wish-message { overflow-wrap: anywhere; }
  .wish-outgoing {
    position: absolute; inset: 0; visibility: visible; pointer-events: none;
    white-space: nowrap; overflow: hidden; user-select: none;
  }
  @keyframes clipboard-arrives { from { opacity: 0; } to { opacity: 1; } }
  @keyframes request-answer {
    from { opacity: .35; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
  @media (prefers-reduced-motion: no-preference) {
    .list-summary:not([hidden]) { animation: clipboard-arrives 100ms ease-out; }
    :is(#wish-choice, #wish-result, #wish-message):not([hidden]) {
      animation: request-answer 190ms ease-out;
    }
  }

html,body { background: #302716; }
.bottle-list { min-height: 580px; align-content: center; }
.consent { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.consent input { width: 18px; height: 18px; accent-color: #9d744b; }
.mail-row { margin-top: 20px; }
.faq-link { text-decoration: underline; text-underline-offset: 3px; }
#wish-login { margin: 0 auto; position: absolute; top: calc(100% + 16px); left: 0; right: 0; }
#wish-message { min-height: 22px; }
button:disabled { opacity: .65; cursor: wait; }
@media (max-width:1279px) {
  #wish-login { top: calc(100% + 74px); }
}
@media (max-width:600px) {
  .bottle-list { min-height: 570px; padding-block: 90px; }
  #wish-choice { align-content: start; }
  #wish-message { margin-bottom: 18px; }
  .wish-layout .list-summary { max-height: 490px; }
  #wish-choice .lede { margin-top: 10px; }
  #wish-choice:not([hidden]) ~ #wish-message { bottom: calc(100% + 4px); }
  .wish-layout:has(#wish-choice:not([hidden])) #wish-review { top: calc(100% + 115px); }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; }
}
