:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --paper: #fffdf8;
  --note: #fffdf4;
  --ink: #1e2522;
  --muted: #5f6a63;
  --line: rgba(30, 37, 34, 0.14);
  --moss: #4f6f57;
  --blue: #6f8490;
  --amber: #c78942;
  --coral: #c9684b;
  --future-purple: #6814d8;
  --future-yellow: #ffb600;
  --future-purple-soft: rgba(104, 20, 216, 0.09);
  --future-yellow-soft: rgba(255, 182, 0, 0.16);
  --underline-color: rgba(199, 137, 66, 0.66);
  --underline-width: 4.8;
  --shadow: 0 28px 90px rgba(32, 40, 36, 0.14);
  --note-shadow: 0 18px 42px rgba(45, 38, 25, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(247, 246, 241, 0.98) 58%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 0;
}

.brand-block {
  display: grid;
  gap: 8px;
}

.site-date {
  color: var(--future-purple);
  font-size: 0.78rem;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 600;
}

.brand::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 7px;
  background: linear-gradient(90deg, var(--future-yellow), var(--future-purple));
  border-radius: 999px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  padding-top: 22px;
}

nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--future-yellow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 34px 0 76px;
}

.field-hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.78fr);
  min-height: min(760px, calc(100vh - 66px));
  padding: 18px 0 82px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8.5vw, 8.8rem);
  font-weight: 500;
  line-height: 0.9;
}

.mobile-break {
  display: none;
}

.lead {
  max-width: 620px;
  margin-top: 28px;
  color: #2f3a35;
  font-size: clamp(1.24rem, 2.2vw, 1.78rem);
  line-height: 1.38;
}

.draw-line {
  position: relative;
  display: inline-block;
  margin-bottom: -0.16em;
  padding-bottom: 0.16em;
  white-space: nowrap;
  z-index: 0;
  --underline-color: rgba(199, 137, 66, 0.66);
  --underline-width: 4.6;
}

.draw-line-green {
  --underline-color: rgba(79, 111, 87, 0.62);
}

.draw-line-coral {
  --underline-color: rgba(201, 104, 75, 0.72);
  --underline-width: 4.2;
}

.draw-underline {
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: -0.26em;
  z-index: -1;
  width: calc(100% + 0.08em);
  height: 0.54em;
  overflow: visible;
  pointer-events: none;
}

.draw-underline path {
  fill: none;
  stroke: var(--underline-color);
  stroke-width: var(--underline-width);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--underline-length, 100);
  stroke-dashoffset: 0;
}

.draw-line[data-drawing="true"] .draw-underline path {
  animation: svg-line-draw 980ms cubic-bezier(0.18, 0.86, 0.24, 1) both;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 650;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fffdf8;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(255, 182, 0, 0.42);
}

.button.secondary {
  background: rgba(255, 253, 248, 0.64);
  border-color: rgba(104, 20, 216, 0.18);
}

.portrait-card {
  position: relative;
  justify-self: center;
  width: min(386px, 92%);
  margin: 0;
  padding: 14px 14px 20px;
  background: var(--paper);
  border: 1px solid rgba(30, 37, 34, 0.1);
  border-radius: 1px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
  animation: note-settle 760ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.portrait-card::before {
  content: "";
  position: absolute;
  inset: -22px -20px auto auto;
  width: 128px;
  height: 66px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(104, 20, 216, 0.16), rgba(255, 182, 0, 0.16));
  transform: rotate(4deg);
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
}

.portrait-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.78rem;
}

.portrait-card p {
  position: absolute;
  left: -72px;
  bottom: 74px;
  width: 190px;
  padding: 18px 19px;
  background: var(--note);
  border: 1px solid rgba(123, 95, 47, 0.13);
  box-shadow: var(--note-shadow);
  color: #29231c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  line-height: 1.04;
  transform: rotate(-3deg);
}

.about-snapshot,
.selected-work,
.statement,
.themes,
.values,
.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.about-snapshot {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(28px, 7vw, 96px);
  padding: 70px 0 76px;
  border-top: 3px solid transparent;
  border-bottom: 1px solid var(--line);
  border-image: linear-gradient(90deg, var(--future-purple), var(--future-yellow), rgba(30, 37, 34, 0.12)) 1;
}

