/* =========================================================
   MinutesByMe site styles
   Everything themeable lives in :root. Swap these when the
   final logo/palette lands and the whole site re-skins.
   ========================================================= */
:root {
  /* palette: locked MinutesByMe brand ("The Colon" logo): ink + paper + honey.
     Honey has two optically-tuned values: #E39A2B on light grounds, #F2AF44 on ink.
     --marigold is the accent token; dark sections below re-point it to the brighter honey. */
  --ink:        #15161B;
  --ink-2:      #20212A;
  --ink-3:      #2B2C37;
  --paper:      #FBF9F5;
  --paper-card: #FFFFFF;
  --marigold:      #E39A2B;   /* honey on light grounds (accents, borders, fills) */
  --marigold-deep: #93600C;   /* deep honey for TEXT on light grounds, WCAG AA 5.1:1 on paper */
  --honey-dark:    #F2AF44;   /* honey on ink grounds */
  --spent:      #908B97;      /* "old way" / time spent, muted, struck through */
  --line:       #ECE6DA;
  --line-dark:  rgba(255,255,255,0.12);
  --muted:      #6C6873;
  --muted-dark: #B4B0BC;

  /* type */
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body:    "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, "SF Mono", monospace;

  /* structure */
  --wrap: 1120px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* On ink grounds the accent switches to the brighter honey (#F2AF44).
   Every descendant that uses var(--marigold) inherits it automatically. */
.hero, .wedge, .news, .foot, .card--accent, .offer--feature { --marigold: var(--honey-dark); --marigold-deep: var(--honey-dark); }

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; } /* keep anchored sections clear of the 68px sticky nav */
body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* safety net against any stray horizontal overflow */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
mark { background: linear-gradient(transparent 58%, rgba(244,166,42,0.45) 58%); color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: .82em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn--sm { padding: .55em 1em; font-size: .95rem; }
.btn--primary { background: var(--marigold); color: #241a05; box-shadow: 0 8px 22px -10px rgba(244,166,42,.8); }
.btn--primary:hover { background: var(--marigold-deep); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(244,166,42,.95); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* ---------- brand wordmark ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
/* Official outlined logo lockups (no font dependency): light in the nav, dark in the footer. */
.brand__logo { display: block; height: 27px; width: auto; }
.brand__logo--foot { height: 30px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink); opacity: .82; transition: opacity .15s; }
.nav__links a:hover { opacity: 1; }
.nav__links .btn { opacity: 1; }
.nav__toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: clip; }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(56px, 9vw, 104px) clamp(60px, 8vw, 96px); text-align: center; }
.hero__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(244,166,42,.20), transparent 55%),
    radial-gradient(80% 60% at 85% 20%, rgba(143,186,166,.16), transparent 60%);
}
.hero__wordmark {
  display: block; width: min(88%, 560px); height: auto;
  margin: 0 auto clamp(26px, 4vw, 42px);
}
.eyebrow {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--marigold); margin-bottom: 1.4rem;
}
.eyebrow .dot { color: var(--muted-dark); margin-inline: .25em; }
.hero__title { font-size: clamp(2.6rem, 9vw, 6rem); font-weight: 800; letter-spacing: -0.035em; overflow-wrap: break-word; }
.hero__title em { font-style: normal; color: var(--marigold); position: relative; }
.hero__sub {
  max-width: 42ch; margin: 1.6rem auto 0; color: var(--muted-dark);
  font-size: clamp(1.05rem, 2.4vw, 1.28rem); line-height: 1.5;
}
.hero__sub strong { color: #fff; font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.2rem; }

/* ---------- signature meter ---------- */
.meter {
  margin: clamp(48px,7vw,72px) auto 0; max-width: 620px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 34px); text-align: left;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
}
.meter__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.meter__label { font-size: .9rem; color: var(--muted-dark); font-weight: 500; }
.meter__time { font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em; }
.meter__time--before { font-size: 1.5rem; color: var(--spent); text-decoration: line-through; text-decoration-thickness: 2px; }
.meter__time--after { font-size: 1.5rem; color: var(--honey-dark); }
.meter__row--after { margin-top: .55rem; }

