:root {
  --stone: #ddd8cc;
  --chalk: #f0ece2;
  --ink: #111411;
  --blue: #1c35cf;
  --oxide: #91301d;
  --moss: #36483a;
  --line: rgba(17, 20, 17, .3);
  --route-progress: 0%;
  --focus: #a52610;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --serif: "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--stone); font-family: var(--sans); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; z-index: 100; inset: 0 auto 0 0; width: 4px; height: var(--route-progress); background: var(--oxide); pointer-events: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; padding: 12px 16px; color: #fff; background: var(--blue); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { position: absolute; z-index: 30; inset: 0 0 auto; border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { position: fixed; background: rgba(221,216,204,.96); }
.admin-bar .site-header.is-scrolled { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; max-width: 1720px; min-height: 74px; margin: auto; padding: 0 clamp(18px, 3vw, 52px); }
.site-brand { display: flex; min-height: 44px; align-items: center; font: 700 17px/1 var(--mono); text-decoration: none; letter-spacing: -.08em; }
.site-brand span { color: var(--blue); }
.custom-logo-wrap img { max-height: 50px; width: auto; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { display: flex; min-height: 44px; align-items: center; font: 700 10px/1 var(--mono); text-decoration: none; text-transform: uppercase; letter-spacing: .1em; }
.site-nav a::before { content: "["; color: var(--blue); }
.site-nav a::after { content: "]"; color: var(--blue); }

.index-main { overflow: clip; }
.index-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(310px, .72fr); gap: clamp(30px, 6vw, 110px); min-height: 100svh; max-width: 1720px; margin: 0 auto; padding: 120px clamp(18px, 3vw, 52px) 46px; }
.index-hero::before { content: ""; position: absolute; z-index: -1; top: 18%; right: 46%; width: 34vw; height: 34vw; max-width: 580px; max-height: 580px; background: linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat, linear-gradient(90deg, var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.index-coordinate { position: absolute; font: 700 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; writing-mode: vertical-rl; }
.index-coordinate--top { top: 115px; left: 9px; }
.index-coordinate--bottom { right: 9px; bottom: 44px; }
.index-hero__title { align-self: center; }
.index-hero__title > p { margin: 0 0 clamp(35px, 6vw, 90px); color: var(--blue); font: 700 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.index-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(3.25rem, 8.7vw, 9.8rem); font-weight: 400; line-height: .72; letter-spacing: -.07em; }
.index-hero h1 span { display: block; white-space: nowrap; }
.index-hero h1 span:last-child { margin-left: clamp(0px, 4vw, 70px); font-style: italic; }
.index-hero__thesis { display: grid; grid-template-columns: 90px minmax(0, 410px); gap: 18px; margin-top: clamp(45px, 7vw, 110px); }
.index-hero__thesis b { color: var(--oxide); font: 700 13px/1 var(--mono); }
.index-hero__thesis p { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.6rem); line-height: 1.22; }
.index-portrait { align-self: center; margin: 0; }
.index-portrait__frame { position: relative; height: min(72vh, 820px); min-height: 510px; clip-path: polygon(0 0, 88% 0, 100% 9%, 100% 100%, 12% 100%, 0 91%); background: #26342b; }
.index-portrait picture, .index-portrait img { width: 100%; height: 100%; }
.index-portrait img { object-fit: cover; object-position: 50% 42%; filter: grayscale(.45) sepia(.12) saturate(.85) contrast(1.04) brightness(.92); }
.index-portrait__frame > span { position: absolute; right: 18px; bottom: -18px; color: rgba(238,234,224,.72); font: 400 160px/.8 var(--serif); }
.index-portrait figcaption { display: flex; justify-content: space-between; gap: 14px; padding-top: 13px; font: 700 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.index-enter { position: absolute; bottom: 46px; left: clamp(18px, 3vw, 52px); display: flex; justify-content: space-between; width: min(300px, 30vw); padding: 12px 0; border-top: 1px solid var(--ink); font: 700 10px/1 var(--mono); text-decoration: none; text-transform: uppercase; }
.index-enter b { font-size: 18px; transition: transform .2s ease; }
.index-enter:hover b { transform: translateY(5px); }

.index-map { max-width: 1720px; margin: auto; padding: clamp(100px, 14vw, 230px) clamp(18px, 3vw, 52px); border-top: 1px solid var(--line); }
.index-map__head { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(40px, 8vw, 150px); align-items: end; }
.index-map__head p, .index-note p:first-child, .index-contact header > p { margin: 0 0 12px; color: var(--blue); font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.index-map__head span { font-family: var(--serif); font-size: 18px; }
.index-map h2, .index-note h2, .index-contact h2 { margin: 0; font-family: var(--serif); font-size: clamp(3.3rem, 7.7vw, 8.5rem); font-weight: 400; line-height: .78; letter-spacing: -.06em; }
.index-board { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: clamp(80px, 10vw, 150px); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.index-board a { display: flex; flex-direction: column; min-width: 0; min-height: 220px; padding: 18px 14px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-decoration: none; transition: color .2s ease, background .2s ease; }
.index-board a:hover, .index-board a:focus-visible { color: var(--chalk); background: var(--blue); }
.index-board span { font: 700 10px/1 var(--mono); }
.index-board strong { margin: auto 0; overflow-wrap: anywhere; font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.55rem); font-weight: 400; line-height: 1; }
.index-board small { font: 700 8px/1.25 var(--mono); text-transform: uppercase; letter-spacing: .08em; }

.index-route { position: relative; max-width: 1720px; margin: auto; padding: 0 clamp(18px, 3vw, 52px) clamp(120px, 15vw, 250px); }
.route-axis { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.route-axis span { position: sticky; top: 50%; display: block; width: 17px; height: 17px; border: 4px solid var(--stone); border-radius: 50%; background: var(--oxide); transform: translate(-8px, -50%); }
.space { position: relative; display: flex; margin-bottom: clamp(65px, 10vw, 170px); }
.space:nth-of-type(even) { justify-content: flex-end; }
.space > a { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr) 90px; grid-template-rows: auto 1fr auto auto; gap: 18px 24px; width: min(74%, 980px); min-height: clamp(410px, 47vw, 690px); padding: clamp(30px, 4vw, 70px); overflow: hidden; color: var(--space-ink, var(--chalk)); background: var(--space-bg, var(--moss)); text-decoration: none; clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 44px 100%, 0 calc(100% - 44px)); }
.space:nth-of-type(3n+1) { --space-bg: var(--blue); --space-ink: var(--chalk); }
.space:nth-of-type(3n+2) { --space-bg: var(--oxide); --space-ink: var(--chalk); }
.space:nth-of-type(3n) { --space-bg: var(--moss); --space-ink: var(--chalk); }
.space__marker { font: 700 11px/1 var(--mono); }
.space__category { grid-column: 3; justify-self: end; font: 700 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.space__title { grid-column: 1 / 4; align-self: center; max-width: 90%; overflow-wrap: anywhere; font-family: var(--serif); font-size: clamp(3.5rem, 8vw, 9rem); font-weight: 400; line-height: .72; letter-spacing: -.07em; }
.space__lead { grid-column: 2 / 4; align-self: end; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 2rem); font-style: italic; }
.space__description { grid-column: 2; max-width: 400px; font-size: 13px; }
.space__door { grid-column: 3; justify-self: end; font: 700 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.space__door b { display: inline-block; margin-left: 8px; font-size: 18px; transition: transform .2s ease; }
.space > a:hover .space__door b { transform: translate(4px, -4px); }
.space__stamp { position: absolute; right: 14px; bottom: 14px; display: grid; width: 80px; height: 80px; place-items: center; border: 1px solid currentColor; font: 700 13px/1 var(--mono); opacity: .18; transform: rotate(-8deg); transition: transform .35s ease; }
.space > a:hover .space__stamp { transform: rotate(0); }

.index-note { display: grid; grid-template-columns: .3fr 1.15fr .55fr; gap: clamp(30px, 6vw, 110px); align-items: end; max-width: 1720px; margin: auto; padding: clamp(100px, 14vw, 230px) clamp(18px, 3vw, 52px); color: var(--chalk); background: var(--ink); }
.index-note__number { align-self: start; color: var(--oxide); font: 700 clamp(4rem, 9vw, 9rem)/.8 var(--mono); }
.index-note > p:last-child { margin: 0; color: #bbbdb3; font-family: var(--serif); font-size: clamp(1.05rem, 1.55vw, 1.4rem); }

.index-contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(60px, 10vw, 190px); max-width: 1720px; margin: auto; padding: clamp(100px, 14vw, 230px) clamp(18px, 3vw, 52px); }
.index-contact__panel { align-self: end; border-top: 1px solid var(--ink); }
.index-contact__panel a { display: grid; grid-template-columns: 90px 1fr 20px; gap: 16px; align-items: center; min-height: 96px; border-bottom: 1px solid var(--line); text-decoration: none; }
.index-contact__panel a:hover strong { color: var(--blue); }
.index-contact__panel span { font: 700 9px/1 var(--mono); text-transform: uppercase; }
.index-contact__panel strong { overflow-wrap: anywhere; font-family: var(--serif); font-size: clamp(1.15rem, 1.9vw, 1.8rem); font-weight: 400; }
.index-contact__panel b { font-size: 20px; }
.index-contact__panel > p { max-width: 440px; margin-top: 20px; color: #60635e; font: 11px/1.5 var(--mono); }

.site-footer { color: var(--chalk); background: var(--blue); }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 24px; max-width: 1720px; margin: auto; padding: 32px clamp(18px, 3vw, 52px); font: 9px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 14px; }

.content-shell { min-height: 75vh; max-width: 1000px; margin: 0 auto; padding: 150px 24px 100px; }
.archive-head { margin-bottom: 70px; }
.archive-head > p, .error-page > p { color: var(--blue); font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.archive-head h1, .entry-card h1, .error-page h1 { font: 400 clamp(3rem, 8vw, 7rem)/.82 var(--serif); letter-spacing: -.06em; }
.entry-card { padding: 44px 0; border-top: 1px solid var(--line); }
.entry-card h2 { font: 400 clamp(2rem, 5vw, 4rem)/.95 var(--serif); }
.entry-card h2 a { text-decoration: none; }
.entry-meta { color: #60635e; font: 11px/1 var(--mono); }
.entry-content { font-family: var(--serif); font-size: 18px; }
.entry-content img, .entry-content iframe { max-width: 100%; }
.entry-content pre { max-width: 100%; overflow: auto; padding: 20px; background: var(--chalk); }
.text-link { color: var(--blue); font-weight: 700; text-underline-offset: 5px; }
.search-form label { display: block; margin-bottom: 8px; font-family: var(--mono); }
.search-form div { display: flex; }
.search-form input { min-width: 0; flex: 1; padding: 14px; border: 1px solid var(--ink); background: transparent; font: inherit; }
.search-form button { padding: 14px 22px; border: 1px solid var(--ink); color: var(--chalk); background: var(--blue); font: inherit; }

.is-motion-ready [data-reveal] { opacity: 0; transform: translateY(28px) rotate(.3deg); }
.is-motion-ready [data-reveal].is-revealed { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.15,1); }

@media (max-width: 980px) {
  .index-board { grid-template-columns: repeat(4, 1fr); }
  .index-board a { min-height: 180px; }
  .space > a { width: 82%; }
  .index-note { grid-template-columns: .25fr 1fr; }
  .index-note > p:last-child { grid-column: 2; }
}
@media (max-width: 782px) { .admin-bar .site-header.is-scrolled { top: 46px; } }
@media (max-width: 720px) {
  .site-header__inner { min-height: 64px; }
  .site-nav { gap: 15px; }
  .index-hero { display: flex; flex-direction: column; min-height: auto; padding-top: 96px; }
  .index-hero::before { top: 18%; right: -22%; width: 90vw; height: 90vw; }
  .index-coordinate { display: none; }
  .index-hero__title { order: 1; padding: 35px 0 55px; }
  .index-hero h1 { font-size: clamp(2.75rem, 13.5vw, 4.8rem); }
  .index-hero h1 span:last-child { margin-left: 0; }
  .index-hero__thesis { grid-template-columns: 48px 1fr; }
  .index-portrait { order: 2; width: calc(100% + 36px); margin: 0 -18px; }
  .index-portrait__frame { height: min(126vw, 680px); min-height: 0; clip-path: polygon(0 0, 91% 0, 100% 7%, 100% 100%, 9% 100%, 0 93%); }
  .index-portrait figcaption { padding: 12px 18px 0; }
  .index-enter { position: static; order: 3; width: 100%; margin-top: 32px; }
  .index-map__head { display: block; }
  .index-map__head h2 { margin-top: 45px; }
  .index-board { grid-template-columns: repeat(2, 1fr); margin-top: 70px; }
  .index-board a { min-height: 145px; }
  .route-axis { left: 18px; }
  .index-route { padding-right: 18px; padding-left: 42px; }
  .space, .space:nth-of-type(even) { justify-content: stretch; }
  .space > a { grid-template-columns: 34px minmax(0, 1fr) 32px; width: 100%; min-height: 420px; padding: 28px 24px; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); }
  .space__title { font-size: clamp(3.1rem, 14vw, 5.4rem); }
  .space__lead { grid-column: 1 / 4; }
  .space__description { grid-column: 1 / 4; }
  .space__door { grid-column: 3; }
  .index-note { display: block; margin: 0; }
  .index-note__number { margin-bottom: 70px; }
  .index-note > p:last-child { margin-top: 50px; }
  .index-contact { display: block; }
  .index-contact__panel { margin-top: 80px; }
  .index-contact__panel a { grid-template-columns: 72px minmax(0, 1fr) 18px; gap: 11px; }
  .site-footer__inner { display: block; }
  .site-footer p + p, .site-footer nav { margin-top: 14px; }
}
@media (max-width: 360px) {
  .index-hero h1 { font-size: 2.65rem; }
  .index-board strong { font-size: .98rem; }
  .space__title { font-size: 2.85rem; }
  .index-contact__panel a { grid-template-columns: 1fr 18px; }
  .index-contact__panel span, .index-contact__panel strong { grid-column: 1; }
  .index-contact__panel b { grid-column: 2; grid-row: 1 / span 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .is-motion-ready [data-reveal] { opacity: 1; transform: none; }
}
@media (forced-colors: active) { :focus-visible { outline: 3px solid Highlight; } .space > a { border: 2px solid CanvasText; } }
@media print { .site-header, .site-footer, body::before, .route-axis { display: none; } .index-hero { min-height: auto; } .space > a { color: #000; background: #fff; border: 1px solid #000; } }
