/* Fonts */
@font-face {
  font-family: "Apple Garamond";
  src: url("fonts/AppleGaramond-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Apple Garamond";
  src: url("fonts/AppleGaramond.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Apple Garamond";
  src: url("fonts/AppleGaramond-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Apple Garamond";
  src: url("fonts/AppleGaramond-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Colors */
:root {
  --bg: #f9f9f9;
  --text: #161616;
  --muted: #6b6b6b;
  --rule: #dcdcdc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --text: #ececec;
    --muted: #9a9a9a;
    --rule: #333333;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Apple Garamond", "EB Garamond", Garamond, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s;
}
a:hover,
a:focus-visible {
  text-decoration-color: currentColor;
}

/* Layout */
.page {
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(4rem, 14vh, 9rem) 1.5rem 5rem;
}

.masthead {
  text-align: center;
  margin-bottom: clamp(3.5rem, 10vh, 6rem);
}

h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
}

section {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

h2 {
  margin: 0 0 0.6rem;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

p {
  margin: 0;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list li {
  display: flex;
  gap: 0.75rem;
}
.list li + li {
  margin-top: 0.4rem;
}
.num {
  flex: none;
  min-width: 1.6rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.note {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Phones */
@media (max-width: 640px) {
  body { font-size: 1.15rem; }
  .page { padding-left: 1rem; padding-right: 1rem; }
  .grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}
