:root {
  --paper: #f4efe6;
  --paper-deep: #e8dfd1;
  --ink: #252724;
  --muted: #6e6d66;
  --line: rgba(37, 39, 36, 0.17);
  --accent: #d85432;
  --accent-dark: #ad3b22;
  --green: #294f45;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(58, 48, 38, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-family: Georgia, serif;
  font-style: italic;
}

nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); }
nav a { font-size: 0.88rem; font-weight: 650; text-decoration: none; }
nav a:not(.nav-cta):hover { color: var(--accent); }

.nav-cta {
  padding: 0.7rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: 160ms ease;
}

.nav-cta:hover { background: var(--ink); color: var(--paper); }

.hero {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  min-height: min(760px, calc(100vh - 92px));
  padding: clamp(4rem, 9vw, 8rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--accent-dark);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse-dot {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(216, 84, 50, 0.12);
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

h1 { margin-bottom: 1.8rem; font-size: clamp(3.7rem, 7.5vw, 7.1rem); }
h1 em { color: var(--accent); font-weight: 400; }

.hero-intro {
  max-width: 580px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 52px;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease;
}

.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { transform: translateY(-2px); background: var(--accent); }
.text-link { font-size: 0.9rem; font-weight: 750; text-underline-offset: 0.3rem; }

.hero-note {
  display: flex;
  gap: clamp(1rem, 4vw, 2.5rem);
  margin-top: 3rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-note strong { color: var(--ink); font-size: 1.05rem; }

.hero-art { position: relative; min-height: 520px; display: grid; place-items: center; }

.paper-card {
  position: absolute;
  width: min(100%, 520px);
  aspect-ratio: 1.15 / 1;
  border: 1px solid rgba(44, 39, 33, 0.09);
  background-color: #fbf8f1;
  box-shadow: var(--shadow);
}

.paper-card-back { transform: rotate(5deg) translate(12px, 8px); background: #ded5c7; }
.featured-sketch { transform: rotate(-2deg); }

.hand-note {
  position: absolute;
  right: -1rem;
  bottom: 0;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 0.9rem;
  line-height: 1.35;
  transform: rotate(-4deg);
}

.sketch-cup, .sketch-apple, .sketch-key, .sketch-trainer {
  background-image: url("assets/todays-four-drawing-guide.webp");
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.sketch-cup { background-position: center 0%; }
.sketch-apple { background-position: center 34%; }
.sketch-key { background-position: center 67%; }
.sketch-trainer { background-position: center 100%; }

.principles {
  padding: clamp(5rem, 10vw, 9rem) max(24px, calc((100% - 1240px) / 2));
  color: var(--white);
  background: var(--green);
}

.section-heading { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 2rem; align-items: start; }
.section-heading .eyebrow { color: #e6a994; }
.section-heading h2 { max-width: 780px; margin-bottom: clamp(3rem, 8vw, 6rem); font-size: clamp(2.8rem, 5vw, 5rem); }

.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.18); }
.principle-grid article { padding: clamp(1.6rem, 4vw, 3rem); background: var(--green); }
.step-number { display: block; margin-bottom: 3.5rem; color: #e6a994; font-family: Georgia, serif; font-style: italic; }
.principle-grid h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.principle-grid p { max-width: 340px; margin: 0; color: rgba(255,255,255,0.67); font-size: 0.92rem; }

.daily {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.daily-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.daily-heading h2 { margin-bottom: 0; font-size: clamp(3rem, 6vw, 5.5rem); }
.progress-wrap { width: min(100%, 250px); }
.progress-wrap p { margin-bottom: 0.6rem; color: var(--muted); font-size: 0.78rem; text-align: right; }
.progress-track { height: 4px; overflow: hidden; background: var(--paper-deep); }
.progress-track span { display: block; width: 0; height: 100%; background: var(--accent); transition: width 300ms ease; }

.drawing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.drawing-card { overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,0.27); transition: transform 180ms ease, box-shadow 180ms ease; }
.drawing-card:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(58, 48, 38, 0.08); }
.drawing-card.is-complete { border-color: rgba(41, 79, 69, 0.45); }
.drawing-preview { aspect-ratio: 2.7 / 1; border-bottom: 1px solid var(--line); background-color: #fbf8f1; }
.drawing-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem; }
.drawing-meta > div { display: flex; align-items: baseline; gap: 0.75rem; }
.drawing-meta span { color: var(--muted); font-size: 0.7rem; }
.drawing-meta h3 { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }

.challenge-preview {
  position: relative;
  min-height: 220px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(216, 84, 50, 0.08), transparent 24%),
    #fbf8f1;
}

.challenge-copy { width: min(68%, 400px); }
.challenge-kicker {
  margin-bottom: 0.55rem;
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.challenge-kicker span {
  margin-left: 0.4rem;
  padding-left: 0.55rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.challenge-copy h3 {
  margin-bottom: 0.55rem;
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.number-sequence {
  margin-bottom: 0.8rem;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
.number-sequence strong { color: var(--accent); }
.challenge-options { display: flex; gap: 0.45rem; }
.challenge-options button {
  min-width: 44px;
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
}
.challenge-options button:hover,
.challenge-options button:focus-visible { border-color: var(--ink); }
.challenge-options button.is-wrong { border-color: var(--accent); color: var(--accent-dark); }
.challenge-options button.is-correct { border-color: var(--green); color: white; background: var(--green); }
.challenge-feedback {
  min-height: 1.1rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}
.yesterday-answer {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 145px;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(244, 239, 230, 0.88);
}
.yesterday-answer span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.yesterday-answer strong { font-family: Georgia, serif; font-size: 0.85rem; font-weight: 600; }
.yesterday-answer p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.62rem; line-height: 1.35; }
.yesterday-answer a {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--accent-dark);
  font-size: 0.6rem;
  font-weight: 750;
  text-underline-offset: 0.18rem;
}

.complete-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
}

.complete-button:hover { border-color: var(--ink); }
.complete-button .check { display: none; }
.is-complete .complete-button { color: white; border-color: var(--green); background: var(--green); }
.is-complete .complete-button .check { display: inline; color: white; }

.completion-message {
  margin-top: 1.25rem;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
  background: var(--accent);
}

.completion-message[hidden] { display: none; }
.completion-message > span { font-size: 2rem; }
.completion-message p { margin: 0.15rem 0 0; color: rgba(255,255,255,0.8); font-size: 0.85rem; }

.archive {
  padding: clamp(5rem, 10vw, 9rem) max(24px, calc((100% - 1240px) / 2));
  color: var(--white);
  background: var(--green);
}
.archive-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: clamp(2rem, 8vw, 8rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.archive-heading .eyebrow { color: #e6a994; }
.archive-heading h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5rem); }
.archive-heading > p {
  max-width: 470px;
  margin: 0 0 0.35rem;
  color: rgba(255,255,255,0.67);
  font-size: 0.95rem;
}
.archive-day { border-top: 1px solid rgba(255,255,255,0.22); }
.archive-day > header {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.62);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.archive-day > header p { margin: 0; }
.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.18); }
.archive-cell {
  min-height: 190px;
  padding: 1.4rem;
  color: var(--white);
  background: var(--green);
  text-decoration: none;
  transition: background 160ms ease;
}
.archive-cell:hover { background: #335f53; }
.archive-cell span {
  display: block;
  margin-bottom: 2.8rem;
  color: #e6a994;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.archive-cell strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: Georgia, serif;
  font-size: 1.18rem;
  font-weight: 500;
}
.archive-cell p { margin: 0; color: rgba(255,255,255,0.58); font-size: 0.76rem; line-height: 1.45; }

.manifesto {
  min-height: 510px;
  padding: clamp(4rem, 9vw, 8rem) max(24px, calc((100% - 1040px) / 2));
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--paper-deep);
}

.manifesto p { max-width: 980px; margin-bottom: 2rem; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.05; letter-spacing: -0.04em; }
.manifesto a { color: var(--accent-dark); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; text-underline-offset: 0.35rem; }

footer {
  width: min(1240px, calc(100% - 48px));
  min-height: 150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
}

footer p { margin: 0; }
footer p:nth-child(2) { text-align: center; }
footer p:last-child { text-align: right; }
.footer-brand { color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 900px) {
  nav > a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-art { min-height: 450px; }
  .section-heading { grid-template-columns: 1fr; gap: 0; }
  .principle-grid { grid-template-columns: 1fr; }
  .step-number { margin-bottom: 1.5rem; }
  .drawing-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .site-header, .hero, .daily, footer { width: min(100% - 32px, 1240px); }
  .site-header { min-height: 74px; }
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 1.75rem; height: 1.75rem; }
  .nav-cta { padding: 0.55rem 0.8rem; font-size: 0.75rem; }
  .hero { min-height: auto; padding: 4.25rem 0 5rem; }
  h1 { font-size: clamp(3.15rem, 16vw, 4.9rem); }
  .hero-note { justify-content: space-between; gap: 0.5rem; }
  .hero-art { min-height: 340px; }
  .hand-note { right: 0; bottom: -1.25rem; }
  .principles { padding-left: 16px; padding-right: 16px; }
  .daily-heading { align-items: start; flex-direction: column; }
  .progress-wrap { width: 100%; }
  .progress-wrap p { text-align: left; }
  .drawing-preview { aspect-ratio: 2.2 / 1; background-size: 122% auto; }
  .challenge-preview { min-height: 245px; padding: 1.15rem; align-items: end; }
  .challenge-copy { width: 100%; }
  .yesterday-answer { top: 0.65rem; right: 0.65rem; width: 132px; }
  .drawing-meta { padding: 1rem; }
  .archive-heading { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-cell { min-height: 150px; }
  .archive-cell span { margin-bottom: 1.8rem; }
  .button-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .complete-button { width: 40px; justify-content: center; padding: 0; }
  .complete-button::before { content: "Done"; font-size: 0.65rem; }
  .is-complete .complete-button::before { display: none; }
  .is-complete .complete-button .check { display: inline; }
  footer { grid-template-columns: 1fr; padding: 2rem 0; text-align: center; }
  footer p:nth-child(2), footer p:last-child { text-align: center; }
}

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