.meter__track {
  display: flex; gap: 4px; align-items: flex-end; height: 60px; margin: 16px 0 4px;
  padding: 12px; background: rgba(0,0,0,.22); border-radius: 12px;
}
.tick {
  flex: 1 1 auto; height: 100%; border-radius: 3px;
  background: var(--spent);
  transform-origin: bottom;
  transition: opacity .5s var(--ease), transform .5s var(--ease), background .5s var(--ease);
}
.tick--keep { background: var(--honey-dark); }
/* reclaimed state (toggled by JS / fallback) */
.meter.is-reclaimed .tick--drop { opacity: .12; transform: scaleY(.28); background: var(--muted); }

.meter__reclaim { display: flex; align-items: baseline; gap: .5rem; margin-top: 18px; }
.meter__reclaim-num {
  font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--marigold);
  letter-spacing: -0.03em;
}
.meter__reclaim-txt { color: #fff; font-weight: 600; }
.meter__cap { margin-top: 14px; font-size: .82rem; color: var(--muted-dark); line-height: 1.45; }
.meter__cap span { display: block; opacity: .7; font-size: .78rem; margin-top: 2px; }

/* ---------- section scaffolding ---------- */
.section-eyebrow {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--marigold-deep); margin-bottom: 1rem;
}
.section-eyebrow--light { color: var(--marigold); }
.section-head { max-width: 40ch; margin-bottom: clamp(32px, 5vw, 52px); }
.section-title { font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -0.025em; }
.section-note { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; max-width: 46ch; }

/* ---------- wedge ---------- */
.wedge { background: var(--ink); color: #fff; }
.wedge__inner { padding-block: clamp(64px, 9vw, 108px); max-width: 900px; }
.wedge__lead { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 4.4vw, 2.7rem); line-height: 1.16; letter-spacing: -0.02em; }
.wedge__lead mark { color: var(--marigold); background: none; }
.wedge__body { margin-top: 1.6rem; color: var(--muted-dark); font-size: clamp(1.05rem,2.2vw,1.22rem); max-width: 56ch; }

/* ---------- learn / cards ---------- */
.learn { padding-block: clamp(64px, 9vw, 108px); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(28,24,48,.4); border-color: var(--marigold); }
.card__tick {
  font-family: var(--mono); font-size: .8rem; color: var(--marigold-deep);
  border: 1.5px solid var(--marigold); border-radius: 8px; padding: 2px 8px; display: inline-block; margin-bottom: 16px;
}
.card h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: 1rem; }
.card--accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.card--accent h3 { color: var(--marigold); }
.card--accent p { color: var(--muted-dark); }

