@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f0e7;
  --paper-2: #ece7db;
  --ink: #111814;
  --ink-2: #26302a;
  --muted: #5d625b;
  --line: #c9c4b7;
  --lime: #c8ef73;
  --lime-deep: #58761a;
  --teal: #0f6b60;
  --clay: #a95535;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  font-size: 13px;
  transition: top 180ms var(--ease);
}
.skip:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
}

.brand-dot {
  color: var(--lime-deep);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-header nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.site-header nav a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Hero */
.hero {
  padding: 84px 0 98px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 64px;
  align-items: end;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--lime-deep);
}

.hero h1 {
  max-width: 820px;
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(72px, 10.4vw, 142px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .84;
}

.hero h1 em {
  font-weight: 400;
}

.hero-lede {
  max-width: 31ch;
  margin-top: 31px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.13;
  letter-spacing: -.02em;
}

.hero-note {
  max-width: 50ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 31px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: gap 180ms var(--ease), color 180ms var(--ease);
}
.scroll-cue span {
  color: var(--lime-deep);
  font-size: 15px;
}
.scroll-cue:hover {
  gap: 15px;
  color: var(--teal);
}

.hero-index {
  border-top: 1px solid var(--ink);
}

.index-row {
  display: grid;
  grid-template-columns: 28px 1fr auto 20px;
  align-items: center;
  gap: 10px;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms var(--ease), background-color 180ms var(--ease);
}

.index-row:hover {
  padding-left: 10px;
  background: var(--paper-2);
}

.index-num {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.index-name {
  font-family: var(--serif);
  font-size: 31px;
  letter-spacing: -.025em;
  line-height: 1;
}

.index-type {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.index-arrow {
  color: var(--lime-deep);
  font-size: 20px;
  line-height: 1;
  transition: transform 180ms var(--ease);
}

.index-row:hover .index-arrow {
  transform: translate(2px, 2px);
}

/* Apps */
.apps {
  padding-bottom: 30px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.section-note {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
}

.app {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 78px;
  align-items: center;
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
}

.app-reverse .app-copy {
  order: 2;
}
.app-reverse .app-visual {
  order: 1;
}

.app-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 430px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.app-num {
  color: var(--lime-deep);
}

.app h2 {
  margin-top: 23px;
  font-family: var(--serif);
  font-size: clamp(56px, 7.4vw, 96px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .86;
}

.app-tagline {
  max-width: 19ch;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.13;
  letter-spacing: -.015em;
}

.app-desc {
  max-width: 46ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.62;
}

.app-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 46px;
  margin-top: 30px;
  padding: 12px 17px 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.app-link span {
  color: var(--lime);
  font-size: 16px;
}

.app-link:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
}

.app-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
  padding: 43px;
  isolation: isolate;
}

.thymelime-visual {
  background: #dfe8d1;
}

.thymelime-visual img {
  width: auto;
  height: 570px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(17, 24, 20, .13));
}

.saydo-visual {
  background: #e8e0d1;
}

.visual-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  color: #465044;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.saydo-card {
  width: min(100%, 390px);
  padding: 22px;
  border: 1px solid #d7cbb7;
  border-radius: 10px;
  background: #fbf7ee;
  box-shadow: 0 22px 46px rgba(17, 24, 20, .12);
  transform: rotate(-1.2deg);
}

.saydo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #685f50;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.example-tag {
  padding: 4px 7px;
  border: 1px solid #d7cbb7;
  border-radius: 2px;
  color: var(--clay);
  font-size: 8px;
}

.saydo-message {
  margin-top: 17px;
  color: #1b2520;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -.015em;
}

.saydo-rule {
  height: 1px;
  margin: 20px 0 4px;
  background: #ded4c4;
}

.saydo-action {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e7dfd2;
  color: #1b2520;
  font-size: 12px;
}

.saydo-action span:last-child {
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.saydo-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding: 11px 13px;
  border-radius: 3px;
  background: var(--teal);
  color: #f7f1e5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.saydo-confirm span {
  font-size: 16px;
  line-height: 1;
}

