/*
Theme Name: 野渡
Author: 野渡工作室
Description: 一份给独立设计师、写作者和小型工作室的编辑式主题。纸本底色、宋体大字、朱砂强调色与克制的排版，留足呼吸，也保留一点手作的毛边。
Version: 1.1.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yedu
Tags: editorial, portfolio, blog, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* --------------------------------------------------------------
   01. Tokens
   -------------------------------------------------------------- */
:root {
  --paper: #f2ece1;
  --paper-2: #e9e1d3;
  --paper-3: #ded4c3;
  --ink: #171713;
  --ink-soft: #3f3e36;
  --muted: #6f695d;
  --rule: rgba(23, 23, 19, 0.2);
  --rule-light: rgba(242, 236, 225, 0.22);
  --accent: #dc4027;
  --accent-deep: #b72e1c;
  --olive: #596044;
  --max: 1560px;
  --gutter: clamp(20px, 4.2vw, 72px);
  --header-h: 96px;
  --serif: "Instrument Serif", "Songti SC", "STSong", "Noto Serif CJK SC",
    "Source Han Serif SC", "SimSun", serif;
  --serif-text: "Songti SC", "STSong", "Noto Serif CJK SC",
    "Source Han Serif SC", "SimSun", serif;
  --sans: "Helvetica Neue", "Neue Haas Grotesk Text Pro", Helvetica, Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------
   02. Reset & base
   -------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

a,
button {
  -webkit-tap-highlight-color: transparent;
}

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

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

.shell {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin-inline: auto;
}

.site-main {
  overflow: clip;
}

section[id],
div[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

body.menu-open {
  overflow: hidden;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  background: var(--ink);
  color: var(--paper);
  clip: auto;
  clip-path: none;
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  height: auto;
  left: 16px;
  padding: 12px 18px;
  top: 16px;
  width: auto;
  z-index: 10000;
}

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

.arrow {
  display: inline-block;
  font-family: var(--sans);
  transition: transform 0.35s var(--ease);
}

a:hover .arrow {
  transform: translate(3px, -2px);
}

a:hover .arrow[aria-hidden="true"] {
  transform: translate(3px, -2px);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 0 0 rgba(220, 64, 39, 0.35);
  animation: pulse 3.2s infinite;
}

.status-dot--small {
  width: 5px;
  height: 5px;
  animation: none;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 64, 39, 0.3);
  }
  55% {
    box-shadow: 0 0 0 6px rgba(220, 64, 39, 0);
  }
}

/* Small technical labels */
.section-index,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.section-index > span:first-child {
  color: var(--accent-deep);
}

.section-index--light {
  color: rgba(242, 236, 225, 0.55);
}

