/* =========================================================
   LOW KEY LIVING — design tokens
   Palette drawn from the Idle Speed badge + Pelican chart art
   ========================================================= */
:root {
  --cream: #F3EEE1;
  --cream-2: #EAE2D0;
  --ink: #1E2B38;
  --ink-70: rgba(30,43,56,.72);
  --ink-45: rgba(30,43,56,.45);
  --line: rgba(30,43,56,.16);
  --line-strong: rgba(30,43,56,.32);
  --orange: #D9662E;
  --orange-dark: #B84F1F;
  --teal: #3B7B78;
  --teal-dark: #2B5C59;
  --seafoam: #CFDFD6;
  --sand: #E7DCC3;
  --white: #FBF9F4;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- utility type ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-45);
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.03; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; }
h3 { font-size: 20px; }
p { color: var(--ink-70); }
.lede { font-size: 19px; color: var(--ink-70); max-width: 54ch; }

/* ---- nav ---- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,238,225,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
nav.wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brandmark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 19px;
  text-decoration: none; color: var(--ink);
}
.brandmark .mk { width: 34px; height: 34px; flex: none; object-fit: contain; }
.navlinks { display: flex; gap: 30px; align-items: center; }
.navlinks a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  color: var(--ink-70); letter-spacing: .01em;
}
.navlinks a:hover { color: var(--ink); }
.navlinks a.cta {
  color: var(--white); background: var(--teal);
  padding: 9px 18px; border-radius: 3px; font-weight: 600;
}
.navlinks a.cta:hover { background: var(--teal-dark); }
.navtoggle { display: none; }

/* ---- hairline tide rule (signature motif) ---- */
.tide-rule {
  width: 100%; height: 46px; overflow: hidden;
  margin: 0 auto;
}
.tide-rule svg { width: 100%; height: 100%; display: block; }
.tide-rule path {
  fill: none; stroke: var(--line-strong); stroke-width: 1;
}
.tide-rule .beat {
  stroke: var(--orange); stroke-width: 1.4;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 3.6s ease-out forwards .3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tide-rule .beat { animation: none; stroke-dashoffset: 0; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 3px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---- hero ---- */
.hero {
  padding: 74px 0 40px;
  position: relative;
}
.hero .phases {
  display: flex; gap: 22px; justify-content: center; margin-bottom: 26px;
  opacity: .75;
}
.hero .phases span {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--ink);
  position: relative;
}
.hero .phases span::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--cream);
}
.hero .phases span:nth-child(1)::after { clip-path: inset(0 0 0 0); background: var(--cream); }
.hero .phases span:nth-child(2)::after { clip-path: inset(0 0 0 55%); }
.hero .phases span:nth-child(3)::after { clip-path: inset(0 0 0 78%); }
.hero .phases span:nth-child(4)::after { display: none; }
.hero .phases span:nth-child(5)::after { clip-path: inset(0 78% 0 0); }
.hero .phases span:nth-child(6)::after { clip-path: inset(0 55% 0 0); }
.hero .phases span:nth-child(7)::after { clip-path: inset(0 0 0 0); }

.hero-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { margin: 0 auto 30px; text-align: center; }
.hero .ctas { display: flex; gap: 14px; justify-content: center; margin-bottom: 8px; }
.coords {
  font-family: var(--mono); font-size: 12px; color: var(--ink-45);
  margin-top: 22px; letter-spacing: .05em;
}

/* ---- chart-style section header ---- */
.chart-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 40px;
  flex-wrap: wrap; gap: 10px;
}
.chart-head .tag {
  font-family: var(--mono); font-size: 12px; color: var(--ink-45);
  letter-spacing: .1em;
}

