:root {
  --bg: #f8f6f1;
  --paper: #fffdfa;
  --ink: #1f2930;
  --muted: #68747d;
  --line: #ded8ce;
  --accent: #2f6f5e;
  --accent-2: #8b4d3f;
  --shell: min(920px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-2);
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  transform: translateY(-140%);
  background: var(--ink);
  color: white;
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(248, 246, 241, 0.96);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-name {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-menu a {
  color: var(--muted);
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 9px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 1px;
  margin: 6px 0;
  background: currentColor;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 42px;
  align-items: start;
  padding: 70px 0 48px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  color: var(--ink);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: 0;
}

h2 {
  color: var(--ink);
  font-size: clamp(1.65rem, 3.8vw, 2.25rem);
}

h3 {
  margin-top: 36px;
  color: var(--accent-2);
  font-size: 0.96rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h4 {
  font-size: 1.03rem;
  font-weight: 700;
}

.lede {
  max-width: 680px;
  margin: 20px 0 0;
  font-size: 1.08rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--muted);
}

.portrait {
  width: 148px;
  height: 186px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
}

.section {
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.note-text {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
}

.paper-group {
  margin-top: 14px;
}

.group-label {
  margin: 26px 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.paper {
  padding: 15px 0;
  border-top: 1px solid rgba(222, 216, 206, 0.8);
}

.paper p,
.simple-list p {
  margin: 6px 0 0;
  color: var(--muted);
}

.paper em {
  color: var(--ink);
}

.simple-list {
  margin-top: 14px;
}

.simple-list p {
  padding: 10px 0;
  border-top: 1px solid rgba(222, 216, 206, 0.8);
}

.footer {
  padding: 34px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 720px) {
  :root {
    --shell: min(100vw - 28px, 640px);
  }

  .nav {
    min-height: 58px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    inset: 58px 14px auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 14px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 46px;
  }

  .portrait {
    width: 124px;
    height: 156px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
