﻿:root {
  --paper: #f4efe7;
  --ink: #141412;
  --muted: #666158;
  --accent: #23352d;
  --line: rgba(20, 20, 18, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  /* Viewport units, not `min-height: 100%`. A percentage min-height resolves
     against the parent's HEIGHT (auto here), not its min-height, so `100%`
     collapsed to content height and align-items:center centred the page
     against itself instead of the screen. dvh also tracks mobile browser
     chrome as it shows and hides. */
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

.landing {
  width: min(34rem, 100%);
  text-align: center;
}

.logo {
  width: clamp(88px, 18vw, 116px);
  margin: 0 auto 2rem;
}

.logo-secondary {
  width: clamp(74px, 16vw, 96px);
}

h1 {
  margin: 0 0 1.4rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(3rem, 9vw, 4.9rem);
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.blurb {
  margin: 0 auto 2rem;
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.contact {
  margin: 0;
}

.email-link {
  display: inline-flex;
  padding-bottom: 0.16rem;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

/* Footer link row on the landing, projects, and 404 pages. */
.site-footer {
  margin: 2.25rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer a {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

/* Keyboard focus must stay visible; several links remove their underline. */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.landing-secondary h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
}

@media (max-width: 540px) {
  body {
    padding: 1.5rem 1rem;
  }

  .logo {
    margin-bottom: 1.6rem;
  }

  .blurb {
    margin-bottom: 1.6rem;
  }
}

/* Document pages (support, privacy) */
body.doc {
  align-items: flex-start;
  padding: 3.5rem 1.25rem 4rem;
}

.doc-main {
  width: min(44rem, 100%);
  margin: 0 auto;
  text-align: left;
}

.doc-main .logo {
  width: clamp(60px, 12vw, 80px);
  margin: 0 0 2.25rem;
}

.doc-main h1 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  margin: 0 0 0.4rem;
  line-height: 1.02;
}

.doc-main h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.6rem;
}

.doc-main p,
.doc-main li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.doc-main ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.doc-main li {
  margin-bottom: 0.4rem;
}

.doc-main a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.doc-updated {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.doc-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.doc-footer a {
  color: var(--muted);
  border: none;
}
