/* ======================================================
   GLOBAL RESET & SAFETY
   ====================================================== */

/* Predictable sizing: padding/borders don’t create overflow surprises */
*, *::before, *::after { box-sizing: border-box; }

/* Prevent 1px layout shifts when scrollbars appear/disappear */
html {
  font-size: 16px;
  scrollbar-gutter: stable;
}

/* Guard against accidental horizontal overflow (long URLs, code, etc.) */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Keep layout stable even on short pages */
body { overflow-y: scroll; }


/* ======================================================
   BASE TYPOGRAPHY & PAGE BACKGROUND
   ====================================================== */

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #111;

  /* Institutional paper tone + subtle texture */
  background-color: #FFFEF8;
  background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Main reading column */
.container {
  max-width: 760px;
  margin: 0 auto;
}

/* Global type hierarchy (site-wide) */
h1 {
  font-size: 34px;
  line-height: 1.18;
  margin: 0 0 22px 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 36px 0 12px 0;
  font-weight: 600;
}

p {
  margin: 0 0 20px 0;
  font-size: 18px;
  line-height: 1.7;
}


/* ======================================================
   HEADER / NAV
   ====================================================== */

/* Site header container */
.site-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Header layout (logo left, nav right) */
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Make header links inherit the “paper” aesthetic */
.site-header a,
header a {
  color: inherit;
  text-decoration: none;
}

/* Logo sizing (no squish) */
.logo img {
  display: block;
  height: 80px;
  width: auto;
}

/* Primary nav links */
.site-nav a {
  margin-left: 16px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a:hover { text-decoration: underline; }


/* ======================================================
   MAIN CONTENT WRAPPER
   ====================================================== */

/* Standard page padding */
main { padding: 48px 24px; }


/* ======================================================
   HOME PAGE
   ====================================================== */

/* Home sections: distinct blocks with a quiet divider */
.home-problem,
.home-explain,
.home-offer,
.home-cta {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}

/* Home “chapter label” */
.home-problem__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin: 0 0 10px 0;
}

/* Home prompt microcopy */
.home-problem__prompt {
  margin: 0 0 14px 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(0,0,0,0.75);
}

/* Choice list layout */
.home-choice {
  display: grid;
  gap: 12px;
  margin: 14px 0 12px 0;
}

/* Choice buttons: serious, not “app-y” */
.home-choice__btn {
  display: block;
  width: 100%;
  text-align: left;

  padding: 14px 14px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.92);

  text-decoration: none;
  color: inherit;

  font-size: 15px;
  line-height: 1.4;

  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.home-choice__btn:hover { border-color: rgba(0,0,0,0.28); }
.home-choice__btn:active { transform: translateY(1px); }

/* Keyboard focus: visible but quiet */
.home-choice__btn:focus-visible {
  outline: 2px solid rgba(0,0,0,0.30);
  outline-offset: 2px;
}

/* “Selected” state (persistent) */
.home-choice__btn.is-selected,
.home-choice__btn[aria-pressed="true"] {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.32);
}

.home-choice__btn.is-selected:hover,
.home-choice__btn[aria-pressed="true"]:hover {
  border-color: rgba(0,0,0,0.38);
}

/* Home reveal text (after choice) */
.home-reveal {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0,0,0,0.7);
}

.home-reveal em { font-style: italic; }

.home-reveal__sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(0,0,0,0.55);
}

/* Home CTA links line */
.home-cta__links {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.home-cta__links a {
  text-decoration: none;
  border-bottom: 0.5px solid rgba(0,0,0,0.0);
  color: inherit;
}

.home-cta__links a:hover { border-bottom-color: rgba(0,0,0,0.35); }


/* ======================================================
   ARTICLES INDEX (LIST PAGE)
   ====================================================== */

/* Optional wrapper class if you add it in template later */
.articles-intro h1 { margin-bottom: 14px; }        /* tighten title block */
.articles-intro p  { margin-bottom: 14px; }        /* tighten subtitle */

/* Cards container: top divider + controlled spacing */
.cards {
  margin-top: 22px;                                 /* avoids “too far down” */
  padding-top: 18px;                                /* creates separation */
  border-top: 0.5px solid rgba(0,0,0,0.08);          /* visual delimiter */
  display: grid;
  gap: 20px;
}

/* Article card: text left, thumb right */
.card {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 18px;
  align-items: start;
}

.card__body { grid-column: 1; }                      /* text flush-left */

.card__thumb {
  grid-column: 2;
  display: block;
  width: 140px;
  height: 92px;
  background: #FFFEF8;                               /* placeholder color */
}

.card__title {
  margin: 0 0 8px 0;
  font-size: 20px;
  line-height: 1.3;
}

.card__title a {
  text-decoration: none;
  color: inherit;
}

.card__meta {
  margin: 0 0 10px 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.6);
}