.about-snapshot p:not(.section-kicker) {
  color: #303a35;
  font-size: clamp(1.15rem, 1.65vw, 1.42rem);
  line-height: 1.58;
}

.selected-work {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(28px, 7vw, 96px);
  padding: 88px 0 96px;
}

.work-timeline {
  border-top: 1px solid rgba(104, 20, 216, 0.22);
}

.work-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  --work-accent: var(--future-purple);
}

.work-timeline article::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 28px;
  width: 7px;
  height: 7px;
  background: var(--work-accent);
  border-radius: 999px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--work-accent) 13%, transparent);
}

.work-timeline article:nth-child(2) {
  --work-accent: var(--future-yellow);
}

.work-timeline article:nth-child(3) {
  --work-accent: var(--moss);
}

.work-timeline time {
  color: var(--work-accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.work-timeline h3 {
  font-size: 1.05rem;
}

.work-timeline p {
  color: var(--muted);
  line-height: 1.5;
}

.statement {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(28px, 7vw, 96px);
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.15rem);
  font-weight: 500;
  line-height: 1;
}

.statement-copy {
  display: grid;
  gap: 22px;
  color: #303a35;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.62;
}

.themes {
  padding: 30px 0 96px;
}

.themes h2,
.values h2 {
  margin-bottom: 30px;
}

.themes ul {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.themes li {
  display: flex;
  align-items: end;
  min-height: 138px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.75);
  color: #27312d;
  font-weight: 650;
  line-height: 1.15;
}

.themes li:nth-child(2n) {
  background: rgba(235, 239, 231, 0.7);
}

.themes li:nth-child(3n) {
  background: rgba(236, 240, 242, 0.8);
}

.values {
  padding: 0 0 104px;
}

.value-grid,
.work-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.value-grid article,
.work-list article {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.54);
}

.value-grid article::before,
.work-list article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--card-accent, var(--future-yellow));
}

.value-grid article:nth-child(1),
.work-list article:nth-child(1) {
  --card-accent: var(--future-yellow);
}

.value-grid article:nth-child(2),
.work-list article:nth-child(2) {
  --card-accent: var(--future-purple);
}

.value-grid article:nth-child(3),
.work-list article:nth-child(3) {
  --card-accent: var(--moss);
}

.value-grid article:nth-child(4),
.work-list article:nth-child(4) {
  --card-accent: var(--coral);
}

h3,
.work-list h2 {
  color: #202923;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
}

.value-grid p,
.work-list p,
.empty-writing p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.page {
  min-height: calc(100vh - 160px);
  padding: 96px 0 112px;
}

.page-hero {
  max-width: 780px;
  padding-bottom: 58px;
}

.page-hero h1 {
  font-size: clamp(4rem, 9vw, 8.2rem);
}

