:root {
  color-scheme: light;
  --ink: #272318;
  --muted: #655d4b;
  --paper: #fbf7ed;
  --border: #e2d8c3;
  --green: #294d3a;
  --dark: #23392e;
  --yellow: #f3c563;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; image-rendering: pixelated; }
button, summary { cursor: pointer; }
button { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #a76b17; outline-offset: 4px; }
p, h1, h2, h3 { margin: 0; }
section[id] { scroll-margin-top: 1.25rem; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 10; top: .5rem; left: .5rem; padding: .5rem .875rem; background: white; }
.wrap { width: min(100% - 3rem, 71.5rem); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; min-height: 5rem; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; font: 700 2rem/1 var(--serif); }
.wordmark img { object-fit: contain; padding: .17rem; background: #f6e4b4; border-radius: .95rem; }
.wordmark-dot { color: #80541b; }
nav { display: flex; flex-wrap: wrap; gap: 1.65rem; }
nav a { text-decoration: none; font-weight: 650; font-size: .94rem; }
nav a:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: .25em; }
.draft {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .65rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--muted);
  font-size: .875rem;
  white-space: nowrap;
}
.draft > span { width: .42rem; height: .42rem; border-radius: 50%; background: var(--green); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.9rem, 8vw, 6.6rem) clamp(4.2rem, 8vw, 6.8rem);
}
.eyebrow {
  color: var(--green);
  font: 700 .875rem/1.3 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); }