/* Summary: never truncate */
.card__summary {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(0,0,0,0.75);
  max-height: none;
  overflow: visible;
  display: block;
}


/* ======================================================
   ARTICLE DETAIL (LONG-FORM ESSAY)
   ====================================================== */

/* Extra safety for long tokens inside essays */
.essay__content,
.essay__body,
.essay__header {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Horizontal scroll only when needed */
.essay__content pre {
  max-width: 100%;
  overflow-x: auto;
}

.essay__content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* Media never exceed the content column */
.essay__content img,
.essay__content video,
.essay__content iframe {
  max-width: 100%;
}

/* Essay wrapper */
.essay {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Header rule */
.essay__header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid rgba(0,0,0,0.10);
}

/* Title */
.essay__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

/* Author line (below title, quieter) */
.essay__meta {
  margin: 12px 0 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0,0,0,0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Body paragraphs */
.essay__body p {
  font-size: 19px;
  line-height: 1.75;
  margin: 0 0 24px 0;
}

/* Markdown images: flush-left with text column */
.essay__content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 32px 0 40px 0;
}

/* Captions: italic line right after image */
.essay__content img + em,
.essay__content img + p em {
  display: block;
  margin-top: -24px;
  margin-bottom: 36px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(0,0,0,0.55);
  text-align: left;
}

/* If caption is wrapped in a <p>, remove extra spacing */
.essay__content img + p { margin: 0; }

/* Blockquotes */
.essay__content blockquote {
  margin: 32px 0;
  padding-left: 18px;
  border-left: 2px solid rgba(0,0,0,0.15);
  font-style: italic;
  color: rgba(0,0,0,0.8);
}

.essay__content blockquote p { margin: 0; }
.essay__content blockquote p + p { margin-top: 10px; }

/* End mark icon */
.end-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  background: url("/static/images/proof-mark.89aa18369fc0.png") no-repeat center / contain;
  vertical-align: middle;
  opacity: 0.9;
}

/* Markdown headings inside essay body */
.essay__content h1 {
  font-size: 26px;
  line-height: 1.25;
  margin: 28px 0 12px 0;
  letter-spacing: -0.005em;
}

.essay__content h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 26px 0 10px 0;
}

.essay__content h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 22px 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Lists: match surrounding text size */
.essay__content ul,
.essay__content ol {
  margin: 0 0 24px 0;
  padding-left: 22px;
}

.essay__content li {
  font-size: 1em;
  line-height: 1.65;
}

/* Cover block (if you render a cover image above content later) */
.essay__cover {
  margin: 32px 0 40px 0;
  max-width: 720px;
}

.essay__cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* Mobile essay cover */
@media (max-width: 768px) {
  .essay__cover {
    margin: 24px 0 32px 0;
    max-width: 100%;
  }
}


/* ======================================================
   TABLE OF CONTENTS (ARTICLE DETAIL)
   ====================================================== */

/* TOC wrapper */
.toc {
  margin: 14px 0 30px 0;
  padding-top: 0;
  border-top: none;
}

/* TOC label */
.toc__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  color: rgba(0,0,0,0.55);
}

/* TOC list reset */
.toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc__list li { margin: 0 0 2px 0; }

/* TOC links */
.toc__list a {
  color: rgba(0,0,0,0.65);
  text-decoration: none;
  display: inline-block;
  padding-bottom: 2px;

  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  border-bottom: 0.5px solid rgba(0,0,0,0.0);
  line-height: 1.35;
}

.toc__list a:hover {
  border-bottom-color: rgba(0,0,0,0.4);
  color: rgba(0,0,0,0.85);
}

