/* Khaki & Ocean store styles. Colours live in :root, so the whole look can be changed in one place. */
@import url("/assets/fonts.css");

:root {
  /* Type: Fraunces for headings and figures, Manrope for everything else (same as the home page). */
  --head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sand: #f5f1e8;
  --paper: #ffffff;
  --khaki: #b9a57d;
  --ocean: #1c6171;
  --ocean-dark: #134755;
  --ink: #1d2a2e;
  --muted: #5d6b6f;
  --line: #e2dccd;
  --danger: #a33a2a;
  --ok: #2f6b3a;
  --radius: 10px;
  --header-bg: rgba(255, 255, 255, 0.72);
  --footer-bg: rgba(255, 255, 255, 0.6);
  /* Frosted glass for the header and footer: a light sheen over a see-through tint */
  --bar-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.66) 0%, rgba(255, 255, 255, 0.28) 55%, rgba(255, 255, 255, 0.48) 100%);
  --chip-bg: rgba(255, 255, 255, 0.55);
  --edge: rgba(255, 255, 255, 0.75);
  --menu-bg: rgba(255, 255, 255, 0.86);
  --surface: #ffffff;
  --page-bg: #eef4f2;
  --h: #132b31;
  --txt-soft: #4a6366;
  --txt-mute: #5b7478;
  --glass-bg: rgba(255, 255, 255, 0.46);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 18px 48px -18px rgba(19, 71, 85, 0.28), 0 2px 6px rgba(19, 71, 85, 0.05);
}

/* Dark theme: deep sea tones with light text. Applied by the header switch. */
html[data-theme="dark"] {
  color-scheme: dark;
  --sand: #0d171a;
  --paper: #15242a;
  --ink: #e7f0ee;
  --muted: #9bb2af;
  --line: #263a3f;
  --ocean: #2f8f9e;
  --ocean-dark: #1f6572;
  --header-bg: rgba(14, 26, 30, 0.74);
  --footer-bg: rgba(14, 26, 30, 0.6);
  --bar-glass: linear-gradient(135deg, rgba(58, 96, 104, 0.5) 0%, rgba(14, 26, 30, 0.4) 55%, rgba(58, 96, 104, 0.44) 100%);
  --chip-bg: rgba(255, 255, 255, 0.06);
  --edge: rgba(255, 255, 255, 0.1);
  --menu-bg: rgba(16, 30, 34, 0.86);
  --surface: #1b2e34;
  --page-bg: #0d171a;
  --h: #eef6f4;
  --txt-soft: #b5c9c6;
  --txt-mute: #8ea6a3;
  --glass-bg: rgba(22, 38, 43, 0.55);
  --glass-edge: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out);
  font: 16px/1.6 var(--text);
}
button { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
html, body { overflow-x: clip; }
.wrap > *, .hm-hero > *, .hm-story > * { min-width: 0; }
a { color: var(--ocean); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
main { min-height: 60vh; padding: 24px 0 56px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px; z-index: 10; }

/* Announcement bar and header */
.announce { background: var(--ocean-dark); color: #fff; font-size: 13px; letter-spacing: 0.04em; padding: 9px 16px; text-align: center; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bar-glass);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border-bottom: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 34px -20px rgba(19, 71, 85, 0.45);
}
.bar { position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; }
.brand { display: block; flex-shrink: 0; padding: 10px 0; }
.brand img { width: 96px; height: auto; transition: transform 0.6s var(--ease-out); }
.brand:hover img { transform: scale(1.04); }

.nav {
  display: flex;
  gap: 4px;
  margin: 0 auto;
  padding: 4px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--edge);
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out);
}
.nav a:hover { background: rgba(28, 97, 113, 0.09); }
.nav a[aria-current="page"] { background: var(--ocean-dark); color: #fff; }

.cart-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ocean);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.5s var(--ease-out), background-color 0.4s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.cart-btn:hover { background: var(--ocean-dark); transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(19, 71, 85, 0.6); }
.cart-btn[aria-current="page"] { background: var(--ocean-dark); }
.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--ocean-dark);
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}

