:root {
  --wash: #7088B4;
  --glaze: #F7F4EC;
  --soft: rgba(255, 255, 255, 0.7);
  --soft-opacity: 0.7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  /* Phone browsers count the area behind their toolbars in 100vh; svh is the visible height */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--wash);
  color: var(--glaze);
  font-family: 'EB Garamond', serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover, a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.mark { display: block; width: 150px; height: auto; opacity: var(--soft-opacity); }

/* Home */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
  padding: 80px 24px 24px;
}
.hero h1 {
  margin: 0;
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 54px;
}
.tagline { margin: -8px 0 0; font-size: 21px; color: var(--soft); }

/* Footer nav, shared by every page. Sticky so it never falls below the fold:
   on a page taller than the screen it stays pinned while the content scrolls. */
.nav {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding: 16px 24px 56px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--glaze);
  background: var(--wash);
  /* Soft edge where content scrolls under the pinned nav */
  box-shadow: 0 -16px 16px -4px var(--wash);
}

/* Inner pages */
.page {
  flex: 1;
  width: 100%;
  max-width: 608px;
  margin: 0 auto;
  padding: 80px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.page h1 {
  margin: 0;
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 54px;
  text-align: center;
}
.prose { width: 100%; font-size: 21px; line-height: 1.6; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.muted { color: var(--soft); text-align: center; }

.list { width: 100%; margin: 0; padding: 0; list-style: none; }
.list li { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.list .label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--soft);
}
.list .title { font-size: 21px; line-height: 1.4; }
.list .desc { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: var(--soft); }

@media (max-width: 520px) {
  .page h1 { font-size: 32px; line-height: 40px; }
  /* Shrinks with the viewport so "& Friends Company" stays on one line */
  .hero h1 { font-size: min(32px, 7.4vw); line-height: 1.25; }
  .hero .mark { width: 120px; }
  .prose { font-size: 19px; }
  /* Lift the lockup: free space splits 1:2 above and below it */
  .hero { justify-content: flex-start; padding: 40px 24px 24px; }
  .hero::before, .hero::after { content: ""; }
  .hero::before { flex: 1; }
  .hero::after { flex: 2; }
  .page { padding: 40px 24px 16px; }
  /* One line on phones: type and gaps shrink with the viewport */
  .nav {
    flex-wrap: nowrap;
    gap: 3vw;
    padding: 16px 16px 28px;
    font-size: min(12px, 3vw);
    letter-spacing: 0.16em;
    white-space: nowrap;
  }
}

/* Short screens (phones in landscape, small laptop windows): trim vertical padding */
@media (max-height: 560px) {
  .hero, .page { padding-top: 32px; padding-bottom: 16px; }
  .nav { padding-bottom: 24px; }
}
