/* Liberty Peak Capital — no external requests, no webfonts. */

:root {
  --ink: #14110f;
  --ink-muted: #4a4340;
  --paper: #faf7f2;
  --rule: rgba(20, 17, 15, 0.16);
  --accent: #6b1f24;
  --measure: 65ch;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece7df;
    --ink-muted: #b0a89f;
    --paper: #1c1917;
    --rule: rgba(236, 231, 223, 0.18);
    --accent: #d9a0a0;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

p {
  margin: 0;
  max-width: var(--measure);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Skip link — visible only on focus. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.6rem 1rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--rule);
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1;
}

/* Single column, wide margins. */
.page {
  width: min(100% - 2.5rem, 42rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 9vh, 5.5rem) clamp(2.5rem, 7vh, 4rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.masthead {
  margin-bottom: clamp(3.5rem, 11vh, 6rem);
}

.wordmark {
  margin: 0;
  font-size: clamp(1.5rem, 1.28rem + 1.1vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.2;
  color: var(--ink);
}

a.wordmark {
  text-decoration: none;
  display: inline-block;
}

a.wordmark:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

main {
  flex: 1 0 auto;
}

/* The page's centre of gravity. */
.statement {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.35rem);
  line-height: 1.32;
  letter-spacing: -0.005em;
  max-width: 22ch;
}

.section {
  margin-top: clamp(3.5rem, 10vh, 5.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.section h2,
.label {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.label {
  margin-bottom: 1.5rem;
}

/* The only interactive element on the page. Let it sit. */
.contact {
  margin-top: 0.5rem;
}

.contact a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1em;
}

.contact a:hover {
  border-bottom-color: transparent;
}

.prose > * + * {
  margin-top: 1.4rem;
}

.footer {
  margin-top: clamp(4rem, 12vh, 7rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.footer p {
  margin: 0;
}

.footer p + p {
  margin-top: 0.5rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer a:hover {
  border-bottom-color: currentColor;
}

@media (min-width: 48rem) {
  .page {
    width: min(100% - 8rem, 42rem);
  }

  .statement {
    max-width: 20ch;
  }

  .footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
  }

  .footer p + p {
    margin-top: 0;
  }
}