/* ---- collections grid ---- */
section { padding: 70px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card .art {
  aspect-ratio: 4/3; background: var(--seafoam);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-45); font-family: var(--mono); font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.card .body { padding: 20px 22px 24px; }
.card .eyebrow { margin-bottom: 6px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; margin: 0 0 16px; }
.card .price { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.card-link {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
}
.card-link a {
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  color: var(--teal-dark);
}
.card-link a:hover { color: var(--orange-dark); }

/* ---- quote wall (dock reads) ---- */
.quotewall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.quote {
  background: var(--cream); padding: 30px 26px; min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.quote .txt { font-family: var(--display); font-size: 19px; line-height: 1.3; }
.quote .who { font-family: var(--mono); font-size: 11px; color: var(--ink-45); margin-top: 16px; letter-spacing: .05em; }

/* ---- mission strip ---- */
.mission-strip {
  background: var(--ink); color: var(--white); border-radius: 6px;
  padding: 46px 44px; display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.mission-strip h2 { color: var(--white); }
.mission-strip p { color: rgba(251,249,244,.75); max-width: 46ch; }
.mission-strip .btn-primary { background: var(--orange); }

/* ---- footer ---- */
footer.site {
  border-top: 1px solid var(--line); padding: 46px 0 34px;
}
.foot-grid {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px;
  margin-bottom: 30px;
}
.foot-brand { max-width: 320px; }
.foot-brand .brandmark { margin-bottom: 10px; }
.foot-brand p { font-size: 13.5px; }
.foot-cols { display: flex; gap: 60px; }
.foot-col h4 {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-45); margin: 0 0 14px;
}
.foot-col a {
  display: block; font-size: 14px; text-decoration: none; color: var(--ink-70);
  margin-bottom: 10px;
}
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-45);
}

/* ---- inner page hero (shop / mission) ---- */
.page-hero { padding: 56px 0 20px; text-align: center; }
.page-hero .eyebrow { display: block; margin-bottom: 14px; }
.page-hero .lede { margin: 18px auto 0; }

/* ---- shop filters ---- */
.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); margin-bottom: 40px;
  flex-wrap: wrap; gap: 14px;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink-70);
  padding: 8px 14px; border-radius: 20px; cursor: pointer;
}
.filters button.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.product .art { aspect-ratio: 1/1; background: var(--sand); display:flex; align-items:center; justify-content:center; color: var(--ink-45); font-family: var(--mono); font-size: 12px; border-bottom: 1px solid var(--line);}
.product .body { padding: 18px 20px 22px; }
.product .row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.product .price { font-family: var(--mono); font-size: 14px; }
.product button.add {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--teal); color: var(--white); border: none; padding: 9px 14px; border-radius: 3px; cursor: pointer;
}
.product button.add:hover { background: var(--teal-dark); }

.zeffy-block {
  border: 1px dashed var(--line-strong); border-radius: 6px; padding: 30px;
  text-align: center; background: var(--white); margin-top: 10px;
}
.zeffy-block .eyebrow { margin-bottom: 10px; }
.zeffy-block code {
  display: block; background: var(--cream-2); padding: 14px 16px; border-radius: 4px;
  font-family: var(--mono); font-size: 12px; text-align: left; margin-top: 14px; overflow-x: auto;
  color: var(--ink-70);
}

/* ---- mission page ---- */
.mission-hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center;
  padding: 30px 0 70px;
}
.mission-hero .art {
  aspect-ratio: 4/5; background: var(--seafoam); border-radius: 6px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink-45);
  font-family: var(--mono); font-size: 12px;
}
.stat-row { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.stat { }
.stat .num { font-family: var(--display); font-size: 34px; color: var(--orange-dark); }
.stat .lbl { font-family: var(--mono); font-size: 11.5px; color: var(--ink-45); text-transform: uppercase; letter-spacing: .06em; }

.timeline { border-left: 1px solid var(--line-strong); padding-left: 30px; }
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -35px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--orange); border: 2px solid var(--cream);
}
.tl-item .yr { font-family: var(--mono); font-size: 12px; color: var(--orange-dark); margin-bottom: 6px; display:block;}

/* ---- responsive ---- */
@media (max-width: 880px) {
  .grid3, .quotewall, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .navlinks { display: none; }
  .mission-hero { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid3, .grid2, .quotewall, .product-grid { grid-template-columns: 1fr; }
  .mission-strip { flex-direction: column; align-items: flex-start; }
  .foot-cols { gap: 30px; }
}