/* Phone menu: a checkbox drives it, so it works without JavaScript */
.nav-toggle { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--chip-bg);
  border: 1px solid var(--edge);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.5s var(--ease-out), opacity 0.3s; }
.nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid rgba(47, 156, 138, 0.6); outline-offset: 3px; }

@media (max-width: 860px) {
  .brand img { width: 84px; }
  .nav-burger { display: inline-flex; margin-left: auto; }
  .cart-btn { margin-left: 0; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border-radius: 22px;
    background: var(--menu-bg);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 48px -20px rgba(19, 71, 85, 0.4);
  }
  .nav a { padding: 13px 16px; font-size: 16px; }
  .nav-toggle:checked ~ .nav { display: flex; }
}
@media (max-width: 420px) {
  .cart-label { display: none; }
}

/* Footer */
.site-footer {
  margin-top: 80px;
  background: var(--bar-glass);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border-top: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.foot-grid { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.foot-brand img { width: 140px; height: auto; }
.foot-brand p { color: var(--muted); max-width: 26em; margin: 14px 0 20px; font-size: 15px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ocean-dark);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.social a:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -12px rgba(19, 71, 85, 0.5); }
.site-footer .foot-col h2 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.foot-col a { color: var(--ink); text-decoration: none; font-size: 15px; transition: color 0.3s var(--ease-out); }
.foot-col a:hover { color: var(--ocean); }
.foot-contact li { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  padding-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}
.foot-base p { margin: 0; }
.foot-base a { color: var(--ocean-dark); text-decoration: none; }
.foot-base a:hover { text-decoration: underline; }

/* Buttons and forms */
.btn {
  display: inline-block; background: var(--ocean); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 24px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; letter-spacing: .03em;
}
.btn:hover { background: var(--ocean-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ocean); border: 1px solid var(--ocean); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-weight: 400;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
}
textarea { min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ocean); outline-offset: 1px; }
.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

/* Notices */
.notice { padding: 12px 16px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); margin-bottom: 18px; }
.notice.error { border-color: var(--danger); color: var(--danger); }
.notice.ok { border-color: var(--ok); color: var(--ok); }

/* Home */
.hero { display: grid; gap: 24px; align-items: center; padding: 24px 0 40px; }
@media (min-width: 800px) { .hero { grid-template-columns: 1.1fr 1fr; padding: 48px 0 56px; } }
.hero .lead { font-size: 1.15rem; color: var(--muted); }
.hero img { border-radius: var(--radius); }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.section { padding: 40px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 20px; }
.story { max-width: 760px; }