.page-hero p {
  margin-top: 24px;
  color: #303a35;
  font-size: clamp(1.14rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.work-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.empty-writing {
  max-width: 640px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.post-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.post-list article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 46px);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.post-list time,
.article-header time {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-list time {
  grid-row: 1 / span 2;
}

.post-list h2 {
  grid-column: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 2.05rem);
  line-height: 1.12;
}

.post-list h2 a {
  border-bottom: 1px solid transparent;
}

.post-list h2 a:hover {
  border-color: var(--amber);
}

.post-list p {
  grid-column: 2;
  max-width: 700px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.writing-series {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 86px);
  margin-bottom: 70px;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--future-purple);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.writing-series h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
}

.writing-series p:not(.section-kicker) {
  max-width: 520px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.writing-series ol {
  display: grid;
  gap: 1px;
  align-self: start;
  margin: 0;
  padding: 0;
  counter-reset: series;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.writing-series li {
  counter-increment: series;
  background: rgba(255, 253, 248, 0.66);
}

.writing-series a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  min-height: 62px;
  padding: 16px 18px;
  line-height: 1.25;
}

.writing-series a::before {
  content: counter(series, decimal-leading-zero);
  color: var(--muted);
  font-size: 0.78rem;
}

.article-page {
  display: grid;
  justify-items: center;
}

.article-shell {
  width: min(760px, 100%);
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.article-header {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin-top: 16px;
  font-size: clamp(2.6rem, 5.8vw, 5.3rem);
  line-height: 0.98;
}

.article-header p {
  margin-top: 24px;
  color: #303a35;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.5;
}

.article-cover {
  width: min(980px, calc(100vw - 40px));
  margin: 42px 0 0 50%;
  transform: translateX(-50%);
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(30, 37, 34, 0.1);
  background: #fff;
}

.article-content {
  padding-top: 44px;
  color: #28322e;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  line-height: 1.75;
}

.article-content p,
.article-content ul {
  margin: 0 0 24px;
}

.article-figure {
  width: min(980px, calc(100vw - 40px));
  margin: 42px 0 16px 50%;
  transform: translateX(-50%);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(30, 37, 34, 0.1);
  background: #fff;
}

.article-figure + p {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 44px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-weight: 500;
}

.article-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.article-content h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

.article-content ul {
  padding-left: 1.2rem;
}

.article-content li + li {
  margin-top: 10px;
}

.article-content a,
.source-link a {
  color: var(--ink);
  border-bottom: 1px solid var(--amber);
}

.source-link {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 46px;
  border: 1px solid var(--line);
  background: var(--line);
}

.article-nav > * {
  min-height: 112px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.66);
}

.article-nav a {
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--ink);
  line-height: 1.25;
}

.article-nav a span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .field-hero {
    gap: 54px;
  }

  .portrait-card {
    justify-self: center;
  }

  .about-snapshot,
  .selected-work,
  .statement {
    grid-template-columns: 1fr;
  }

  .work-timeline article {
    grid-template-columns: 118px minmax(0, 0.8fr) minmax(0, 1fr);
  }

  .themes ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .value-grid,
  .work-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 28px, 1180px);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
  }

  .brand-block {
    gap: 6px;
  }

  nav {
    gap: 18px;
    font-size: 0.84rem;
    padding-top: 0;
  }

  .hero,
  .statement,
  .themes,
  .values,
  .about-snapshot,
  .selected-work,
  .page,
  .site-footer {
    width: calc(100vw - 56px);
    max-width: 1180px;
  }

  h1 {
    font-size: clamp(3rem, 14.5vw, 4.25rem);
  }

  .lead {
    font-size: 1rem;
    max-width: 31ch;
  }

  .mobile-break {
    display: block;
  }

  .hero-copy,
  .about-snapshot > *,
  .selected-work > * {
    width: 100%;
    max-width: calc(100vw - 56px);
    min-width: 0;
  }

  .draw-line {
    white-space: nowrap;
  }

  .portrait-card {
    width: min(260px, calc(100vw - 72px));
    justify-self: center;
    transform: rotate(0.8deg);
  }

  .portrait-card p {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin-top: 14px;
    transform: rotate(-1.2deg);
  }

  .statement,
  .about-snapshot,
  .selected-work,
  .page {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .about-snapshot,
  .selected-work {
    gap: 28px;
  }

  .about-snapshot p:not(.section-kicker) {
    font-size: 1.08rem;
    max-width: 31ch;
  }

  h2 {
    font-size: clamp(2rem, 8.8vw, 2.75rem);
    overflow-wrap: break-word;
  }

  .selected-work h2 {
    max-width: 12ch;
  }

  .work-timeline article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .themes ul,
  .value-grid,
  .work-list,
  .post-list article,
  .writing-series,
  .article-nav {
    grid-template-columns: 1fr;
  }

  .post-list article {
    gap: 10px;
    padding: 26px 0;
  }

  .post-list time,
  .post-list h2,
  .post-list p {
    grid-column: auto;
    grid-row: auto;
  }

  .writing-series {
    margin-bottom: 50px;
  }

  .article-figure {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .themes li,
  .value-grid article,
  .work-list article {
    min-height: 128px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@keyframes note-settle {
  from {
    opacity: 0;
    transform: translateY(12px) rotate(4deg);
  }

  to {
    opacity: 1;
    transform: rotate(2.2deg);
  }
}

@keyframes svg-line-draw {
  0% {
    stroke-dashoffset: var(--underline-length);
  }

  32% {
    stroke-dashoffset: calc(var(--underline-length) * 0.58);
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.motion-preview) *,
  body:not(.motion-preview) *::before,
  body:not(.motion-preview) *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
