/* UpGum — site styles. One light look, taken from the tins: pressed-metal green,
   logo orange, and the printed nutrition panel. */
:root {
  color-scheme: light;
  --paper: #eef0e8;      /* cool sage grey, same cast as the photo table */
  --surface: #fbfcf8;
  --ink: #151a13;
  --muted: #596152;
  --line: #d3d8c9;
  --orange: #e14424;     /* logo */
  --orange-ink: #b8321a;
  --green: #3e6b2b;      /* spearmint tin */
  --melon: #c2415a;
  --grape: #4b3a5e;
  --double: #1c1b19;
  --gold: #e9a21b;       /* Double's lettering */

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --tin: 22px;           /* corner radius of the tin lid */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* hidden always wins over display rules like .panel or .picked */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-stretch: 112%; font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.35rem; font-stretch: 104%; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34em; }
.label { font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0 1.6em; border-radius: 999px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--ink); color: var(--surface); }
.btn-buy { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-buy:hover { background: var(--orange-ink); border-color: var(--orange-ink); color: #fff; }
.btn-wide { width: 100%; }
.textlink { font-weight: 600; text-underline-offset: 4px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-block: 14px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--orange); }
.nav .btn { min-height: 42px; padding: 0 1.2em; }
@media (max-width: 640px) {
  .logo img { height: 32px; }
  .nav { gap: 6px 18px; font-size: 0.95rem; }
  .nav .btn { display: none; }
}

section { padding-block: clamp(56px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 40em; }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero h1 .accent { color: var(--orange); }
.hero h1 { font-size: clamp(2.3rem, 4.1vw, 4rem); }
.hero h1 .line { display: block; }
@media (min-width: 861px) { .hero h1 .line { white-space: nowrap; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero-photo { border-radius: var(--tin); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); box-shadow: 0 30px 60px -30px rgb(21 26 19 / .45); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { max-width: 620px; }
}

/* Spec stamps: the numbers printed on the tin */
.specs { display: flex; flex-wrap: wrap; gap: 10px; }
.spec { display: grid; gap: 2px; padding: 10px 14px 9px; border: 1.5px solid var(--ink); border-radius: 10px; min-width: 104px; }
.spec b { font: 800 1.6rem/1 var(--display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.spec span { font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }

/* Shop */
.shop { background: var(--surface); border-block: 1px solid var(--line); }
.combo-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(18px, 3vw, 28px); border-radius: calc(var(--tin) + 10px);
  background: var(--ink); color: var(--surface); margin-bottom: 28px;
}
.combo-card .photo { border-radius: var(--tin); overflow: hidden; aspect-ratio: 4 / 3; }
.combo-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.combo-card .label { color: #b9c0ae; }
.combo-copy { display: grid; gap: 18px; max-width: 30em; }
.combo-copy .price { color: var(--surface); }
.combo-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.combo-copy li { display: flex; align-items: center; gap: 10px; }
.combo-card .btn { border-color: var(--surface); color: var(--surface); }
.combo-card .btn-buy { border-color: var(--orange); }
@media (max-width: 760px) { .combo-card { grid-template-columns: 1fr; } .combo-card .photo { max-width: 560px; } }

.tins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1000px) { .tins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .tins { gap: 14px; } }
.tins.tins-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .tins.tins-3 { grid-template-columns: minmax(0, 360px); justify-content: center; } }
.tin-card { display: grid; grid-template-rows: auto 1fr; gap: 14px; text-decoration: none; }
.tin-card .photo { border-radius: var(--tin); overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); position: relative; }
.tin-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tin-card:hover .photo img { transform: scale(1.035); }
.tin-card .photo::after { /* flavour band, like the tin's lower label */
  content: ""; position: absolute; inset: auto 0 0 0; height: 8px; background: var(--flavour);
}
.tin-body { display: grid; gap: 6px; align-content: start; }
.tin-body h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.tin-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.price { font: 800 1.45rem/1 var(--display); font-stretch: 108%; font-variant-numeric: tabular-nums; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--flavour); flex: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--flavour); }
.go { font-weight: 600; font-size: 0.95rem; }
.tin-card:hover .go { text-decoration: underline; text-underline-offset: 4px; }
.why-five { margin-top: 26px; color: var(--muted); font-size: 0.95rem; max-width: 46em; }

/* Nutrition panel, set like the printed label */
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .panel-grid { grid-template-columns: 1fr; } }
.nutri { background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; padding: 18px 20px 14px; font-family: var(--mono); font-size: 0.92rem; max-width: 460px; }
.nutri h3 { font-family: var(--body); font-stretch: 100%; font-size: 1.1rem; font-weight: 700; letter-spacing: 0; padding-bottom: 6px; }
.nutri .per { color: var(--muted); padding-bottom: 10px; border-bottom: 6px solid var(--ink); }
.nutri table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.nutri td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.nutri td:last-child { text-align: right; font-weight: 600; }
.nutri tr.active td { border-top: 3px solid var(--ink); border-bottom: 0; padding-top: 10px; }
.nutri .note { color: var(--muted); font-size: 0.8rem; padding-top: 4px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--surface); font: 800 1.1rem/1 var(--display);
}
.steps b { display: block; font-size: 1.05rem; }
.steps p { color: var(--muted); }

