/* =============================================================
   Category5 — styles.css
   Storm-paper base · ink-blue accent · serif headlines · sans body
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --bg:        #F0F3F7;          /* overcast paper */
  --bg-deep:   #E7ECF2;          /* slightly cooler paper for breaks */
  --ink:       #1F2A3A;          /* deep cool gray for body */
  --ink-soft:  #4A5568;          /* secondary text */
  --ink-mute:  #6B7A8C;          /* tertiary, captions, eyebrows */
  --accent:    #1B3A6B;          /* Oxford ink blue — H1, links, key marks */
  --accent-soft: #2E5A99;        /* hover */
  --hairline:  #D5DCE4;
  --hairline-soft: #E3E8EE;

  /* App tints (very subtle) */
  --remember-tint: rgba(42, 91, 82, 0.05);
  --remember-deep: #2A5B52;
  --remember-red: #E54A4B;
  --setcheck-tint: rgba(135, 117, 255, 0.05);
  --setcheck-deep: #8775FF;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --max:     1200px;
  --measure: 38rem;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --gutter-lg: clamp(1.5rem, 6vw, 4rem);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .25, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; display: block; height: auto; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { font: inherit; }

/* ---------- Base ---------- */
html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 1.0625rem;
  min-height: 100vh;
  font-feature-settings: "ss01", "cv02", "cv11";
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (min-width: 720px) {
  body { font-size: 1.125rem; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 25;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--accent);
}

p { margin: 0 0 1rem; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color .18s var(--ease);
}
a:hover { color: var(--accent-soft); }

::selection {
  background: var(--accent);
  color: var(--bg);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1rem;
}

.section-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.025em;
  max-width: 22ch;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Brand logo ---------- */
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
  transition: opacity .18s var(--ease);
}

.brand-logo--small { height: 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
}

.nav-brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-brand:hover .brand-logo { opacity: 0.7; }

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.nav-links a {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--hairline);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 9rem) var(--gutter) clamp(3.5rem, 9vw, 7rem);
}

.hero-headline {
  font-size: clamp(2.5rem, 8.5vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  margin: 0 0 1.5rem;
  max-width: 16ch;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.hero-sub {
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 2.5rem;
  font-weight: 400;
}

.hero-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  letter-spacing: -0.005em;
  transition: gap .25s var(--ease), color .18s var(--ease);
}
.hero-cue:hover { gap: 1em; color: var(--accent-soft); }
.hero-cue-arrow {
  font-size: 1.1em;
  line-height: 1;
  transform: translateY(1px);
  animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(1px); }
  50%      { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cue-arrow { animation: none; }
}

/* ---------- App sections ---------- */
.app-section {
  position: relative;
  border-bottom: 1px solid var(--hairline-soft);
}

.app-section--remember { background: var(--remember-tint); }
.app-section--setcheck { background: var(--setcheck-tint); }

.app {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
.app-content { min-width: 0; }

@media (min-width: 880px) {
  .app {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 6vw, 5.5rem);
  }
  .app-section--setcheck .app {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  }
  .app-section--setcheck .app-content { order: 2; }
  .app-section--setcheck .app-imagery { order: 1; }
}

/* Remember gets the larger feature treatment */
.app--feature {
  padding-top: clamp(5rem, 12vw, 10rem);
  padding-bottom: clamp(5rem, 12vw, 10rem);
}

.app-content { max-width: 32rem; }

.app-logo {
  height: 2.25rem;
  width: auto;
  margin-bottom: 1.75rem;
  opacity: 0.92;
}

.app-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.app-icon {
  height: 2rem;
  width: 2rem;
}

.app-name {
  font-size: clamp(1.875rem, 3.2vw, 2.5rem);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.app-section--setcheck .app-name { margin: 0; }

.app-tagline {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.2;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  color: var(--ink);
  margin: 0.25rem 0 1.5rem;
  letter-spacing: -0.015em;
}
.app-section--remember .app-tagline { color: var(--remember-deep); }
.app-section--setcheck .app-tagline { color: var(--setcheck-deep); }

.app-body {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 30rem;
  margin-bottom: 2rem;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  letter-spacing: -0.005em;
  transition: gap .25s var(--ease), color .18s var(--ease);
}
.app-link:hover { gap: 0.9em; color: var(--accent-soft); }

/* Imagery */
.app-imagery {
  position: relative;
  width: 100%;
  min-width: 0;            /* allow grid item to shrink */
}
.app-imagery picture { display: block; }   /* picture wraps the img and must lay out as a block */

.app-shot {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(31, 42, 58, 0.04),
    0 8px 24px rgba(31, 42, 58, 0.10),
    0 24px 56px -8px rgba(31, 42, 58, 0.14);
  background: white;
}

/* Remember: stacked on mobile, overlapping composition from 880px up */
.app-imagery--remember {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.app-imagery--remember picture {
  width: 100%;
}
.app-shot--primary  { transition: transform .6s var(--ease); }
.app-shot--secondary {
  border: 1px solid rgba(255,255,255,0.7);
  transition: transform .6s var(--ease);
}

@media (min-width: 880px) {
  .app-imagery--remember {
    display: block;
    padding: 1rem 2rem 5rem 0;
  }
  .app-imagery--remember > picture:first-of-type {
    width: 100%;
    display: block;
  }
  .app-imagery--remember > picture:last-of-type {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 62%;
    display: block;
  }
  .app-shot--primary  { transform: rotate(-1.5deg); }
  .app-shot--secondary { transform: rotate(2.5deg); }
  .app-imagery--remember:hover .app-shot--primary  { transform: rotate(-1deg) translateY(-3px); }
  .app-imagery--remember:hover .app-shot--secondary { transform: rotate(2deg) translateY(3px); }
}

/* SetCheck shot */
.app-shot--setcheck {
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(31, 42, 58, 0.06),
    0 12px 32px rgba(31, 42, 58, 0.18),
    0 32px 64px -12px rgba(135, 117, 255, 0.22);
}

/* ---------- Team peek ---------- */
.team-peek {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--hairline);
}

.team-peek-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  text-align: left;
}

.team-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem) clamp(1rem, 3vw, 2rem);
  margin: 2.5rem 0 2.5rem;
}
@media (min-width: 720px) {
  .team-row { grid-template-columns: repeat(4, 1fr); }
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.team-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 60%, transparent), var(--bg-deep)),
    var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  color: var(--ink-mute);
  overflow: hidden;
}

