/* Cormorant Garamond, the typeface of the logo, self-hosted (SIL Open Font License) */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --paper: #F7F8FA;
  --ink: #141B23;
  --muted: #4C5560;
  --line: #D5DCE3;
  --sky: #75AADB;
  --link-line: #75AADB;
  --brand: #1E4F8C;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10161C;
    --ink: #E8EDF2;
    --muted: #A3AEBA;
    --line: #26313B;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.55;
}
strong, b { font-weight: 600; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

.page { max-width: 60rem; margin: 0 auto; padding: 0 1rem; }

/* Header */
.masthead { text-align: center; padding: 3.25rem 0 2rem; }
.logo-link { display: inline-block; }
.logo { display: block; width: min(25rem, 82vw); height: auto; }
.place { margin: 0.75rem 0 0; color: var(--muted); font-size: 1.125rem; letter-spacing: 0.04em; }

/* A single thin rule, matching the documents */
.band { height: 1px; background: var(--brand); }

/* Home page: two centred columns of links */
.links {
  list-style: none;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.75rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
}
@media (max-width: 640px) {
  .links { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; }
}
.links li { font-size: 1.625rem; line-height: 1.25; font-weight: 600; }
.links a {
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.links a:hover { text-decoration-color: currentColor; }
.links .note { display: block; margin-top: 0.45rem; font-size: 1.0625rem; font-weight: 500; color: var(--muted); }

/* Inner pages */
.content { max-width: 44rem; margin: 0 auto; padding: 2.5rem 0 3.5rem; }
.content h1 { font-weight: 600; font-size: 2.75rem; line-height: 1.1; margin: 0 0 1.25rem; }
.content h2.sub { font-weight: 600; font-size: 1.75rem; line-height: 1.2; margin: 2.25rem 0 0.6rem; }
.content p { margin: 0 0 1rem; }
.back { display: inline-block; margin-bottom: 1.5rem; font-size: 1.0625rem; color: var(--muted); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.rows .name { font-weight: 600; font-size: 1.375rem; }
.rows a.name {
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.rows .desc { display: block; margin-top: 0.25rem; color: var(--muted); }

/* Philosophy principles */
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { margin: 0 0 1.25rem; }
.principles strong { display: block; font-size: 1.375rem; color: var(--brand); }
@media (prefers-color-scheme: dark) {
  .principles strong { color: var(--sky); }
}

/* Footer */
footer {
  max-width: 44rem; margin: 0 auto; padding: 1.5rem 0 2.5rem;
  font-size: 1.0625rem; color: var(--muted); text-align: center;
}
footer p { margin: 0 0 0.75rem; }