/* Product grid */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--ocean); }
.card-img { aspect-ratio: 1 / 1; background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 14px 16px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.price { font-weight: 600; margin: 0; }
.placeholder { display: block; width: 100%; height: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--paper); font-size: 14px; }
.chips a[aria-current="true"] { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.empty { padding: 32px; text-align: center; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Product page */
.product { display: grid; gap: 28px; }
@media (min-width: 800px) { .product { grid-template-columns: 1fr 1fr; gap: 48px; } }
.product-img { border-radius: var(--radius); overflow: hidden; background: var(--line); aspect-ratio: 1 / 1; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.description { white-space: pre-line; color: var(--muted); }
.options { margin: 18px 0; }
.options legend { font-weight: 600; margin-bottom: 8px; }
.options .opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: var(--paper); cursor: pointer; }
.options .opt input { width: auto; margin: 0; }
.options .opt[aria-disabled="true"] { opacity: .5; }
.qty { width: 110px; }
.buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 8px; }
.buy label { margin-bottom: 0; }
.meta { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* Cart and checkout */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
table.cart { width: 100%; border-collapse: collapse; min-width: 520px; }
table.cart th, table.cart td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.cart th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.cart td.num, table.cart th.num { text-align: right; white-space: nowrap; }
table.cart img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.problem { color: var(--danger); font-size: 14px; margin: 4px 0 0; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 20px; max-width: 420px; margin-left: auto; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.summary .row.total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 20px; }
.checkout { display: grid; gap: 28px; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { font-size: 1.2rem; }
.panel .line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 6px 0; }
.panel .line small { color: var(--muted); }
.payment-note { font-size: 15px; color: var(--muted); margin-top: 12px; white-space: pre-line; }
.confirm { text-align: center; padding: 32px 0; }
.confirm .number { font-size: 1.4rem; font-weight: 700; letter-spacing: .04em; }

/* Static content pages */
.page-body { max-width: 760px; }
.page-body h2 { margin-top: 1.4em; }
.team { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 640px) { .team { grid-template-columns: 1fr 1fr; } }
.team img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { margin-bottom: 14px; }
.contact-list strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qty-cell { margin: 0; font-weight: 400; }
.qty-cell input { width: 90px; margin: 0; }
.cart-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Light and dark switch in the header */
.bar-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--chip-bg);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), background-color 0.4s var(--ease-out);
}
.theme-toggle:hover { transform: rotate(-12deg); }
.theme-toggle:focus-visible { outline: 3px solid rgba(47, 156, 138, 0.6); outline-offset: 3px; }
.theme-toggle svg { grid-area: 1 / 1; transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out); }
.theme-toggle .i-moon { opacity: 1; transform: none; }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
html[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
html[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
.cart-btn { margin-left: 0; }
@media (prefers-reduced-motion: reduce) {
  .theme-toggle, .theme-toggle svg, body { transition: none; }
}


/* ---------- Type system ----------
   One scale for every public page, the header and the footer. Headings and figures use Fraunces, everything
   else Manrope. These rules are written with a little more weight than the page stylesheets so they agree. */
:root:root body h1 { font-family: var(--head); font-size: clamp(2.3rem, 4.8vw, 3.5rem); font-weight: 560; line-height: 1.08; letter-spacing: -0.02em; }
:root:root body h2 { font-family: var(--head); font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 560; line-height: 1.15; letter-spacing: -0.015em; }
:root:root body h3 { font-family: var(--head); font-size: 1.25rem; font-weight: 560; line-height: 1.3; letter-spacing: -0.01em; }
:root:root body p { font-family: var(--text); letter-spacing: 0; }
:root:root body .hm-kicker, :root:root body .hm-eyebrow, :root:root body .eyebrow { font-family: var(--text); font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; }
:root:root body .hm-btn, :root:root body .btn, :root:root body .cart-btn, :root:root body .hm-link { font-family: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
/* Header */
:root:root body .announce { font: 600 13px/1.4 var(--text); letter-spacing: 0.02em; }
:root:root body .nav a { font: 500 15px/1.4 var(--text); letter-spacing: 0.01em; }
:root:root body .cart-label, :root:root body .cart-count { font-family: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
/* Footer */
:root:root body .foot-col h2 { font: 700 12px/1.4 var(--text); letter-spacing: 0.12em; text-transform: uppercase; }
:root:root body .foot-col a, :root:root body .foot-contact li { font: 400 15px/1.6 var(--text); letter-spacing: 0.01em; }
:root:root body .foot-brand p { font: 400 15px/1.7 var(--text); letter-spacing: 0; }
:root:root body .foot-base { font: 400 14px/1.6 var(--text); letter-spacing: 0.01em; }
/* Product cards and prices */
:root:root body .shop-card-name { font: 600 16px/1.35 var(--text); letter-spacing: 0; }
:root:root body .shop-price { font: 600 15px/1.4 var(--text); letter-spacing: 0; }

/* Account button in the header: an outlined pill next to the cart, matching the theme toggle's height. */
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--ink);
  font: 600 15px/1 var(--text);
  text-decoration: none;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.account-btn:hover, .account-btn[aria-current="page"] { background: var(--ocean); border-color: var(--ocean); color: #fff; }
@media (max-width: 520px) { .account-label { display: none; } .account-btn { padding: 0 11px; } }
