/* Culture of Hypocrisy — editorial static site
   No external fonts or frameworks. System stack for reliability. */

:root {
  --ink: #1a1714;
  --ink-soft: #3d3832;
  --muted: #6b645c;
  --paper: #f7f3ec;
  --paper-deep: #efe8dc;
  --rule: #d4cbbd;
  --accent: #7a3e2e;
  --accent-hover: #5e2e22;
  --focus: #2c5f6e;
  --max: 68rem;
  --narrow: 38rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms var(--ease);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.wordmark-mark {
  width: 0.7rem;
  height: 0.7rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3.5px var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  width: 2.75rem;
  height: 2.4rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.35rem;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-decoration: none;
}

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

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--pad) 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .site-nav li:last-child a {
    border-bottom: 0;
  }
}

/* Hero */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vw, 7rem) var(--pad) clamp(3rem, 8vw, 5.5rem);
  overflow: hidden;
}

.hero-ornament {
  position: absolute;
  right: clamp(0.5rem, 6vw, 4rem);
  top: clamp(2rem, 8vw, 4.5rem);
  width: clamp(5.5rem, 14vw, 8.5rem);
  color: var(--accent);
  opacity: 0.28;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.byline {
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.author-name {
  font-style: italic;
}

.hero-lede {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.1rem, 2.4vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.status-note {
  margin: 1.25rem 0 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-ghost:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--rule);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section-inner.narrow {
  max-width: calc(var(--narrow) + 2 * var(--pad));
}

.section-label {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.editorial {
  margin: 0 0 1.1rem;
  font-size: 1.08rem;
}

.muted {
  color: var(--muted);
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 820px) {
  .split {
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.fact-list li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 520px) {
  .fact-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.fact-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.fact-value {
  color: var(--ink);
}

.aside {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.author {
  background: var(--paper-deep);
}

.update-card {
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule);
}

.update-card:last-child {
  border-bottom: 1px solid var(--rule);
}

.update-badge {
  margin: 0 0 0.4rem;
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.update-card p:last-child {
  margin-bottom: 0;
}

/* Form */
.interest-form {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  max-width: 28rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 0.35rem;
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.form-disclaimer {
  margin: 0;
  max-width: 36rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.form-disclaimer code {
  font-family: var(--mono);
  font-size: 0.78em;
}

.form-status {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.interest-form .btn {
  justify-self: start;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.footer-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.footer-title cite {
  font-style: italic;
}

.footer-meta {
  margin: 0.25rem 0 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-meta a {
  color: var(--muted);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--accent);
}

/* Approved subtitle and introduction sample */
.hero-subtitle {
  margin: 1rem 0 0;
  max-width: 32rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.35;
  color: var(--accent);
}
.manuscript-excerpt {
  margin: 1.5rem 0;
  padding: 0 clamp(1rem, 3vw, 1.75rem);
  border-left: 2px solid var(--accent);
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.75;
  color: var(--ink-soft);
}
.manuscript-excerpt p { margin: 0 0 1.25rem; }
.manuscript-excerpt p:first-child { color: var(--ink); font-style: italic; }
.manuscript-excerpt p:last-child { margin-bottom: 0; }



/* Dedicated /about biography page */
.about-page {
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.about-page h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}


.form-status.is-error {
  color: var(--accent);
}

.form-status.is-success {
  color: #2f5d3a;
}

.about-page-book {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.about-book .editorial {
  max-width: 38rem;
}

.about-book .editorial + .editorial {
  margin-top: 1rem;
}

/* Author portrait */
.author-layout {
  display: grid;
  gap: 1.75rem 2.25rem;
  align-items: start;
}

.author-layout--home {
  max-width: 48rem;
  margin-inline: auto;
}

.author-layout--about {
  max-width: 52rem;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .author-layout {
    grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
    gap: 2rem 2.75rem;
  }

  .author-layout--about {
    grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  }
}

.author-photo {
  margin: 0;
}

.author-photo img {
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
  box-shadow: 0 1px 0 rgba(26, 23, 20, 0.06), 0 12px 28px rgba(26, 23, 20, 0.08);
  background: var(--paper-deep);
}

.author-copy .section-label {
  margin-top: 0;
}

@media (max-width: 719px) {
  .author-photo {
    max-width: 16rem;
  }
}

/* Homepage work grid */
.home-intro h1 { margin: 0.25rem 0 1rem; }
.work-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.work-card { border-top: 1px solid currentColor; padding-top: 1.25rem; }
.work-card h3 { margin: 0.4rem 0; }
.work-card h3 a { color: inherit; text-decoration: none; }
.work-subtitle { font-style: italic; opacity: 0.8; margin-top: 0; }
.book-subnav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: center; padding: 0.75rem var(--pad, 1.25rem) 0; font-size: 0.9rem; }

/* Journal: the original editorial palette and typography continue here. */
.blog-list { min-height: 70vh; border-top: 0; padding-top: clamp(4rem, 9vw, 7rem); }
.blog-list h1, .blog-article h1 { font-weight: 500; line-height: 1.12; letter-spacing: -0.025em; }
.blog-list h1 { font-size: clamp(2.8rem, 7vw, 5rem); margin: 0 0 1.15rem; }
.blog-intro { color: var(--ink-soft); font-size: clamp(1.15rem, 2.5vw, 1.4rem); max-width: 35rem; margin: 0 0 4rem; }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.blog-card { padding: 2rem 2rem 3rem 0; border-bottom: 1px solid var(--rule); }
.blog-card:nth-child(even) { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--rule); }
.blog-card h2 { max-width: 22ch; margin: 0.7rem 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.blog-card h2 a { color: var(--ink); text-decoration: none; }
.blog-card h2 a:hover { color: var(--accent); text-decoration: underline; }
.blog-card > p:not(.blog-date) { color: var(--ink-soft); max-width: 33rem; }
.blog-date, .blog-meta, .blog-back, .blog-read { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.025em; }
.blog-date, .blog-meta { color: var(--muted); }
.blog-read { display: inline-block; margin-top: 1rem; }
.blog-article { border-top: 0; padding-top: clamp(3rem, 7vw, 5.5rem); }
.blog-back { display: inline-block; margin-bottom: 3rem; }
.blog-article h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 0 0 1.2rem; }
.blog-meta { margin: 0 0 2rem; }
.blog-deck { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.3rem 0; font-size: clamp(1.15rem, 2.3vw, 1.4rem); color: var(--ink-soft); }
.blog-prose { font-size: 1.1rem; line-height: 1.78; }
.blog-prose p { margin: 1.5rem 0; }
.blog-sources { border-top: 1px solid var(--rule); margin-top: 3rem; padding-top: 1.5rem; font-size: 0.92rem; overflow-wrap: anywhere; }
.blog-sources h2 { font-size: 1.25rem; }
.blog-sources li { margin: 0.5rem 0; }
.blog-end { margin: 3rem 0 0; font-family: var(--sans); font-size: 0.86rem; }
@media (max-width: 700px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-card, .blog-card:nth-child(even) { padding: 1.5rem 0 2rem; border-left: 0; }
  .blog-intro { margin-bottom: 2.5rem; }
  .blog-back { margin-bottom: 2rem; }
}