h1 {
  font-size: clamp(3.2rem, 5.45vw, 5.12rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.065em;
  margin-block: 1.1rem 1.25rem;
}
h1 em { display: inline-block; font-weight: 400; color: var(--green); }
.hero-intro { max-width: 30rem; color: var(--muted); font-size: clamp(1.04rem, 1.55vw, 1.17rem); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.7rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: .6rem 1.16rem;
  border: 1px solid transparent;
  border-radius: .68rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}
.button-primary { background: var(--yellow); border-color: #d4a447; color: #211a11; }
.button-primary:hover { background: #ffd680; border-color: #9f6f2a; }
.button-quiet { border-color: #d5c8ae; background: #fbf7ed; }
.button-quiet:hover { background: #f3ead6; }

.preview {
  background: var(--dark);
  color: #f8efd9;
  padding: .82rem;
  border: 1px solid #203126;
  border-radius: 1.3rem;
  box-shadow: .57rem .57rem 0 #e8d9b8;
  min-width: 0;
}
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .1rem .1rem .72rem .22rem; }
.preview-label { font-size: .92rem; font-weight: 700; }
.preview-modes { display: flex; gap: .15rem; background: #18291f; border-radius: .55rem; padding: .18rem; }
.preview-modes button {
  border: 0;
  border-radius: .4rem;
  padding: .42rem .58rem;
  color: #f8efd9;
  background: transparent;
  font-size: .875rem;
  font-weight: 650;
}
.preview-modes button:hover { background: #4f6e55; }
.preview-modes button[aria-pressed="true"] { color: #29231b; background: #f5e4b7; }
.preview-recordings { display: grid; place-items: center; border-radius: .75rem; background: #18291f; }
.preview-recordings video { display: block; height: auto; max-width: 100%; object-fit: contain; border-radius: .75rem; }
.preview-recordings .desktop-recording { width: 100%; }
.preview-recordings .mobile-recording { width: min(100%, 13.5rem); }
.preview :is(button, video):focus-visible { outline: 3px solid #f3c563; outline-offset: 3px; }

.meet { padding-bottom: clamp(4rem, 7vw, 5.75rem); }
.section-heading { margin-bottom: 1.6rem; }
h2 { margin-top: .45rem; font-weight: 500; letter-spacing: -.05em; line-height: 1.08; font-size: clamp(2.35rem, 4vw, 3.6rem); }
h3 { font-weight: 600; font-size: 1.62rem; line-height: 1.14; letter-spacing: -.035em; }
.habits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.18rem; }
.habit { border-top: 1px solid var(--border); padding-top: .85rem; }
.habit-art { display: flex; position: relative; align-items: center; justify-content: center; min-height: 7.75rem; border-radius: .7rem; margin-bottom: 1rem; overflow: hidden; }
.habit-art::before { content: ""; position: absolute; width: 12rem; height: 12rem; border-radius: 50%; background: #fffbef88; right: 9%; top: -3rem; }
.habit-art img { height: auto; z-index: 1; }
.habit-seed img { width: 6.55rem; }
.habit-nap img, .habit-thought img { width: 4.8rem; }
.habit-art span { position: absolute; z-index: 2; top: 1rem; right: 19%; font: 700 .98rem var(--mono); color: #3d4634; }
.habit-seed { background: #ebdab1; }
.habit-nap { background: #dbe4cd; }
.habit-thought { background: #eed7c9; }
.habit-thought span { padding: .1rem .36rem; border-radius: .36rem; background: #fff7e5; }
.habit p { color: var(--muted); margin-top: .45rem; max-width: 22rem; }

.downloads { background: #e9ecdd; border-block: 1px solid #d5decb; padding-block: clamp(3.6rem, 6vw, 5.3rem); }
.download-grid { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: 1.15rem; align-items: start; }
.download-card {
  padding: clamp(1.15rem, 2.7vw, 1.9rem);
  background: var(--paper);
  border: 1px solid #d5d6c4;
  border-radius: 1rem;
}
.download-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.download-top h3 { font-size: clamp(1.65rem, 3vw, 2.3rem); margin-block: .3rem .65rem; }
.platform { font: 700 .875rem var(--mono); color: var(--green); }
.download-card > p:not(.release-note) { color: var(--muted); max-width: 30rem; min-height: 3.2em; }
.download-card > .button { margin-block: 1.22rem .35rem; }
.platform-icon { display: block; position: relative; flex: 0 0 auto; color: var(--green); background: #e9ecdd; border: 2px solid currentColor; }
.desktop-icon { width: 2.52rem; height: 1.7rem; border-radius: .23rem; margin-bottom: .4rem; }
.desktop-icon::after { position: absolute; content: ""; width: 1.18rem; bottom: -.49rem; left: .55rem; border-bottom: 2px solid currentColor; }
.mobile-icon { width: 1.4rem; height: 2.35rem; border-radius: .33rem; margin-right: .35rem; }
.mobile-icon::after { position: absolute; content: ""; width: .36rem; bottom: .14rem; left: .39rem; border-bottom: 2px solid currentColor; }
.release-note { margin-top: .32rem; color: var(--muted); font-size: .875rem; }
details { border-top: 1px solid var(--border); margin-top: .95rem; padding-top: .72rem; }
summary { color: var(--green); font-weight: 700; }
details ol { padding-left: 1.3rem; margin-bottom: 0; }
details li + li { margin-top: .38rem; }

.tester-link { display: inline-block; margin-top: .45rem; font-weight: 650; color: var(--green); }
.tester-section { background: #f1e7d2; border-bottom: 1px solid var(--border); padding-block: clamp(3.6rem, 6vw, 5.3rem); }
.tester-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(1.5rem, 6vw, 4.8rem); align-items: start; }
.tester-layout h2 { margin: 0 0 .85rem; }
.tester-layout p, .tester-steps { color: var(--muted); }
.tester-steps { padding-left: 1.35rem; margin-block: 1.15rem 0; }
.tester-steps li + li { margin-top: .55rem; }
.tester-form { padding: clamp(1.1rem, 3vw, 1.75rem); border: 1px solid var(--border); border-radius: 1rem; background: var(--paper); }
.tester-form h3 { margin-bottom: .45rem; }
.tester-form > label { display: block; margin-top: 1rem; font-weight: 650; }
.tester-form input[type="email"] { width: 100%; min-height: 3rem; margin-top: .3rem; padding: .55rem .65rem; border: 1px solid #a09275; border-radius: .45rem; background: #fffdf6; color: var(--ink); font: inherit; }
.tester-form input:focus-visible { outline: 3px solid #a76b17; outline-offset: 3px; }
.tester-form .tester-consent { display: flex; gap: .62rem; align-items: start; font-weight: 400; font-size: .94rem; }
.tester-consent input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin: .22rem 0 0; accent-color: var(--green); }
.tester-form .button { margin-top: 1rem; }
.tester-form .button:disabled { cursor: wait; opacity: .7; }
.tester-form .tester-status:not(:empty) { margin-top: .65rem; color: var(--green); font-weight: 650; }
.tester-form .tester-status[data-error] { color: #8c361f; }

.faq-section { border-bottom: 1px solid var(--border); }
.faq {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(1rem, 5vw, 3.5rem);
  padding-block: clamp(2.75rem, 5vw, 4rem);
}
.faq h2 { max-width: 15ch; margin: 0; }
.faq-content { border-block: 1px solid var(--border); }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  min-height: 3rem;
  padding: .75rem 0;
  font-weight: 650;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green); }
.faq-toggle {
  display: grid;
  flex: 0 0 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--green);
  font-weight: 500;
  line-height: 1;
}
.faq-toggle::before { content: "+"; }
.faq-item[open] .faq-toggle::before { content: "−"; }
.faq-answer { padding: 0 2.6rem 1rem 0; color: var(--muted); }
.faq-answer p + p { margin-top: .75rem; }

.story { background: #f2ead8; padding-block: clamp(3.25rem, 7vw, 5.6rem); }
.story-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 36rem);
  align-items: start;
  justify-content: center;
  gap: clamp(1.1rem, 4vw, 3rem);
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}
.story-art { display: grid; place-items: center; width: 8.75rem; aspect-ratio: 1; border-radius: 50%; background: #eddfb7; border: 1px solid #e4d2a7; }
.story-art img { width: 80%; }
.story-copy > p:not(.eyebrow) { margin-top: .85rem; color: var(--muted); }

.taco-collage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(10.5rem, 22vw, 17.25rem);
  gap: clamp(.42rem, 1vw, .82rem);
  padding: clamp(.5rem, 1.35vw, 1rem);
  background: #fffbf1;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
}
.taco-photo { position: relative; min-height: 0; overflow: hidden; background: #e5d8bf; border-radius: .6rem; }
.taco-photo.photo-wide { grid-column: span 2; }
.taco-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, center);
  image-rendering: auto;
}


.site-footer { border-top: 1px solid var(--border); }
.footer-inner { min-height: 4.65rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding-block: .9rem; color: var(--muted); font-size: .9rem; }
.footer-name { font: 700 1.4rem var(--serif); color: var(--ink); }
.footer-inner a { text-decoration: none; }
.footer-inner a:last-child { margin-left: auto; }
.footer-contact { padding-block: .85rem 1.25rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.footer-contact p { max-width: 72ch; }
.footer-contact p + p { margin-top: .45rem; }
.footer-contact a { overflow-wrap: anywhere; text-underline-offset: .2em; }

.edge-taco { position: fixed; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; }
.edge-taco canvas { position: absolute; top: 0; left: 0; height: auto; image-rendering: pixelated; }
.footer-motion {
  padding: .35rem .65rem;
  border: 1px solid var(--border);
  border-radius: .42rem;
  background: transparent;
  color: var(--green);
  font: inherit;
}
.footer-motion:hover { background: #f3ead6; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 2.1rem; }
  .hero-copy { max-width: 34rem; }
  .preview { max-width: 39rem; }
}
@media (max-width: 700px) {
  .faq { grid-template-columns: 1fr; }
  .taco-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .taco-photo, .taco-photo.photo-wide { grid-column: auto; aspect-ratio: 1 / 1.06; }
  .taco-photo.photo-lead { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding-block: .65rem; }
  nav { grid-row: 2; grid-column: 1/-1; gap: .35rem 1.05rem; padding-bottom: .16rem; }
  .draft { grid-column: 2; grid-row: 1; }
  .hero { padding-block: 2.75rem 3.5rem; }
  .hero-actions .button { min-height: 2.8rem; }
  .preview { padding: .62rem; box-shadow: .32rem .32rem 0 #e8d9b8; }
  .habits, .download-grid, .tester-layout { grid-template-columns: 1fr; }
  .habit-art { min-height: 6.3rem; }
  .story-heading { grid-template-columns: 1fr; }
  .story-art { width: 5.5rem; }
  .footer-inner { gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .edge-taco { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
