/* 2027 Calendar · coming soon
   Palette and type are defined in docs/03-brand-and-naming.md */

:root {
  --green: #0B5D4B;
  --green-deep: #084638;
  --gold: #FFC629;
  --cream: #F8F4EA;
  --paper: #FFFFFF;
  --ink: #17201C;
  --ink-soft: #46524C;
  --line: #CBD6D0;
  --weekend: #E6F1EC;

  --note-yellow: #FFE45C;
  --note-pink: #FF9EC4;
  --note-blue: #8FD3FF;
  --note-green: #B8F06A;
  --note-orange: #FFB25C;

  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Top bar */
.topbar {
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  padding: 9px var(--gutter);
}

/* Header */
.header {
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.wordmark {
  font-family: var(--display);
  font-size: 28px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
  display: inline-flex; align-items: center; gap: 10px;
  line-height: 1;
}
.wordmark .tile {
  background: var(--green); color: var(--gold);
  padding: 5px 8px 4px; border-radius: 6px;
}
.header-link {
  font-weight: 700; font-size: 15px; text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.header-link:hover { border-color: var(--ink); }

/* Buttons */
.btn {
  appearance: none;
  border: 2px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 13px 24px 12px;
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible,
input:focus-visible,
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero {
  background: var(--green);
  color: #fff;
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px);
  position: relative;
}
.hero .wrap {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.chip {
  display: inline-block;
  background: var(--gold); color: var(--ink);
  font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(50px, 7.2vw, 96px); }
.hero h1 .gold { color: var(--gold); display: block; }
.lede {
  font-size: clamp(18px, 2vw, 21px);
  max-width: 34em;
  margin: 22px 0 28px;
  color: #EAF3EF;
}

/* Signup form */
.signup { max-width: 520px; }
.signup-row { display: flex; gap: 12px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  padding: 13px 16px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.signup .fine {
  font-size: 13.5px; margin: 14px 0 0; color: #CFE3DB; max-width: 40em;
}
.signup .fine a { color: #fff; }
.signup-msg {
  display: none;
  margin: 0;
  padding: 16px 18px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--note-yellow);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
}
.signup.is-done .signup-row,
.signup.is-done .fine { display: none; }
.signup.is-done .signup-msg { display: block; }
.signup-error { display: none; margin: 12px 0 0; font-weight: 700; color: var(--gold); }
.signup.has-error .signup-error { display: block; }
.hp { position: absolute; left: -9999px; }

/* Calendar board (hero graphic) */
.board {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: clamp(10px, 1.6vw, 18px);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.28);
  transform: rotate(1.2deg);
}
.board-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: clamp(6px, 1vw, 12px);
}
.board-title {
  font-family: var(--display); color: var(--green);
  font-size: clamp(22px, 3.6vw, 44px); line-height: 1; text-transform: uppercase;
}
.board-sub {
  font-size: clamp(8px, 1vw, 11px); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.year-grid {
  display: grid;
  grid-template-columns: minmax(20px, 5.5%) repeat(31, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.year-grid > div { background: var(--paper); aspect-ratio: 3 / 4; position: relative; }
.year-grid > .m {
  aspect-ratio: auto;
  background: var(--green); color: #fff;
  font-family: var(--display);
  font-size: clamp(7px, 1vw, 12px);
  display: grid; place-items: center;
}
.year-grid > .we { background: var(--weekend); }
.year-grid > .x { background: #F1F3F2; }
.year-grid > .n::after {
  content: "";
  position: absolute; inset: 7%;
  background: var(--c, var(--note-yellow));
  transform: rotate(var(--r, 0deg));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

/* Marquee */
.marquee {
  background: var(--ink); color: var(--cream);
  overflow: hidden; white-space: nowrap;
  padding: 14px 0;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.marquee-track { display: inline-flex; animation: slide 36s linear infinite; }
.marquee span {
  font-family: var(--display); text-transform: uppercase; font-size: 20px;
  letter-spacing: 0.04em; padding: 0 22px;
}
.marquee span::after { content: "✦"; color: var(--gold); margin-left: 44px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section h2 { font-size: clamp(38px, 6vw, 68px); color: var(--green); }
.section .intro { max-width: 38em; margin: 16px 0 0; font-size: 18px; color: var(--ink-soft); }

.cards {
  display: grid; gap: 20px; margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 26px 24px 28px;
  box-shadow: 6px 6px 0 var(--ink);
}
.card .num {
  font-family: var(--display); font-size: 22px; color: var(--ink);
  background: var(--gold); display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--ink);
  margin-bottom: 18px;
}
.card h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 28px; line-height: 1.05; margin: 0 0 10px; }
.card p { margin: 0; color: var(--ink-soft); }

/* Sticky note strip */
.sticky { background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.week-scroll { overflow-x: auto; margin-top: 40px; padding-bottom: 10px; }
.week {
  display: grid; grid-template-columns: repeat(7, minmax(104px, 1fr));
  gap: 2px; background: var(--ink); border: 2px solid var(--ink);
  min-width: 742px;
}
.day { background: var(--paper); aspect-ratio: 3 / 4; position: relative; padding: 8px 10px; }
.day.we { background: var(--weekend); }
.day .d { font-family: var(--display); font-size: 22px; line-height: 1; color: var(--green); }
.day .w { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-soft); margin-left: 6px; }
.note {
  position: absolute; left: 9%; right: 9%; bottom: 7%; top: 24%;
  background: var(--c); transform: rotate(var(--r));
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.22);
  font-family: var(--hand); font-size: clamp(19px, 2.2vw, 26px); font-weight: 700; line-height: 1.05;
  display: grid; place-items: center; text-align: center; padding: 8px;
  color: #1c1c1c;
}
.caption { font-size: 14.5px; color: var(--ink-soft); margin: 14px 0 0; }

/* Sizes */
.sizes { display: grid; gap: 20px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.size {
  border: 2px solid var(--ink); border-radius: 14px; padding: 28px 26px 30px;
  background: var(--green); color: #fff; box-shadow: 6px 6px 0 var(--ink);
}
.size.mini { background: var(--gold); color: var(--ink); }
.size h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 44px; line-height: 1; margin: 0 0 12px; }
.size p { margin: 0 0 8px; }
.size .tag { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }

.swatches { display: flex; gap: 10px; margin-top: 18px; align-items: center; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-soft); }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); background: var(--s); }

/* Final CTA */
.cta { background: var(--green); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta .lede { margin-left: auto; margin-right: auto; }
.cta .signup { margin: 0 auto; text-align: left; }

/* Footer */
.footer { background: var(--ink); color: #C9D3CE; font-size: 14.5px; padding: 34px 0 40px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.footer a { color: #fff; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Plain document pages (privacy) */
.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(42px, 7vw, 72px); color: var(--green); margin-bottom: 8px; }
.doc h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 26px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc .meta { color: var(--ink-soft); font-size: 15px; }