/* TOC hierarchy */
.toc__item--h1 a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc__item--h2 { margin-left: 16px; }

.toc__item--h2 a {
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0;
  color: rgba(0,0,0,0.6);
}


/* ======================================================
   ARTICLE DETAIL: CONTEXT / PAGINATION / RELATED
   ====================================================== */

/* Context/continuation block */
.continuation {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}

.continuation__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin: 0 0 8px 0;
}

.continuation__text {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(0,0,0,0.75);
}

.continuation__text--secondary {
  margin: 0;
  color: rgba(0,0,0,0.6);
}

.continuation__close {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  font-style: italic;
  color: rgba(0,0,0,0.65);
}

.continuation__action { margin: 10px 0 0 0; }

.continuation__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(0,0,0,0.30);
  padding-bottom: 2px;
}

.continuation__link:hover { border-bottom-color: rgba(0,0,0,0.55); }

/* Pagination (site-wide style) */
.pagination {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pagination a {
  text-decoration: none;
  color: inherit;
}

.pagination__meta {
  text-transform: none;
  letter-spacing: 0;
}

/* Article navigation: extra separation after essay body */
.essay .pagination {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}

/* Related reading section */
.related {
  margin-top: 28px;
  padding-top: 18px;
}

.related__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin: 0 0 10px 0;
}

.related__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related__item {
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.related__item a {
  color: inherit;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(0,0,0,0.0);
}

.related__item a:hover { border-bottom-color: rgba(0,0,0,0.35); }

.related__meta {
  color: rgba(0,0,0,0.6);
  font-size: 14px;
}


/* ======================================================
   ABOUT PAGE
   ====================================================== */

/* Standard “block” separators */
.about-block {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}

.about-block__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin: 0 0 10px 0;
}

.about-block__text {
  margin: 0 0 12px 0;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(0,0,0,0.82);
}

/* List styling */
.about-list {
  margin: 10px 0 0 0;
  padding-left: 18px;
}

.about-list li {
  margin: 0 0 8px 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(0,0,0,0.78);
}

/* Founder callout card */
.about-founder {
  margin-top: 56px;
  padding: 18px 18px 2px 18px;
  border: 0.5px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  background: rgba(255, 254, 248, 0.85);
}

.about-founder__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin: 0 0 10px 0;
}

.about-founder__text {
  margin: 0 0 14px 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0,0,0,0.78);
}

/* Signature line */
.about-founder__signature {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0,0,0,0.55);
}

.about-founder__role {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
}

/* About CTA */
.about-cta {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}

.about-cta__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin: 0 0 10px 0;
}

.about-cta__links {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.about-cta__links a {
  text-decoration: none;
  border-bottom: 0.5px solid rgba(0,0,0,0.0);
  color: inherit;
}

.about-cta__links a:hover { border-bottom-color: rgba(0,0,0,0.35); }

/* About mobile tightening */
@media (max-width: 480px) {
  .about-block { margin-top: 38px; }
  .about-block__text { font-size: 16px; }
  .about-founder { padding: 16px 16px 2px 16px; }
}


/* ======================================================
   BOOKS PAGE (SHELVES + LIST CARDS)
   ====================================================== */

/* Shelf blocks (Foundations / Tools / Mastery) */
.shelf {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}

/* First shelf sits closer to top */
.shelf:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 28px;
}

/* Shelf headings: deliberately smaller than book titles */
.shelf h2 {
  margin: 0 0 8px 0;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
}

/* Shelf description */
.shelf__note {
  margin: 0 0 18px 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0,0,0,0.7);
  max-width: 60ch;
}

/* Book list */
.book-list {
  display: grid;
  gap: 18px;
}

/* Book card layout: cover left, text right */
.book-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: start;

  padding: 16px 0;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}

.book-card:first-child {
  border-top: none;
  padding-top: 0;
}

/* Cover wrapper: square edges, controlled height */
.book-card__cover {
  width: 140px;
  height: 220px;
  border-radius: 0;
  overflow: hidden;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.10);
}

/* Cover: show full cover (no cropping) */
/* Default: crop to fill (best for normal rectangular covers) */
.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* default behavior */
  display: block;
  border-radius: 0;
}

