/* ============================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   Change a value here and it updates everywhere on the site
============================================================ */
:root {
  --black: #0a0a0a;
  --gray: #888888;
  --light-gray: #bbbbbb;
  --white: #ffffff;
  --max-width: 920px;
}

/* ============================================================
   RESET
   Removes browser default spacing so we control everything
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   BASE
   Root font size, color, and smoothing
============================================================ */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  text-align: center;
  padding: 0;
}

/* ============================================================
   ACCESSIBILITY — SKIP LINK
   Hidden until keyboard user tabs to it
============================================================ */
.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--black);
  color: var(--white);
  padding: 10px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 1000;
  text-decoration: none;
}

.skip:focus {
  left: 12px;
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

/* ============================================================
   ACCESSIBILITY — FOCUS STATES
   Visible outline for keyboard navigation on all links
============================================================ */
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

/* ============================================================
   LAYOUT WRAPPER
   Centers and constrains all content
   min() keeps it fluid on mobile without overflow
============================================================ */
.wrap {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

@media (max-width: 520px) {
  .wrap {
    width: min(var(--max-width), calc(100% - 34px));
  }
}

/* ============================================================
   LINKS — BASE
   Underline + offset for clarity in a monochrome system
============================================================ */
a {
  color: var(--black);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gray);
}

/* ============================================================
   HERO — SECTION
   Full top section. Generous vertical breathing room.
============================================================ */
.hero {
  padding-top: 9rem;
  padding-bottom: clamp(6rem, 10vw, 10rem);
}

/* ============================================================
   HERO — KICKER
   Small name label above the headline. Gray = meta tier.
============================================================ */
.hero__kicker {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2.4rem;
}

/* ============================================================
   HERO — HEADLINE
   Sovereign top of the type hierarchy. Nothing competes with this.
   clamp: 2.6rem on mobile → scales with viewport → caps at 4rem desktop
============================================================ */
.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--black);
  margin-bottom: 1.6rem;
}

/* ============================================================
   HERO — SUBLINE
   One calm line below the headline. Black — primary reading text.
============================================================ */
.hero__sub {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 3rem;
}

/* ============================================================
   HERO — CTA BUTTONS
   Two buttons centered side by side
============================================================ */
.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS — BASE
   Shared styles for all button types
============================================================ */
.btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

/* ============================================================
   BUTTONS — FILLED
   Black background, white text (primary action)
============================================================ */
.btn--filled {
  background: var(--black);
  color: var(--white);
}

.btn--filled:hover {
  opacity: 0.8;
  color: var(--white);
}

/* ============================================================
   BUTTONS — TEXT
   No background, black text (secondary action)
============================================================ */
.btn--text {
  background: transparent;
  color: var(--black);
}

.btn--text:hover {
  color: var(--gray);
}

/* ============================================================
   DIVIDER
   One structural separator. Between hero and apps only.
   Soft so it reads as structure, not decoration.
============================================================ */
.divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

/* ============================================================
   APPS — SECTION
   Wraps all app blocks. Generous top padding after divider.
============================================================ */
.apps {
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

/* ============================================================
   APP — BLOCK
   Each app is its own article.
   Whitespace alone separates blocks — no borders, no lines.
============================================================ */
.app {
  padding: 0;
}

.app + .app {
  margin-top: 6rem;
}

@media (max-width: 520px) {
  .app + .app {
    margin-top: 4rem;
  }
}

/* ============================================================
   APP — TITLE
   Editorial second tier. Heavier weight than hero.
   clamp: 1.8rem mobile → caps at 2.2rem desktop
============================================================ */
.app__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.2rem);
  letter-spacing: -0.005em;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 0.7rem;
}

/* ============================================================
   APP — DESCRIPTION
   Primary reading text. Black. Mono needs generous line-height.
============================================================ */
.app__desc {
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--black);
  max-width: 52ch;
  margin: 0 auto 1.4rem;
}

/* ============================================================
   APP — META (STATUS)
   Smallest tier. Uppercase mono with tracking. Gray = label tier.
============================================================ */
.app__meta {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 1.4rem;
}

/* ============================================================
   APP — POLICY LINKS
   Support / Privacy / Terms. Gray meta tier. Tracking locked.
============================================================ */
.app__links {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
}

.app__links a {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
}

.app__links a:hover {
  color: var(--black);
}

/* ============================================================
   POLICY SECTIONS
   Support / Privacy / Terms blocks.
   Whitespace separates from apps above — no border needed.
   Anchors are App Store surface — never change the IDs.
============================================================ */
.policies {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.policy {
  padding: 0;
}

.policy + .policy {
  margin-top: 5rem;
}

/* ============================================================
   POLICY — TITLE
   Sub-tier of app titles. Still Cormorant, still weighted.
============================================================ */
.policy__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  letter-spacing: -0.005em;
  color: var(--black);
  margin-bottom: 1rem;
}

/* ============================================================
   POLICY — BODY TEXT
   Primary reading text. Black.
============================================================ */
.policy__text {
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--black);
  max-width: 52ch;
  margin: 0 auto 0.8rem;
}

/* ============================================================
   ABOUT — SECTION
   Whitespace separates from policies above.
============================================================ */
.about {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

/* ============================================================
   ABOUT — HEADSHOT PLACEHOLDER
   Circle with initials. Replace contents with <img> when ready.
============================================================ */
.about__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e8e8e8;
  margin: 0 auto 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.about__initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--gray);
}

/* ============================================================
   ABOUT — BIO TEXT
   Primary reading text. Black.
============================================================ */
.about__text {
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--black);
  max-width: 52ch;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   Whitespace separates from about above. No border.
============================================================ */
.footer {
  padding: 4rem 0 6rem;
}

.footer p {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--light-gray);
  margin-bottom: 0.6rem;
}

.footer a {
  color: var(--gray);
}

.footer a:hover {
  color: var(--black);
}

/* ============================================================
   MOTION — HERO FADE
   Elements fade up on page load with staggered delay.
   data-stagger attribute on each element controls timing.
============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js-fade {
  opacity: 0;
  animation: fadeUp 800ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.js-fade[data-stagger="0"] { animation-delay: 0ms; }
.js-fade[data-stagger="1"] { animation-delay: 120ms; }
.js-fade[data-stagger="2"] { animation-delay: 240ms; }
.js-fade[data-stagger="3"] { animation-delay: 360ms; }

/* ============================================================
   MOTION — SCROLL REVEAL
   Blocks fade in as they enter the viewport.
   JavaScript adds .is-visible when element is 15% in view.
============================================================ */
.js-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms cubic-bezier(.22, 1, .36, 1),
              transform 600ms cubic-bezier(.22, 1, .36, 1);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   REDUCED MOTION
   Respects OS accessibility setting.
   All animations disabled for users who prefer reduced motion.
============================================================ */
@media (prefers-reduced-motion: reduce) {
  .js-fade {
    animation: none;
    opacity: 1;
  }

  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}