.warning { border-left: 6px solid var(--orange); background: var(--surface); padding: 18px 22px; border-radius: 0 12px 12px 0; display: grid; gap: 6px; max-width: 46em; }
.warning b { font-family: var(--display); font-stretch: 104%; font-size: 1.05rem; }

/* Story */
.story .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .story .wrap { grid-template-columns: 1fr; } }
.story-copy { display: grid; gap: 18px; max-width: 36em; }
.story-copy p { color: var(--muted); }
.story-photo { border-radius: var(--tin); overflow: hidden; aspect-ratio: 4 / 5; max-width: 440px; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 820px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--mono); color: var(--orange); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

/* Product page */
.crumbs { padding-block: 22px 0; font-size: 0.9rem; color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.product { padding-block: 26px clamp(56px, 8vw, 96px); }
.product .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .product .wrap { grid-template-columns: 1fr; } }
.product-photo { border-radius: var(--tin); overflow: hidden; aspect-ratio: 4 / 5; position: relative; position: sticky; top: 96px; }
@media (max-width: 860px) { .product-photo { position: relative; top: 0; max-width: 520px; } }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; background: var(--flavour); }
.product-info { display: grid; gap: 22px; }
.product-info h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.buy-row { display: grid; gap: 12px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.buy-row .price { font-size: 2.2rem; }
.buy-row small { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.facts .spec { min-width: 0; }
.detail { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.detail h2 { font-size: 1.25rem; font-stretch: 104%; letter-spacing: -0.01em; }
.detail p, .detail li { color: var(--muted); }
.detail ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.others { background: var(--surface); border-top: 1px solid var(--line); }

/* Plain text pages */
.page { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.prose { display: grid; gap: 18px; max-width: 42em; }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 10px; }
.prose h2 { font-size: 1.5rem; font-stretch: 104%; margin-top: 18px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.draft { font: 500 0.85rem/1.4 var(--mono); background: #fff3c4; border: 1px solid #e3c65a; color: #5a4700; padding: 10px 14px; border-radius: 8px; }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.card .big { font: 700 1.2rem/1.3 var(--body); color: var(--ink); user-select: all; word-break: break-word; }

/* Contact */
.contact-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .contact-links { grid-template-columns: 1fr; } }
.contact-tile { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.contact-tile:hover { border-color: var(--ink); transform: translateY(-1px); }
.contact-tile .icon { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--ink); color: var(--surface); }
.contact-tile span { display: grid; gap: 2px; min-width: 0; }
.contact-tile small { color: var(--muted); overflow-wrap: anywhere; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot-icon { display: inline-flex; align-items: center; gap: 8px; }
.foot-icon .icon { width: 18px; height: 18px; flex: none; }

/* Footer */
.site-footer { background: var(--ink); color: #c9cfbf; padding-block: 56px 32px; font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer img { height: 36px; width: auto; }
.site-footer h4 { margin: 0 0 10px; font: 500 0.75rem/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: #8d9584; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { border-top: 1px solid #2f362b; padding-top: 22px; font-size: 0.82rem; color: #8d9584; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } .co-summary { order: -1; } }
.co-form { display: grid; gap: 26px; }
.co-form fieldset { border: 0; margin: 0; padding: 0 0 26px; border-bottom: 1px solid var(--line); display: grid; gap: 14px; min-width: 0; }
.co-form legend { font: 800 1.25rem/1.2 var(--display); font-stretch: 104%; padding: 0; margin-bottom: 14px; }
.co-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.co-form input:not([type=radio]):not([type=checkbox]), .co-form select {
  font: 400 1rem/1.3 var(--body); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.co-form input:focus, .co-form select:focus { border-color: var(--ink); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .choice { grid-template-columns: 1fr; } }
.co-form .opt { cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); }
.co-form .opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input { margin-top: 4px; accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.opt span { display: grid; gap: 2px; }
.opt small { font-weight: 400; color: var(--muted); }
.panel { display: grid; gap: 14px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: 600 0.95rem var(--body); text-decoration: underline; text-underline-offset: 4px; justify-self: start; }
.results { display: grid; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.result { text-align: left; display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.result:hover { border-color: var(--ink); }
.result span, .picked span { color: var(--muted); font-size: 0.9rem; display: block; }
.picked { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--surface); }
.co-form .check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--orange); flex: none; }
.co-error { background: #fde8e3; color: #7a1d0b; border: 1px solid #f2b3a5; border-radius: 10px; padding: 12px 14px; margin: 0; }
.fine { color: var(--muted); font-size: 0.88rem; }
.co-summary { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 12px; }
@media (max-width: 860px) { .co-summary { position: static; } }
.s-item { font-weight: 600; }
.co-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-variant-numeric: tabular-nums; }
.co-summary dd { margin: 0; text-align: right; }
.co-summary .total { font: 800 1.3rem/1.2 var(--display); border-top: 1.5px solid var(--ink); padding-top: 10px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