.team-initial {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--accent);
  opacity: 0.5;
}

.team-name {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.125rem;
}

.team-spec {
  font-size: 0.875rem;
  color: var(--ink-mute);
  margin: 0;
  min-height: 1.4em;
}

.team-peek .why-lede {
  margin: 1.75rem 0 1.25rem;
}
.team-peek-body {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 2rem;
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: gap .25s var(--ease);
}
.team-link:hover { gap: 0.9em; }

/* ---------- About: page header ---------- */
.page-header {
  border-bottom: 1px solid var(--hairline);
}
.page-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) var(--gutter) clamp(3rem, 8vw, 6rem);
}
.page-headline {
  font-size: clamp(2.25rem, 6.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0;
  max-width: 18ch;
}

/* ---------- About: why we build ---------- */
.why {
  border-bottom: 1px solid var(--hairline-soft);
}
.why-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}
.why .section-headline {
  margin-bottom: 1.75rem;
}
.why-lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: var(--measure);
  margin: 0 0 1.5rem;
}
.why p:not(.why-lede) {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------- About: bios ---------- */
.bios {
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--bg-deep);
}
.bios-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 720px) {
  .bios-inner { grid-template-columns: repeat(2, 1fr); gap: clamp(2.5rem, 4vw, 4rem); }
}

.bio {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 480px) {
  .bio { grid-template-columns: 6.5rem 1fr; gap: 1.5rem; }
}

.bio-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 60%, transparent), var(--hairline-soft)),
    var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bio-initial {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--accent);
  opacity: 0.55;
}

.bio-name {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.bio-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.bio-placeholder {
  color: var(--ink-mute);
  font-style: italic;
}

.bio-links {
  display: flex;
  gap: 1rem;
  font-size: 0.9375rem;
}
.bio-links a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ---------- About: say hi ---------- */
.say-hi {
  border-bottom: 1px solid var(--hairline-soft);
}
.say-hi-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  text-align: left;
}
.say-hi-body {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 1.75rem;
}
.say-hi-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1rem;
  font-size: 1.125rem;
  margin: 0;
}
.say-hi-primary {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  font-weight: 400;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem var(--gutter) 3.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 560px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.footer-copy {
  font-size: 0.875rem;
  color: var(--ink-mute);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9375rem;
}
.footer-links a {
  color: var(--ink);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }

.footer-faith {
  margin: 1.5rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  font-size: 0.9375rem;
  text-align: center;
  color: var(--accent);
  letter-spacing: 0.01em;
  opacity: 0.85;
}

/* ---------- Print ---------- */
@media print {
  .nav, .hero-cue { display: none; }
  body { background: white; color: black; }
}
