:root {
  --paper: #fff;
  --ink: #0b0b0b;
  --muted: #6f6f6f;
  --soft: #ecebe8;
  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
  --pad: clamp(1.25rem, 3.4vw, 3.75rem);
  --max: 1260px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.45;
}

.concept-home { color: #000; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.58; }
button, input { font: inherit; }

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

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.concept-header,
.concept-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.4rem var(--pad);
}

.concept-brand {
  font-family: var(--display);
  font-size: clamp(1.125rem, 1.45vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.prototype-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.concept-home .prototype-label,
.concept-home .concept-footer {
  color: #000;
}

.home-main {
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem) var(--pad) clamp(3rem, 7vw, 7rem);
  container-type: inline-size;
}

.entrance-image {
  margin: 0;
  width: 100%;
}

.entrance-image img {
  width: 100%;
  height: auto;
}

.entrance-nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  gap: 0.28em;
  padding-top: clamp(1.6rem, 3.6vw, 3.2rem);
  color: #000;
  font-family: var(--display);
  font-size: clamp(1rem, 4.45cqw, 2.72rem);
  font-weight: 900;
  letter-spacing: 0.025em;
  line-height: 0.95;
  text-rendering: geometricPrecision;
  text-transform: uppercase;
  white-space: nowrap;
}

.entrance-nav a,
.entrance-nav > span {
  display: block;
}

.entrance-nav small {
  display: block;
  margin-top: 0.55em;
  font-size: 0.2em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: lowercase;
}

.concept-footer {
  color: var(--muted);
  font-size: 0.72rem;
}

.writing-header {
  border-bottom: 1px solid var(--soft);
}

.compact-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.8rem);
  font-size: 1rem;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  padding: 0;
  cursor: pointer;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker { display: none; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: -0.8rem;
  z-index: 20;
  min-width: 12rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.25rem);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown[open] .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  white-space: nowrap;
}

.compact-nav a[aria-current="page"],
.compact-nav summary[aria-current="page"] {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.compact-nav span { color: #000; }
.compact-nav small { font-style: italic; }

.writing-intro {
  width: min(100% - (2 * var(--pad)), 680px);
  margin: 0 auto;
  padding: clamp(2.75rem, 4.5vw, 4rem) 0 clamp(4rem, 7vw, 6.5rem);
  text-align: center;
}

.writing-intro h1 {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(4.08rem, 10.2vw, 7.65rem);
  font-weight: 900;
  letter-spacing: 0.025em;
  line-height: 0.88;
  text-transform: uppercase;
}

.writing-description {
  max-width: 550px;
  margin: 1.4rem auto 2.4rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
}

.subscribe-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(100%, 470px);
  margin: 0 auto;
  border: 1px solid #171717;
}

.subscribe-form input {
  min-width: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
  padding: 0.9rem 1rem;
  outline: none;
}

.subscribe-form button {
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 0.9rem 1.35rem;
}

.subscribe-form:focus-within { outline: 2px solid #111; outline-offset: 3px; }

.prototype-response {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
  background: #fff;
  color: var(--muted);
  font-size: 0.7rem;
}

.prototype-response:not(:empty) { padding: 0.55rem 0.75rem; }

.writing-index {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad) clamp(5rem, 10vw, 9rem);
}

.index-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.index-toolbar h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.filter-list button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.125rem;
  padding: 0;
}

.filter-list button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.sample-note {
  max-width: 680px;
  margin: 1rem 0 2.4rem;
  color: var(--muted);
  font-size: clamp(0.875rem, 1.25vw, 1rem);
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.4rem, 5vw, 5rem) clamp(1.4rem, 3.2vw, 3.2rem);
}

.writing-card[hidden] { display: none; }
.writing-card a { display: block; }

.card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #efefef;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image--typographic {
  display: flex;
  align-items: flex-end;
  background: #111;
  color: #fff;
}

.archive-card-mark {
  padding: 1rem;
  font-size: clamp(1.32rem, 2.72vw, 2.34rem);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 0.82;
  text-transform: uppercase;
}

.year-square {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: clamp(3.2rem, 5vw, 4.25rem);
  aspect-ratio: 1;
  background: #0a0a0a;
  color: #fff;
  font-size: clamp(0.55rem, 0.85vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-copy { padding-top: 1rem; }

.entry-type {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.writing-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2.2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.entry-deck {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: clamp(0.875rem, 1.25vw, 1rem);
  line-height: 1.55;
}

.filter-empty {
  margin: 2.5rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
}

.article-main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7.5rem) var(--pad) clamp(5rem, 10vw, 9rem);
}

.article-heading {
  width: min(100%, 860px);
  margin: 0 auto clamp(3.5rem, 7vw, 6.5rem);
  text-align: center;
}

.article-provenance {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.article-heading h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7.65vw, 6.8rem);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 0.88;
  text-transform: uppercase;
}

.article-subtitle {
  max-width: 620px;
  margin: 1.7rem auto 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.article-body {
  width: min(100%, 720px);
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.78;
}

.article-body p {
  margin: 0 0 1.65em;
}

.article-body a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.article-body p:has(> img) {
  width: min(100%, 720px);
  margin: clamp(3rem, 7vw, 6.5rem) auto;
  font-family: var(--display);
}

.article-body p:has(> img) img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.article-body p:has(> img[data-image-size="text"]) img {
  width: 100%;
}

.article-body p:has(> img[data-image-size="wide"]) {
  width: min(100vw - (2 * var(--pad)), 1040px);
  margin: clamp(3rem, 7vw, 6.5rem) 50% clamp(3rem, 7vw, 6.5rem);
  transform: translateX(-50%);
}

.article-body p:has(> img[data-image-size="wide"]) img {
  width: 100%;
}

.article-body p:has(> img) em {
  display: block;
  max-width: 720px;
  margin: 0.75rem auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.5;
}

.article-body blockquote {
  margin: 2.25rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--ink);
  font-style: italic;
}

.article-body hr {
  width: 4rem;
  margin: 3.5rem auto;
  border: 0;
  border-top: 1px solid var(--ink);
}

.article-back {
  width: min(100%, 720px);
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.writing-footer {
  border-top: 1px solid var(--soft);
}

@media (max-width: 820px) {
  .writing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .concept-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .compact-nav { justify-content: space-between; width: 100%; gap: 0.6rem; }
  .nav-dropdown-menu { left: 0; min-width: 10.8rem; }
  .writing-intro { padding-top: 2.75rem; }
  .writing-intro h1 { font-size: clamp(3.4rem, 18.7vw, 5.7rem); }
  .subscribe-form { grid-template-columns: 1fr; border: 0; gap: 0.55rem; }
  .subscribe-form input { border: 1px solid #171717; }
  .index-toolbar { align-items: flex-start; flex-direction: column; gap: 0.8rem; }
  .writing-grid { grid-template-columns: 1fr; }
  .article-main { padding-top: 3.25rem; }
  .article-heading h1 { font-size: clamp(2.55rem, 14.45vw, 4.46rem); }
  .article-body { line-height: 1.7; }
  .concept-footer { align-items: flex-start; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