/* Optional per-book override: show full image (no cropping) */
.book-card__cover--contain img {
  object-fit: contain;    /* full cover visible */
}

/* Title */
.book-card__title {
  margin: 0 0 6px 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
}

.book-card__title a {
  text-decoration: none;
  color: inherit;
}

.book-card__title a:hover { text-decoration: underline; }

/* Author line */
.book-card__author {
  margin: 2px 0 10px 0;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
}

/* Promise text */
.book-card__promise {
  margin: 0 0 10px 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(0,0,0,0.75);
}

/* Format + status line */
.book-card__meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
}

/* Books mobile layout */
@media (max-width: 480px) {
  .shelf { margin-top: 44px; }
  .shelf:first-of-type { margin-top: 22px; }
  .shelf__note { font-size: 15px; }

  .book-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Cover wrapper (it's an <a>) */
  .book-card__cover,
  a.book-card__cover {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Cover image: show full cover (no cropping) */
  .book-card__cover img,
  a.book-card__cover > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}


/* ======================================================
   BOOK DETAIL PAGE
   ====================================================== */

.book-detail { max-width: 100%; }

/* Detail header divider */
.book-detail__header {
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

/* Shelf label */
.book-detail__meta {
  margin: 0 0 10px 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
}

/* Book title */
.book-detail__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

/* Author under title */
.book-detail__author {
  margin: 10px 0 0 0;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
}

/* Main layout: cover + text */
.book-detail__main {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: start;
}

/* Cover figure */
.book-detail__cover { margin: 0; }

.book-detail__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Cover caption */
.book-detail__caption {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(0,0,0,0.55);
  text-align: center;
}

/* Body measure */
.book-detail__body { max-width: 520px; }

/* Promise */
.book-detail__promise {
  margin: 0 0 20px 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(0,0,0,0.75);
}

/* Facts divider */
.book-detail__facts {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}

.book-detail__facts p {
  margin: 0 0 6px 0;
  font-size: 14px;
}

.book-detail__k {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin-right: 6px;
}

.book-detail__v { color: rgba(0,0,0,0.8); }

/* Buy CTA (quiet, confident) */
.book-detail__cta {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}

.book-detail__cta a {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: rgba(0,0,0,0.75);
  text-decoration: none;

  border-bottom: 1px solid rgba(0,0,0,0.35);
  padding-bottom: 4px;

  transition: color 120ms ease, border-color 120ms ease;
}

.book-detail__cta a:hover {
  color: rgba(0,0,0,0.95);
  border-bottom-color: rgba(0,0,0,0.75);
}

/* Back link */
.book-detail__back {
  margin-top: 48px;
  font-size: 14px;
}

.book-detail__back a {
  text-decoration: none;
  color: rgba(0,0,0,0.65);
}

.book-detail__back a:hover { color: rgba(0,0,0,0.9); }

/* Detail mobile layout */
@media (max-width: 640px) {
  .book-detail__main { grid-template-columns: 1fr; }

  .book-detail__cover {
    max-width: 240px;
    margin: 0 auto 24px;
  }

  .book-detail__body { max-width: 100%; }
}


/* ======================================================
   START PAGE
   ====================================================== */

.start {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

/* Each start path is a separated row */
.start__path {
  padding: 16px 0;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}

.start__path:first-child {
  border-top: none;
  padding-top: 0;
}

.start__text {
  margin: 0 0 10px 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(0,0,0,0.75);
}

.start__action { margin: 0; }

.start__action a {
  color: inherit;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(0,0,0,0.25);
  padding-bottom: 2px;
}

.start__action a:hover { border-bottom-color: rgba(0,0,0,0.5); }

/* Closing note block */
.start__note {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}

.start__note-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin: 0 0 8px 0;
}

.start__note-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(0,0,0,0.7);
}

@media (max-width: 480px) {
  .start { gap: 14px; }
  .start__text { font-size: 15px; }
}


/* ======================================================
   CONTACT PAGE
   ====================================================== */

.contact-context {
  margin: 24px 0 18px 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(0,0,0,0.85);
}

.contact-email {
  margin-top: 36px;
  font-size: 14px;
  color: rgba(0,0,0,0.6);
}

.contact-email-address {
  margin: 6px 0 0 0;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.contact-note {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(0,0,0,0.55);
}

/* ======================================================
   CONTACT PAGE (quiet, professional, human)
   ====================================================== */

/* Context text already good — just tighten rhythm */
.contact-context {
  margin: 0 0 16px 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(0,0,0,0.82);
}

/* Success + error messages (calm, not shouty) */
.contact-success {
  margin: 18px 0 22px 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(0,0,0,0.8);
  border-left: 3px solid rgba(0,0,0,0.25);
  padding-left: 12px;
}

.contact-error {
  margin: 18px 0 22px 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(0,0,0,0.75);
  border-left: 3px solid rgba(0,0,0,0.4);
  padding-left: 12px;
}

/* Form wrapper — visually separated but subtle */
.contact-form {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
  max-width: 520px; /* narrower = more serious */
}

/* Individual fields */
.contact-form__field {
  margin-bottom: 20px;
}

/* Labels: academic microcopy */
.contact-form__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
}

/* Inputs + textarea: calm, paper-like */
.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 10px 10px;

  font-size: 16px;
  line-height: 1.5;
  font-family: inherit;
  color: #111;

  background: rgba(255,254,248,0.9);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 0; /* no friendliness */
}

/* Focus: intellectual confidence, not glow */
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: rgba(0,0,0,0.45);
}

