/* Yin Timer: a quiet, single-page site. Mobile first. */

@font-face {
  font-family: "Inter";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/Inter-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/Inter-Medium.woff2") format("woff2");
}

:root {
  --ivory: #F5F1E8;
  --paper: #EFE9DC;
  --sand: #E3DACA;
  --sage: #5A705D;       /* accent text: 4.8:1 on ivory */
  --sage-soft: #A3B29F;
  --ink: #2E312C;        /* body text: soft charcoal */
  --quiet: #66665E;      /* secondary text: 5.4:1 on ivory */
  --line: #DCD3C2;

  --gutter: 24px;
  --measure: 34rem;
  --space-xl: clamp(96px, 16vw, 200px);
  --space-l: clamp(64px, 10vw, 128px);
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--sage); }
a:focus-visible,
summary:focus-visible {
  outline: 1.5px solid var(--sage);
  outline-offset: 4px;
  border-radius: 2px;
}

h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

/* ---------- Header ---------- */

.site-header {
  padding: 28px var(--gutter) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  min-height: 44px;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(56px, 12vw, 120px) var(--gutter) 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 9.5vw, 5rem);
  line-height: 1.04;
  max-width: 11ch;
}

.lede {
  margin-top: 28px;
  font-size: clamp(1.125rem, 2.4vw, 1.3rem);
  font-weight: 300;
  color: var(--quiet);
  max-width: 26ch;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}

.soon-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--sage);
}

.hero-image {
  margin: clamp(56px, 10vw, 88px) calc(var(--gutter) * -1) 0;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 49% 78%;
}

/* ---------- Introduction ---------- */

.intro {
  padding: var(--space-xl) var(--gutter) 0;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  text-align: center;
}

.intro h2 {
  font-size: clamp(1.75rem, 5.4vw, 2.6rem);
  line-height: 1.2;
}

.intro p {
  margin-top: 28px;
  color: var(--quiet);
}

/* ---------- App preview ---------- */

.preview {
  padding: var(--space-xl) 0 0;
}

.eyebrow {
  padding: 0 var(--gutter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--quiet);
  text-align: center;
}

.shots {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 62%;
  margin: 0;
  scroll-snap-align: center;
}

.shot-frame {
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
}

.shot-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Visible only while there is no real screenshot. */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--quiet);
  font-size: 0.8125rem;
  text-align: center;
  line-height: 1.5;
}

.shot figcaption {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--quiet);
  text-align: center;
}

/* ---------- Features ---------- */

.features {
  padding: var(--space-xl) var(--gutter) 0;
}

.features ol {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--measure);
}

.features li {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.features li:last-child { border-bottom: 1px solid var(--line); }

.num {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--sage);
}

.features h3 {
  margin-top: 14px;
  font-size: 1.6rem;
  line-height: 1.25;
}

.features p {
  margin-top: 8px;
  color: var(--quiet);
}

/* ---------- Closing ---------- */

.closing {
  padding: var(--space-xl) var(--gutter) var(--space-l);
  max-width: calc(36rem + var(--gutter) * 2);
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.12;
}

.closing p:not(.soon) {
  margin-top: 28px;
  color: var(--quiet);
}

.soon-center { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--quiet);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.footer-brand {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Privacy and contact stay out of sight until their footer link is followed. */
.note {
  display: none;
  max-width: var(--measure);
  padding-top: 36px;
}
.note:target { display: block; }
.note h2 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
}
.note p + p { margin-top: 14px; }
.note strong { font-weight: 500; color: var(--ink); }
.note a { text-decoration: underline; text-underline-offset: 3px; }
.small { font-size: 0.8125rem; }

/* ---------- Privacy policy page ---------- */

.policy {
  max-width: var(--measure);
  padding: clamp(48px, 10vw, 96px) var(--gutter) var(--space-l);
}
.policy h1 {
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1.1;
}
.policy-app {
  margin-top: 16px;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--quiet);
}
.policy-date {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--quiet);
}
.policy-date + p { margin-top: 40px; }
.policy h2 {
  margin: 40px 0 10px;
  font-size: 1.25rem;
  font-weight: 400;
}
.policy p + p { margin-top: 14px; }
@media (min-width: 1024px) {
  .policy { margin-left: max(0px, calc((100% - 1440px) / 2)); }
}

/* ---------- A barely-there arrival ---------- */

@media (prefers-reduced-motion: no-preference) {
  .fade { animation: arrive 1.4s ease-out both; }
  .hero-image.fade { animation-delay: 0.25s; }
  @keyframes arrive {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  :root { --gutter: 48px; }

  .shots {
    justify-content: center;
    overflow: visible;
  }
  .shot { flex: 0 1 220px; }

  .features ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
    max-width: 960px;
  }
  .features li,
  .features li:last-child {
    border-bottom: 0;
    padding: 28px 0 0;
  }
}

@media (min-width: 1024px) {
  :root { --gutter: 72px; }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 72px;
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 72px;
  }
  .hero-image { margin: 0; }
  .hero-image img {
    aspect-ratio: 5 / 6;
    border-radius: 2px;
  }

  .site-header,
  .site-footer {
    max-width: 1440px;
    margin: 0 auto;
  }
  .site-footer { border-top: 0; }
  .footer-row { border-top: 1px solid var(--line); padding-top: 40px; }
}