/* ---------- follow / hub ---------- */
.follow { padding-block: clamp(56px, 8vw, 96px); background: linear-gradient(180deg, var(--paper), #EFEADD); }
.follow__featured { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chan {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 24px; position: relative; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chan::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--marigold); }
.chan--yt::before { background: #FF3B30; }
.chan--tt::before { background: var(--ink); }
.chan--ig::before { background: linear-gradient(180deg, #F58529, #DD2A7B); }
.chan--x::before  { background: var(--ink); }
.chan:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(28,24,48,.45); }
.chan__name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.chan__handle { font-family: var(--mono); font-size: .86rem; color: var(--muted); }

.follow__more { margin-top: 26px; }
.follow__more summary {
  cursor: pointer; font-weight: 600; list-style: none; display: inline-flex; gap: .4rem; align-items: center;
  padding: 10px 4px; color: var(--ink);
}
.follow__more summary::-webkit-details-marker { display: none; }
.follow__more summary span { transition: transform .2s var(--ease); }
.follow__more[open] summary span { transform: rotate(180deg); }
.links { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.links a {
  display: block; text-decoration: none; padding: 12px 16px; border-radius: 12px;
  background: var(--paper-card); border: 1px solid var(--line); font-weight: 500;
  transition: border-color .15s, transform .15s;
}
.links a:hover { border-color: var(--marigold); transform: translateY(-2px); }
.links__note { margin-top: 14px; color: var(--muted); font-size: .9rem; }

/* ---------- newsletter ---------- */
.news { background: var(--ink); color: #fff; }
.news__inner { padding-block: clamp(60px, 8vw, 100px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.news__title { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.news__sub { margin-top: 1rem; color: var(--muted-dark); font-size: 1.1rem; max-width: 40ch; }
.news__form { display: grid; gap: 12px; }
.news__input {
  width: 100%; font-family: var(--body); font-size: 1.05rem; padding: 1em 1.1em;
  border-radius: 14px; border: 1.5px solid var(--line-dark); background: rgba(255,255,255,.06); color: #fff;
}
.news__input::placeholder { color: var(--muted-dark); }
.news__input:focus-visible { border-color: var(--marigold); outline-offset: 1px; }
.news__form .btn { width: 100%; }
.news__fine { color: var(--muted-dark); font-size: .84rem; }

/* ---------- offers ---------- */
.offers { padding-block: clamp(64px, 9vw, 108px); }
.offers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column; gap: .6rem;
}
.offer--feature { background: var(--ink); color: #fff; border-color: var(--ink); }
.offer--feature p { color: var(--muted-dark); }
.offer__tag {
  align-self: flex-start; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--line); color: var(--muted); margin-bottom: .4rem;
}
.offer__tag--soon { background: var(--marigold); color: #241a05; }
.offer__tag--support { background: var(--ink); color: var(--honey-dark); }
.offer h3 { font-size: 1.4rem; }
.offer p { color: var(--muted); }
.offer--feature h3 { color: var(--marigold); }
.offer__link { margin-top: auto; padding-top: .8rem; font-weight: 600; text-decoration: none; color: var(--marigold-deep); }
.offer--feature .offer__link { color: var(--marigold); }
.offer__link:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.foot { background: #14111F; color: #fff; padding-block: clamp(40px, 6vw, 64px); }
.foot__inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.brand__word--foot { font-size: 1.5rem; }
.foot__tag { margin-top: .6rem; color: var(--muted-dark); max-width: 34ch; }
.foot__meta { text-align: right; }
.foot__meta a { font-family: var(--mono); color: var(--marigold); text-decoration: none; }
.foot__meta a:hover { text-decoration: underline; }
.foot__legal { margin-top: .8rem; color: var(--muted-dark); font-size: .82rem; max-width: 44ch; margin-left: auto; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards, .offers__grid { grid-template-columns: repeat(2, 1fr); }
  .follow__featured { grid-template-columns: repeat(2, 1fr); }
  .links { grid-template-columns: repeat(3, 1fr); }
  .news__inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav__links { display: none; }
  .nav__toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__mobile { display: grid; gap: 2px; padding: 8px 20px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .nav__mobile[hidden] { display: none; } /* respect the hidden attribute over the display rule above */
  .nav__mobile a { text-decoration: none; padding: 12px 8px; font-weight: 600; border-radius: 10px; }
  .nav__mobile a:hover { background: rgba(0,0,0,.04); }
  .cards, .offers__grid, .follow__featured, .links { grid-template-columns: 1fr; }
  .foot__meta, .foot__legal { text-align: left; margin-left: 0; }
}

/* ---------- 404 page ---------- */
.nf { min-height: 100vh; display: grid; place-content: center; text-align: center; background: var(--ink); color: #fff; padding: 40px; }
.nf__code { font-family: var(--mono); color: var(--honey-dark); letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; }
.nf h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin: 1rem 0 .6rem; }
.nf p { color: var(--muted-dark); max-width: 42ch; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
