:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1a1a;
  background: #fafafa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;

  --paper: #fafafa;
  --surface: #fff;
  --ink: #1a1a1a;
  --muted: #555;
  --hairline: #e5e5e5;
  --accent: #1d4ed8;
  --content-width: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  font-size: 15px;
  line-height: 1.65;
}

button,
a {
  font: inherit;
}

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

a:hover,
.note-button:hover .note-title {
  text-decoration-thickness: 2px;
}

::selection {
  color: var(--ink);
  background: #dbeafe;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 0.75rem;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--surface);
}

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

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid rgb(229 229 229 / 80%);
  background: rgb(250 250 250 / 94%);
  backdrop-filter: blur(12px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(var(--content-width), calc(100% - 3rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 1.75rem);
}

.site-nav a {
  position: relative;
  padding-block: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 140ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="location"] {
  color: var(--accent);
}

.site-nav a[aria-current="location"]::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
}

.section-anchor {
  scroll-margin-top: 6rem;
}

.hero {
  display: grid;
  min-height: 400px;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: clamp(2rem, 8vw, 5rem);
  padding-block: 5.5rem 5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.105em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.045em;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.6rem, 7vw, 3.65rem);
  font-weight: 650;
  line-height: 1.08;
}

.hero-intro {
  max-width: 510px;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 1.15rem;
  font-size: 0.9rem;
}

.portrait {
  display: flex;
  width: 176px;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 0.35rem;
  border: 1px solid #e8e5df;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 70% 22%, rgb(255 255 255 / 90%), transparent 45%),
    #eeece7;
  color: #68645e;
}

.portrait > span:first-child {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  letter-spacing: -0.08em;
  line-height: 1;
}

.portrait-caption {
  max-width: 112px;
  color: #77736c;
  font-size: 0.59rem;
  line-height: 1.35;
  text-align: center;
}

.content-section {
  padding-block: 3.65rem;
  border-top: 1px solid var(--hairline);
}

.section-heading {
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  font-weight: 620;
  line-height: 1.2;
}

.section-intro {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.focus-card {
  min-height: 190px;
  padding: 1.2rem 1.15rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: 5px;
  background: var(--surface);
}

.card-index {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.focus-card h3,
.shelf-column h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  font-weight: 640;
  letter-spacing: -0.025em;
}

.focus-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.notes-list {
  border-top: 1px solid var(--hairline);
}

.note-row {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 0.8rem;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--hairline);
}

.note-date {
  padding-top: 0.11rem;
  color: var(--muted);
  font-size: 0.79rem;
  font-variant-numeric: tabular-nums;
}

.note-button {
  display: grid;
  width: 100%;
  gap: 0.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.note-title {
  width: fit-content;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.note-button:hover .note-title,
.note-button:focus-visible .note-title {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.note-summary {
  color: var(--muted);
  font-size: 0.86rem;
}

.shelf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.shelf-column h3 {
  margin-bottom: 0.75rem;
}

.book-list,
.principle-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.book-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.88rem;
}

.book-author {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

.principle-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.principle-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "·";
  font-size: 1.2rem;
  line-height: 1.3;
}

.site-footer {
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem 1rem;
  padding-block: 2rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-links {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.contact-links a {
  font-size: 0.84rem;
}

.footer-inner small {
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.reader {
  width: min(620px, calc(100% - 2rem));
  max-height: min(82vh, 760px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 70px rgb(26 26 26 / 16%);
}

.reader::backdrop {
  background: rgb(26 26 26 / 38%);
  backdrop-filter: blur(2px);
}

.reader-inner {
  padding: clamp(1.4rem, 5vw, 2.5rem);
}

.reader-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.reader-topline .eyebrow {
  margin: 0;
}

.reader-close {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
}

.reader-close:hover {
  color: var(--ink);
}

.reader-close span {
  font-size: 1.3rem;
  line-height: 1;
}

.reader h2 {
  max-width: 500px;
  margin-bottom: 1.25rem;
  font-size: clamp(1.8rem, 6vw, 2.35rem);
  font-weight: 620;
  line-height: 1.18;
}

.reader-body p {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  line-height: 1.85;
}

.reader-body p:last-child {
  margin-bottom: 0;
}

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

@media (max-width: 620px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(var(--content-width), calc(100% - 2rem));
  }

  .header-inner {
    min-height: 62px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    padding-block: 0.65rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.4rem;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 1rem;
    padding-block: 3.65rem 3.25rem;
  }

  .hero .eyebrow {
    max-width: 200px;
    font-size: 0.64rem;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .hero-intro {
    font-size: 0.93rem;
    line-height: 1.72;
  }

  .portrait {
    width: 90px;
    justify-self: end;
  }

  .portrait > span:first-child {
    font-size: 2rem;
  }

  .portrait-caption {
    display: none;
  }

  .content-section {
    padding-block: 2.8rem;
  }

  .focus-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .focus-card {
    min-height: 0;
    padding: 1rem;
  }

  .card-index {
    margin-bottom: 0.55rem;
  }

  .note-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding-block: 1rem;
  }

  .shelf-grid {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-block: 1.5rem;
  }

  .footer-inner small,
  .contact-links {
    grid-column: 1;
    grid-row: auto;
  }
}

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