/* Rule */
.rule {
  padding: 100px 0 108px;
  background: var(--ink);
  color: var(--paper);
}

.rule .eyebrow {
  color: #aeb8ac;
}
.rule .eyebrow::before {
  background: var(--lime);
}

.rule-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 48px;
  border-bottom: 1px solid #3a443b;
}

.rule-intro {
  max-width: 330px;
}

.rule-note {
  margin-top: 18px;
  color: #aeb8ac;
  font-size: 14px;
  line-height: 1.6;
}

.rule h2 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(48px, 6.2vw, 78px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .9;
}

.rule h2 em {
  color: var(--lime);
  font-weight: 400;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
}

.principle {
  min-height: 210px;
  padding: 30px 32px 0 24px;
  border-right: 1px solid #3a443b;
}

.principle:first-child {
  padding-left: 0;
}
.principle:last-child {
  border-right: 0;
}

.principle-num {
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}

.principle h3 {
  margin-top: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.principle p {
  max-width: 31ch;
  margin-top: 14px;
  color: #aeb8ac;
  font-size: 14px;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 36px;
  padding: 30px 0 34px;
}

.footer-brand {
  display: inline-block;
}

.footer-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 160ms var(--ease);
}

.footer-links a:hover {
  border-color: var(--ink);
}

.footer-links span {
  color: var(--lime-deep);
}

.copyright {
  color: var(--muted);
  font-size: 11px;
}

/* Quiet entrance. The hidden state is opt-in from app.js, so content stays
   visible when JavaScript is unavailable. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms var(--ease), transform 480ms var(--ease);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .hero-index {
    max-width: 540px;
  }
  .app {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 70px 0;
  }
  .app-reverse .app-copy {
    order: 1;
  }
  .app-reverse .app-visual {
    order: 2;
  }
  .app-copy {
    max-width: 620px;
  }
  .app-visual {
    min-height: 0;
  }
  .thymelime-visual img {
    height: min(620px, 72vw);
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 32px, var(--wrap));
  }
  .header-in {
    min-height: 60px;
  }
  .brand {
    font-size: 20px;
  }
  .site-header nav {
    gap: 18px;
  }
  .site-header nav a {
    font-size: 10px;
  }
  .hero {
    padding: 54px 0 66px;
  }
  .hero h1 {
    margin-top: 19px;
    font-size: clamp(58px, 18vw, 92px);
  }
  .hero-lede {
    margin-top: 26px;
    font-size: 27px;
  }
  .hero-note {
    font-size: 14px;
  }
  .index-row {
    min-height: 76px;
    grid-template-columns: 24px 1fr auto 18px;
  }
  .index-name {
    font-size: 27px;
  }
  .app {
    padding: 58px 0;
  }
  .app h2 {
    font-size: clamp(52px, 15vw, 74px);
  }
  .app-tagline {
    font-size: 23px;
  }
  .app-visual {
    padding: 28px 18px 38px;
  }
  .thymelime-visual {
    min-height: 430px;
  }
  .thymelime-visual img {
    height: min(470px, 104vw);
  }
  .saydo-visual {
    min-height: 430px;
  }
  .saydo-card {
    padding: 18px;
  }
  .saydo-message {
    font-size: 22px;
  }
  .rule {
    padding: 70px 0 74px;
  }
  .rule-head {
    display: block;
    padding-bottom: 24px;
  }
  .principles {
    grid-template-columns: 1fr;
  }
  .principle,
  .principle:first-child {
    min-height: 0;
    padding: 27px 0 27px 0;
    border-right: 0;
    border-bottom: 1px solid #3a443b;
  }
  .principle:last-child {
    border-bottom: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr auto;
    gap: 22px;
    padding: 26px 0 30px;
  }
  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 55px;
  }
  .index-name {
    font-size: 24px;
  }
  .index-type {
    display: none;
  }
  .index-row {
    grid-template-columns: 24px 1fr 18px;
  }
  .app h2 {
    font-size: 54px;
  }
  .app-link {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