/* Error state (quiet but clear) */
.contact-form__field input[aria-invalid="true"],
.contact-form__field textarea[aria-invalid="true"] {
  border-color: rgba(0,0,0,0.5);
}

/* Error text */
.contact-form__error {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(0,0,0,0.6);
}

/* Submit action */
.contact-form__action {
  margin-top: 28px;
}

/* Button: restrained, deliberate */
.contact-form__action button {
  background: none;
  border: none;
  padding: 0;

  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.8);

  border-bottom: 1px solid rgba(0,0,0,0.35);
  padding-bottom: 4px;

  cursor: pointer;
}

/* Hover: confidence, not excitement */
.contact-form__action button:hover {
  color: rgba(0,0,0,0.95);
  border-bottom-color: rgba(0,0,0,0.7);
}

/* Footer note */
.contact-note {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(0,0,0,0.6);
}

/* ======================================================
   FOOTER
   ====================================================== */

.site-footer {
  margin-top: 96px;
  padding: 36px 24px 48px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
  background: rgba(255, 254, 248, 0.6);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.site-footer__brand {
  margin: 0 0 6px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.7);
}

.site-footer__tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0,0,0,0.55);
  max-width: 360px;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__nav a {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  text-decoration: none;
}

.site-footer__nav a:hover { color: rgba(0,0,0,0.9); }


/* ======================================================
   RESPONSIVE: NAV (MOBILE)
   ====================================================== */

/* Hamburger button hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(0,0,0,0.18);
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 480px) {
  body { overflow-x: hidden; }                        /* defensive */

  /* Header spacing on mobile */
  .site-header { padding: 32px 32px 20px 32px; }
  main { padding: 40px 32px; }
  .site-footer { padding: 40px 32px 56px; }

  /* Grid header: logo + toggle + collapsible nav */
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo toggle"
      "nav  nav";
    row-gap: 12px;
    align-items: center;
  }

  .logo { grid-area: logo; min-width: 0; }

  .logo img {
    height: 72px;
    width: auto;
    max-width: 100%;
    display: block;
  }

  .nav-toggle { display: inline-block; grid-area: toggle; justify-self: end; }

  .site-nav {
    grid-area: nav;
    display: none;
    flex-direction: column;
    gap: 14px;

    min-width: 170px;
    margin-left: auto;
    padding: 12px 14px;
    background: rgba(255, 254, 248, 0.96);
  }

  .site-nav a { text-align: right; }

  /* When header gets .nav-open, show the nav */
  .nav-open .site-nav { display: flex; }

  /* Footer stacks on mobile */
  .site-footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .site-footer__nav { gap: 10px; }
}


/* ======================================================
   RESPONSIVE: TABLET READING MEASURE
   ====================================================== */

@media (min-width: 481px) and (max-width: 900px) {
  main { padding: 56px 56px; }                         /* more breathing room */
  .container { max-width: 680px; }                     /* tighter measure */
}