.section-index--light > span:first-child {
  color: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link--light {
  color: var(--paper);
  border-color: rgba(242, 236, 225, 0.5);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.button .arrow {
  font-size: 15px;
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

/* --------------------------------------------------------------
   03. Header
   -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--serif-text);
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(-1px);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__name {
  font-family: var(--serif-text);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
}

.brand__en {
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.3;
  letter-spacing: 0.13em;
  color: var(--muted);
  text-transform: uppercase;
}

.custom-logo-link img {
  width: auto;
  max-height: 46px;
}

.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 42px);
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-list .current-menu-item > a::after,
.nav-list .current_page_item > a::after {
  transform: scaleX(1);
  transform-origin: left;
  background: var(--accent);
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--accent);
}

.site-header__aside {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: none;
}

.header-coord {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.header-contact:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.menu-toggle__lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.menu-toggle__lines i {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

/* Mobile panel */
.menu-panel {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  overflow-y: auto;
}

.menu-panel[hidden] {
  display: none;
}

.menu-panel__inner {
  padding-top: 36px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.menu-panel__list {
  list-style: none;
  margin-top: 28px;
  border-top: 1px solid var(--rule);
}

.menu-panel__list li {
  border-bottom: 1px solid var(--rule);
}

.menu-panel__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-family: var(--serif-text);
  font-size: clamp(30px, 9vw, 44px);
  line-height: 1.2;
}

.menu-panel__list a::after {
  content: "↗";
  font-family: var(--sans);
  font-size: 18px;
  color: var(--accent);
}

.menu-panel__foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 40px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

/* --------------------------------------------------------------
   04. Hero
   -------------------------------------------------------------- */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  padding-top: clamp(24px, 3.5vw, 48px);
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__edition {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hero__edition span {
  color: var(--accent);
  padding-inline: 4px;
}

.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7.2fr) minmax(300px, 4.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
  padding-block: clamp(32px, 5vh, 64px);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__title {
  margin-left: -0.07em;
  font-family: var(--serif-text);
  font-size: clamp(3.55rem, 9.15vw, 9.2rem);
  font-weight: 500;
  line-height: 0.985;
  letter-spacing: -0.065em;
  color: var(--ink);
}

.hero__line {
  display: block;
}

.hero__intro {
  max-width: 28em;
  margin-top: clamp(24px, 3.5vw, 44px);
  font-family: var(--serif-text);
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.85;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: clamp(26px, 3.2vw, 46px);
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero__figure {
  align-self: end;
  max-width: 100%;
}

.hero__art {
  position: relative;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.hero__ink {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.hero__figure:hover .hero__ink {
  transform: scale(1.018);
}

.hero__art-index {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 6px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.hero__art-vertical {
  position: absolute;
  top: 100px;
  right: 14px;
  padding: 6px 4px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--serif-text);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.hero__figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero__bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

/* --------------------------------------------------------------
   05. Marquee
   -------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-block: 1px solid var(--ink);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 13px 0 14px;
  padding-right: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.marquee__track i {
  font-style: normal;
  color: var(--accent);
  font-size: 12px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------
   06. Section furniture
   -------------------------------------------------------------- */
.section {
  padding-block: clamp(84px, 10vw, 158px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-head__row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  align-items: end;
  gap: 40px;
}

.section-title {
  font-family: var(--serif-text);
  font-size: clamp(2.9rem, 6.2vw, 6.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.section-dek {
  max-width: 23em;
  justify-self: end;
  padding-bottom: 8px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* --------------------------------------------------------------
   07. Selected work
   -------------------------------------------------------------- */
.work {
  background: var(--paper);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(40px, 5vw, 80px) clamp(18px, 2.4vw, 36px);
  margin-top: clamp(52px, 6vw, 90px);
}

.work-grid--archive {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 90px) clamp(20px, 3vw, 48px);
  padding-bottom: clamp(70px, 9vw, 130px);
}

.work-grid--archive .project:nth-child(n) {
  grid-column: auto;
  margin-top: 0;
}

.work-grid--archive .project:nth-child(even) {
  margin-top: clamp(50px, 8vw, 120px);
}

.work-grid--archive .project--1 .project__cover,
.work-grid--archive .project--4 .project__cover,
.work-grid--archive .project--2 .project__cover,
.work-grid--archive .project--3 .project__cover {
  aspect-ratio: 4 / 5;
}

.project {
  min-width: 0;
}

.project:nth-child(1) {
  grid-column: 1 / 8;
}

.project:nth-child(2) {
  grid-column: 9 / 13;
  margin-top: clamp(60px, 9vw, 150px);
}

.project:nth-child(3) {
  grid-column: 2 / 6;
  margin-top: clamp(0px, 1vw, 20px);
}

.project:nth-child(4) {
  grid-column: 7 / 13;
  margin-top: clamp(40px, 7vw, 110px);
}

.project__link {
  display: block;
}

.project__figure {
  margin: 0;
}

.project__cover {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
}

.project--1 .project__cover,
.project--4 .project__cover {
  aspect-ratio: 5 / 4;
}

.project__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 1s var(--ease);
}

.project__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.project__link:hover .project__image {
  transform: scale(1.03);
  filter: saturate(1.04);
}

.project__link:hover .project__cover::after {
  opacity: 0.045;
}

.project__no {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  z-index: 2;
}

.project__view {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 2;
}

.project__link:hover .project__view {
  opacity: 1;
  transform: none;
}

.project__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 9px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project__meta span:first-child {
  color: var(--accent-deep);
}

.project__title {
  margin-top: 16px;
  font-family: var(--serif-text);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

.project__link:hover .project__title {
  color: var(--accent);
}

.project__excerpt {
  max-width: 28em;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.work__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(60px, 7vw, 104px);
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.work__count {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* --------------------------------------------------------------
   08. Manifesto
   -------------------------------------------------------------- */
.manifesto {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(80px, 9vw, 138px);
}

.manifesto::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.manifesto .shell {
  position: relative;
  z-index: 1;
}

.manifesto__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-light);
}

.manifesto__aside {
  text-align: right;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: rgba(242, 236, 225, 0.52);
}

.manifesto__title {
  margin-block: clamp(54px, 7vw, 100px) clamp(52px, 6vw, 84px);
  font-family: var(--serif-text);
  font-size: clamp(3.7rem, 9.8vw, 9.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.manifesto__title .accent {
  position: relative;
}

.manifesto__title .accent::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.02em;
  bottom: 0.08em;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
}

.manifesto__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: start;
}

.manifesto__lead p {
  max-width: 30em;
  font-family: var(--serif-text);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.95;
  color: rgba(242, 236, 225, 0.8);
}

.manifesto__lead p + p {
  margin-top: 1.15em;
}

.manifesto__lead .text-link {
  margin-top: 34px;
}

.principles {
  list-style: none;
  border-top: 1px solid var(--rule-light);
}

.principle {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--rule-light);
}

.principle__no {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  color: var(--accent);
}

.principle h3 {
  font-family: var(--serif-text);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.principle p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(242, 236, 225, 0.48);
}

.manifesto__foot {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  margin-top: clamp(54px, 6vw, 84px);
  padding-top: 18px;
  border-top: 1px solid var(--rule-light);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(242, 236, 225, 0.5);
  text-transform: uppercase;
}

.manifesto__asterisk {
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
}

/* --------------------------------------------------------------
   09. Notes
   -------------------------------------------------------------- */
.notes {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}

.notes__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.7fr);
  gap: clamp(48px, 7vw, 110px);
  margin-top: clamp(48px, 6vw, 76px);
}

.notes__list {
  border-top: 1px solid var(--ink);
}

.note-row {
  display: grid;
  grid-template-columns: 92px 78px minmax(0, 1fr) 20px;
  gap: 18px;
  align-items: center;
  padding: 21px 0 22px;
  border-bottom: 1px solid var(--rule);
  transition: padding 0.4s var(--ease);
}

.note-row:hover {
  padding-left: 8px;
}

.note-row__date,
.note-row__cat {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

.note-row__cat {
  color: var(--accent-deep);
}

.note-row__title {
  font-family: var(--serif-text);
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}

.note-row:hover .note-row__title {
  color: var(--accent);
}

.note-row__arrow {
  font-size: 14px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.note-row:hover .note-row__arrow {
  opacity: 1;
  transform: none;
}

.notes__aside {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.notes__quote {
  font-family: var(--serif-text);
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.03em;
}

.notes__quote::before {
  content: "✳";
  display: block;
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 22px;
  color: var(--accent);
}

.notes__aside-text {
  margin-top: 22px;
  max-width: 20em;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.notes__aside .text-link {
  margin-top: 26px;
}

.notes__empty {
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------
   10. Contact
   -------------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
  padding-block: clamp(78px, 9vw, 132px) clamp(96px, 11vw, 170px);
  background: var(--paper);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(44px, 7vw, 110px);
  margin-top: clamp(36px, 5vw, 64px);
  align-items: end;
}

.contact__title {
  font-family: var(--serif-text);
  font-size: clamp(2.9rem, 4.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.055em;
}

.contact__info {
  padding-bottom: 8px;
}

.contact__email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.9vw, 3.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact__email .arrow {
  font-size: 0.72em;
}

.contact__email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact__info > p {
  max-width: 28em;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.contact__details {
  display: flex;
  gap: clamp(28px, 4vw, 60px);
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.contact__details div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact__details dt {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__details dd {
  font-family: var(--serif-text);
  font-size: 14px;
}

.contact__stamp {
  position: absolute;
  right: clamp(28px, 7vw, 110px);
  top: clamp(30px, 3.5vw, 54px);
  display: grid;
  place-items: center;
  width: clamp(88px, 9vw, 128px);
  aspect-ratio: 1;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--serif-text);
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: 0.16em;
  line-height: 1.2;
  writing-mode: vertical-rl;
  transform: rotate(6deg);
  opacity: 0.94;
  pointer-events: none;
}

/* --------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(60px, 7vw, 96px);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.site-footer .shell {
  position: relative;
  z-index: 1;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(44px, 7vw, 100px);
  padding-bottom: clamp(48px, 6vw, 76px);
}

.footer__eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(242, 236, 225, 0.45);
  text-transform: uppercase;
}

.footer__statement {
  margin-top: 18px;
  max-width: 10em;
  font-family: var(--serif-text);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.8fr;
  gap: 24px;
}

.footer__label {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-light);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(242, 236, 225, 0.48);
  text-transform: uppercase;
}

.footer__label span {
  color: var(--accent);
}

.footer__col ul {
  list-style: none;
  margin-top: 12px;
}

.footer__col li {
  margin-bottom: 7px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(242, 236, 225, 0.63);
}

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

.footer__time {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: clamp(18px, 1.8vw, 25px);
  letter-spacing: 0.02em;
}

.footer__time span:last-child {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.footer__small {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.7;
  color: rgba(242, 236, 225, 0.44);
}

.footer__wordmark {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  padding-top: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--rule-light);
  font-family: var(--serif-text);
  font-size: clamp(7rem, 20vw, 19rem);
  font-weight: 500;
  line-height: 0.76;
  letter-spacing: -0.08em;
  color: var(--paper);
}

.footer__wordmark span {
  display: block;
  margin-left: -0.06em;
}

.footer__wordmark i {
  width: clamp(12px, 1.2vw, 20px);
  height: clamp(12px, 1.2vw, 20px);
  margin-bottom: 0.12em;
  background: var(--accent);
  flex: none;
}

.footer__legal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 24px;
  padding-block: 18px 24px;
  border-top: 1px solid var(--rule-light);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: rgba(242, 236, 225, 0.52);
}

.footer__copy {
  flex: none;
}

.filing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.filing__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(242, 236, 225, 0.58);
  transition: color 0.25s ease;
}

.filing__item:hover {
  color: var(--paper);
}

.filing__label {
  padding: 1px 4px;
  border: 1px solid rgba(242, 236, 225, 0.25);
  font-size: 7px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.filing__item--plain {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__made {
  flex: none;
  color: rgba(242, 236, 225, 0.3);
}

/* --------------------------------------------------------------
   12. Index, archives, post rows
   -------------------------------------------------------------- */
.page-head {
  padding-block: clamp(64px, 8vw, 120px) clamp(42px, 5vw, 70px);
  border-bottom: 1px solid var(--ink);
}

.page-head__row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.8fr);
  gap: 44px;
  align-items: end;
  margin-top: clamp(28px, 4vw, 48px);
}

.page-title {
  font-family: var(--serif-text);
  font-size: clamp(3.4rem, 7.8vw, 8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.page-head__aside {
  padding-bottom: 10px;
}

.page-head__aside > p {
  max-width: 23em;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.page-head__count {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.post-list {
  padding-block: clamp(20px, 3vw, 36px) clamp(56px, 7vw, 96px);
}

.post-row {
  border-bottom: 1px solid var(--rule);
}

.post-row:first-child {
  border-top: 1px solid var(--ink);
}

.post-row__link {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto 20px;
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
  padding-block: clamp(22px, 2.8vw, 36px);
  transition: padding 0.4s var(--ease);
}

.post-row__link:hover {
  padding-left: 8px;
}

.post-row__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

.post-row__meta span:nth-child(2) {
  color: var(--accent);
}

.post-row__title {
  font-family: var(--serif-text);
  font-size: clamp(23px, 2.7vw, 38px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.035em;
  transition: color 0.3s ease;
}

.post-row__link:hover .post-row__title {
  color: var(--accent);
}

.post-row__excerpt {
  max-width: 42em;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.post-row__thumb {
  width: clamp(112px, 12vw, 180px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

.post-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.post-row__link:hover .post-row__thumb img {
  transform: scale(1.04);
}

.post-row__arrow {
  font-size: 15px;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.post-row__link:hover .post-row__arrow {
  opacity: 1;
  transform: none;
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding-block: 24px 4px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.pagination a {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

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

.pagination__next {
  text-align: right;
}

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

.empty-state {
  padding: 56px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.empty-state__big {
  font-family: var(--serif-text);
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--muted);
  font-size: 14px;
}

.empty-state .text-link {
  margin-top: 24px;
}

/* --------------------------------------------------------------
   13. Single & page
   -------------------------------------------------------------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.entry-head {
  padding-block: clamp(54px, 7vw, 100px) clamp(32px, 4vw, 50px);
}

.entry-title {
  max-width: 14em;
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--serif-text);
  font-size: clamp(2.7rem, 6.2vw, 6.4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.entry-head__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

.entry-head__foot a {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.entry-media {
  margin-top: 0;
}

.entry-media img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
}

.entry-media figcaption {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.entry-body {
  display: grid;
  grid-template-columns: 160px minmax(0, 760px);
  justify-content: center;
  gap: clamp(36px, 7vw, 100px);
  padding-block: clamp(52px, 7vw, 96px);
}

.entry-aside {
  position: sticky;
  top: 120px;
  align-self: start;
  padding-top: 8px;
}

.entry-aside__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-block: 10px;
  border-top: 1px solid var(--rule);
}

.entry-aside__item span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.entry-aside__item strong {
  font-family: var(--serif-text);
  font-size: 13px;
  font-weight: 400;
}

.entry-aside__mark {
  margin-top: 28px;
  font-size: 26px;
  color: var(--accent);
}

.entry-content {
  min-width: 0;
  font-family: var(--serif-text);
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 2.05;
  color: #272720;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content table,
.entry-content figure,
.entry-content pre {
  margin-block: 0 1.55em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.04em;
  scroll-margin-top: 120px;
}

.entry-content h2 {
  margin-block: 2.1em 0.7em;
  font-size: clamp(27px, 2.6vw, 36px);
}

.entry-content h3 {
  margin-block: 1.9em 0.6em;
  font-size: clamp(22px, 2vw, 27px);
}

.entry-content h4 {
  margin-block: 1.8em 0.5em;
  font-size: 20px;
}

.entry-content a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.25s ease;
}

.entry-content a:hover {
  color: var(--ink);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.2em;
}

.entry-content li {
  margin-bottom: 0.5em;
  padding-left: 0.2em;
}

.entry-content li::marker {
  color: var(--accent);
}

.entry-content blockquote,
.entry-content .wp-block-quote {
  margin-block: 2.2em;
  padding: 0 0 0 clamp(20px, 3vw, 34px);
  border-left: 2px solid var(--accent);
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.7;
  letter-spacing: -0.02em;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content blockquote cite,
.entry-content .wp-block-quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.entry-content img {
  width: auto;
  max-width: 100%;
}

.entry-content figure img {
  width: 100%;
}

.entry-content figcaption,
.entry-content .wp-block-image figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-align: left;
}

.entry-content hr {
  width: 100%;
  margin-block: 3em;
  border: 0;
  border-top: 1px solid var(--rule);
}

.entry-content code {
  padding: 0.15em 0.35em;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.75em;
}

.entry-content pre {
  overflow-x: auto;
  padding: 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
}

.entry-content pre code {
  padding: 0;
  background: transparent;
  font-size: inherit;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.entry-content th,
.entry-content td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.entry-content th {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.entry-content .alignwide {
  width: min(1100px, calc(100vw - 2 * var(--gutter)));
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content .alignfull {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-dek {
  margin-bottom: 1.8em !important;
  padding-bottom: 1.2em;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-links {
  clear: both;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 10px;
}

.page-links a,
.page-links > span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  margin-right: 4px;
  border: 1px solid var(--rule);
}

.entry-foot {
  padding-bottom: clamp(50px, 6vw, 80px);
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 28px;
}

.entry-tags > span {
  margin-right: 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.entry-tags a {
  padding: 4px 9px;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, color 0.25s ease;
}

.entry-tags a:hover {
  background: var(--ink);
  color: var(--paper);
}

.entry-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.entry-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px 24px 0;
}

.entry-nav__item + .entry-nav__item {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

.entry-nav__item span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.entry-nav__item a {
  font-family: var(--serif-text);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.5;
  transition: color 0.25s ease;
}

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

.entry-nav__item--next {
  text-align: right;
}

.entry-comments {
  padding-block: 50px;
}

.page-entry__head {
  padding-block: clamp(56px, 7vw, 104px) clamp(34px, 4vw, 54px);
}

.page-entry__dek {
  max-width: 36em;
  margin-top: 24px;
  font-family: var(--serif-text);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.9;
  color: var(--muted);
}

.page-entry .entry-body {
  padding-top: clamp(40px, 5vw, 68px);
}

/* Comments */
.comments-area {
  max-width: 760px;
  margin-inline: auto;
  padding-top: 30px;
  border-top: 1px solid var(--ink);
}

.comments-title,
.comment-reply-title {
  font-family: var(--serif-text);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.comment-list {
  list-style: none;
  margin-top: 24px;
}

.comment-list .children {
  list-style: none;
  margin-left: 28px;
  padding-left: 20px;
  border-left: 1px solid var(--rule);
}

.comment-body {
  padding-block: 20px;
  border-top: 1px solid var(--rule);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}

.comment-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.comment-author .fn {
  font-family: var(--serif-text);
  font-size: 14px;
  font-style: normal;
  color: var(--ink);
}

.comment-content {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.9;
}

.comment-content p {
  margin-bottom: 0.8em;
}

.reply {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9px;
}

.comment-form {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-field {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font-size: 14px;
  outline: none;
}

.comment-form textarea {
  min-height: 120px;
  border: 1px solid var(--rule);
  padding: 12px;
}

.comment-form .submit {
  justify-self: start;
  padding: 11px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  transition: background 0.25s ease, color 0.25s ease;
}

.comment-form .submit:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.comment-notes,
.logged-in-as,
.comment-form-cookies-consent {
  font-size: 11px;
  color: var(--muted);
}

.comment-form-cookies-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.comment-form-cookies-consent label {
  margin: 0;
}

/* --------------------------------------------------------------
   14. Search & 404
   -------------------------------------------------------------- */
.search-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  max-width: 540px;
}

.search-form label {
  flex: 1;
}

.search-submit {
  padding: 10px 0 11px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.search-submit:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lost {
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(48px, 6vw, 80px);
}

.lost__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  padding-block: clamp(30px, 6vw, 70px);
}

.lost__number {
  font-family: var(--serif);
  font-size: clamp(8rem, 25vw, 23rem);
  font-weight: 400;
  line-height: 0.7;
  letter-spacing: -0.09em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}

.lost__copy h2 {
  font-family: var(--serif-text);
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.lost__copy p {
  max-width: 24em;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.lost__copy .button {
  margin-top: 26px;
}

.lost__search {
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

/* --------------------------------------------------------------
   15. Reveal motion
   -------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal[data-delay="1"].is-visible {
  transition-delay: 0.08s;
}

.js .reveal[data-delay="2"].is-visible {
  transition-delay: 0.16s;
}

/* --------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------- */
@media (max-width: 1240px) {
  :root {
    --header-h: 86px;
  }

  .header-coord {
    display: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  }

  .contact__stamp {
    display: none;
  }
}

@media (max-width: 1024px) {
  .primary-nav,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header__aside {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(30px, 5vw, 48px);
    padding-block: 42px;
  }

  .hero__figure {
    width: min(100%, 480px);
    justify-self: end;
  }

  .hero__art {
    aspect-ratio: 5 / 4;
  }

  .hero__ink {
    object-position: center 38%;
  }

  .section-head__row,
  .page-head__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .section-dek {
    justify-self: start;
    max-width: 30em;
  }

  .work-grid {
    gap: 56px 24px;
  }

  .project:nth-child(1) {
    grid-column: 1 / 8;
  }

  .project:nth-child(2) {
    grid-column: 9 / 13;
    margin-top: 80px;
  }

  .project:nth-child(3) {
    grid-column: 1 / 6;
  }

  .project:nth-child(4) {
    grid-column: 7 / 13;
    margin-top: 60px;
  }

  .manifesto__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .manifesto__lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .manifesto__lead .text-link {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 6px;
  }

  .notes__layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(230px, 0.6fr);
    gap: 48px;
  }

  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .entry-body {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 44px;
  }

  .post-row__link {
    grid-template-columns: 100px minmax(0, 1fr) auto 20px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 76px;
    --gutter: clamp(18px, 5vw, 34px);
  }

  .hero__title {
    font-size: clamp(3.2rem, 12.5vw, 6.6rem);
  }

  .hero__top {
    align-items: flex-start;
  }

  .hero__edition {
    text-align: right;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 20px;
  }

  .project:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }

  .project:nth-child(even) {
    margin-top: 54px;
  }

  .project--1 .project__cover,
  .project--4 .project__cover {
    aspect-ratio: 4 / 5;
  }

  .project__view {
    display: none;
  }

  .manifesto__title {
    font-size: clamp(3.2rem, 12vw, 6rem);
  }

  .manifesto__lead {
    display: block;
  }

  .manifesto__lead p + p {
    margin-top: 1em;
  }

  .manifesto__foot {
    flex-wrap: wrap;
    gap: 10px 24px;
  }

  .notes__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .notes__aside {
    max-width: 420px;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer__col--note {
    grid-column: 1 / -1;
    padding-top: 8px;
  }

  .entry-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .entry-aside {
    display: none;
  }

  .post-row__link {
    grid-template-columns: 86px minmax(0, 1fr) 20px;
  }

  .post-row__thumb {
    display: none;
  }

  .lost__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .lost__number {
    line-height: 0.8;
  }
}

@media (max-width: 620px) {
  .site-header__inner {
    gap: 16px;
  }

  .brand__seal {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }

  .brand__name {
    font-size: 24px;
  }

  .brand__en {
    display: none;
  }

  .hero {
    padding-top: 20px;
  }

  .hero__eyebrow {
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .hero__edition {
    font-size: 8px;
  }

  .hero__grid {
    padding-block: 32px 26px;
  }

  .hero__title {
    font-size: clamp(3.05rem, 14.4vw, 4.4rem);
    letter-spacing: -0.075em;
  }

  .hero__intro {
    font-size: 15px;
    line-height: 1.85;
  }

  .hero__actions {
    gap: 18px;
  }

  .button {
    gap: 24px;
    min-height: 48px;
  }

  .hero__figure {
    width: 100%;
  }

  .hero__art {
    aspect-ratio: 1 / 1;
  }

  .hero__art-vertical {
    top: 74px;
  }

  .hero__bottom {
    font-size: 8px;
  }

  .marquee__track span {
    font-size: 9px;
    padding-block: 11px 12px;
  }

  .section {
    padding-block: 72px;
  }

  .section-title {
    font-size: clamp(2.5rem, 10.5vw, 3.4rem);
  }

  .section-head {
    gap: 20px;
  }

  .work-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    margin-top: 38px;
  }

  .work-grid--archive {
    gap: 44px;
  }

  .work-grid--archive .project:nth-child(even) {
    margin-top: 0;
  }

  .project:nth-child(even) {
    margin-top: 0;
  }

  .project__title {
    font-size: 25px;
  }

  .work__more {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .manifesto__top {
    flex-direction: column;
    gap: 12px;
  }

  .manifesto__aside {
    text-align: left;
  }

  .manifesto__title {
    margin-block: 42px 46px;
  }

  .manifesto__body {
    gap: 32px;
  }

  .principle {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }

  .manifesto__foot {
    margin-top: 44px;
  }

  .notes__layout {
    margin-top: 38px;
  }

  .note-row {
    grid-template-columns: 1fr 16px;
    gap: 5px 12px;
    padding-block: 18px;
  }

  .note-row__date,
  .note-row__cat {
    grid-row: 1;
  }

  .note-row__date {
    grid-column: 1;
  }

  .note-row__cat {
    display: none;
  }

  .note-row__title {
    grid-column: 1;
    grid-row: 2;
    font-size: 21px;
  }

  .note-row__arrow {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    opacity: 1;
    transform: none;
  }

  .contact {
    padding-block: 70px 86px;
  }

  .contact__title {
    font-size: clamp(2.1rem, 9.2vw, 2.8rem);
  }

  .contact__email {
    font-size: clamp(1.35rem, 7.2vw, 2.2rem);
  }

  .contact__details {
    gap: 24px;
  }

  .footer__statement {
    font-size: 32px;
  }

  .footer__nav {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__col--note {
    grid-column: auto;
  }

  .footer__wordmark {
    font-size: clamp(7rem, 35vw, 11rem);
  }

  .footer__legal {
    flex-direction: column;
    gap: 10px;
  }

  .filing {
    gap: 6px 14px;
  }

  .page-head {
    padding-block: 48px 38px;
  }

  .page-title {
    font-size: clamp(2.9rem, 13vw, 4.5rem);
  }

  .post-row__link {
    grid-template-columns: 1fr 16px;
    gap: 8px 12px;
    padding-block: 20px;
  }

  .post-row__meta {
    grid-column: 1;
    flex-direction: row;
    gap: 12px;
  }

  .post-row__main {
    grid-column: 1;
    grid-row: 2;
  }

  .post-row__title {
    font-size: 23px;
  }

  .post-row__excerpt {
    display: none;
  }

  .post-row__arrow {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    opacity: 1;
    transform: none;
  }

  .entry-head {
    padding-block: 44px 28px;
  }

  .entry-title {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }

  .entry-head__foot {
    gap: 10px 18px;
  }

  .entry-head__foot a {
    margin-left: 0;
  }

  .entry-body {
    padding-block: 36px 54px;
  }

  .entry-content {
    font-size: 17px;
    line-height: 2;
  }

  .entry-nav {
    grid-template-columns: 1fr;
  }

  .entry-nav__item + .entry-nav__item {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .entry-nav__item--next {
    text-align: left;
  }

  .lost {
    padding-block: 46px;
  }

  .lost__number {
    font-size: 36vw;
  }

  .comment-list .children {
    margin-left: 8px;
    padding-left: 12px;
  }
}

@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
