:root {
  --ink: #242420;
  --muted: #686a61;
  --soft: #f8f5ee;
  --paper: #fffdf8;
  --line: #e7e0d1;
  --green: #465f3f;
  --green-2: #6f8468;
  --terracotta: #b8693d;
  --peach: #f1d4bf;
  --blue: #2878b8;
  --shadow: 0 24px 70px rgba(63, 55, 41, 0.12);
  --sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 0 72px;
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(231, 224, 209, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand a {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 52px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 30px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 2px;
  background: var(--green);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1fr);
  gap: 70px;
  align-items: center;
  max-width: 1280px;
  min-height: 720px;
  margin: 0 auto;
  padding: 38px 44px 54px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 26px;
  color: var(--green);
  font-weight: 700;
}

.eyebrow::after {
  display: block;
  width: 84px;
  height: 9px;
  margin-top: 3px;
  background: linear-gradient(90deg, rgba(70, 95, 63, 0.9), rgba(184, 105, 61, 0));
  border-radius: 999px;
  content: "";
}

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

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(42px, 4.2vw, 58px);
  font-weight: 700;
}

h1 span {
  display: inline-block;
  font-family: var(--serif);
}

.hero-line {
  max-width: 690px;
  margin-bottom: 30px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.35;
}

.hero-line::first-letter,
.hero-line strong {
  color: var(--terracotta);
}

.hero-text {
  max-width: 610px;
  margin-bottom: 14px;
  color: #55564f;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 36px 0 52px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border: 1px solid var(--green);
  border-radius: 8px;
  font-weight: 700;
  gap: 9px;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding: 0;
  margin: 0;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
}

.quick-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
  min-height: 610px;
}

.portrait {
  width: min(520px, 80%);
  height: 580px;
  object-fit: cover;
  margin-left: -22px;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.paper-note,
.journey-card,
.metric-card {
  position: absolute;
  background: rgba(255, 251, 242, 0.95);
  border: 1px solid rgba(220, 204, 174, 0.85);
  box-shadow: 0 18px 44px rgba(76, 64, 44, 0.16);
}

.paper-note {
  padding: 22px 24px;
}

.problem-note {
  top: 34px;
  right: 0;
  width: 240px;
  transform: rotate(3deg);
}

.experiment-note {
  left: 0;
  bottom: 72px;
  width: 236px;
  transform: rotate(-2deg);
}

.note-title {
  margin-bottom: 10px;
  color: var(--terracotta);
  font-family: var(--serif);
  font-weight: 700;
}

.paper-note ul {
  padding-left: 18px;
  margin: 14px 0 0;
}

.paper-note p,
.paper-note li {
  margin-bottom: 6px;
  color: #4d4e48;
  font-size: 14px;
}

.journey-card {
  left: 110px;
  right: 0;
  bottom: 176px;
  padding: 24px 28px 34px;
  transform: rotate(-4deg);
}

.journey-head,
.journey-steps {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.journey-head {
  margin-bottom: 18px;
  font-weight: 700;
}

.journey-steps {
  color: var(--muted);
  font-size: 13px;
}

.journey-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}

.journey-line::before {
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green-2);
  content: "";
}

.journey-line i {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  background: #fffdf8;
  border: 4px solid var(--terracotta);
  border-radius: 999px;
}

.journey-line i:nth-child(2),
.journey-line i:nth-child(4) {
  border-color: var(--green);
}

.metric-card {
  right: 22px;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 430px;
  padding: 22px 26px;
  gap: 18px;
}

.metric-card p {
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-weight: 700;
}

.metric-card div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.metric-card strong {
  display: block;
  color: var(--green);
  font-size: 28px;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
}

.section-band {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process,
.experience,
.cases,
.notes-preview,
.notes-board,
.notes-hero {
  padding: 70px 72px;
}

.section-heading {
  max-width: 1280px;
  margin: 0 auto 44px;
}

.section-heading h2,
.notes-hero h1 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 44px);
}

.section-heading p {
  max-width: 620px;
  color: var(--muted);
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link,
.case-copy a {
  display: inline-flex;
  align-items: center;
  color: var(--green);
  font-weight: 700;
  gap: 6px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1280px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  gap: 34px;
}

.process-list li {
  position: relative;
  min-width: 0;
  text-align: center;
}

.process-list li:not(:last-child)::after {
  position: absolute;
  top: 38px;
  right: -30px;
  color: #b9aa93;
  content: "---->";
}

.process-list i {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 42px;
}

.process-list strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 20px;
}

.process-list span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.case-list {
  max-width: 1280px;
  margin: 0 auto;
}

.case-item {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.case-item:last-child {
  border-bottom: 1px solid var(--line);
}

.case-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag-row span,
.channel-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  color: #615b4e;
  background: #f1eadf;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.case-copy h3 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 30px;
}

.case-copy p {
  margin-bottom: 8px;
  color: #4e504a;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  border-top: 2px solid #b9b19f;
}

.timeline article {
  position: relative;
  padding: 34px 28px 0 0;
  border-left: 1px dashed #cbbfa9;
}

.timeline article::before {
  position: absolute;
  top: -8px;
  left: -7px;
  width: 14px;
  height: 14px;
  background: #c1b9a7;
  border-radius: 999px;
  content: "";
}

.timeline span {
  color: var(--muted);
  font-weight: 600;
}

.timeline h3 {
  margin: 10px 0 2px;
  font-size: 20px;
}

.timeline p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.notes-preview {
  background: linear-gradient(180deg, #fffdf8 0%, #fff8ed 100%);
}

.channel-chips,
.note-grid {
  max-width: 1280px;
  margin: 0 auto;
}

.channel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.note-card img,
.note-list-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.note-card h3 {
  margin: 20px 0 10px;
  font-family: var(--serif);
  font-size: 24px;
}

.note-card p {
  color: var(--muted);
}

.note-card span {
  color: #8a8171;
  font-size: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  padding: 46px 72px;
  background: #fffefb;
  border-top: 1px solid var(--line);
}

.footer-brand p {
  margin: 10px 0 8px;
  color: var(--muted);
}

.footer-brand span {
  color: #8a8171;
  font-size: 14px;
}

.footer-contacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  font-style: normal;
}

.footer-contacts a {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.footer-contacts i {
  flex: 0 0 auto;
  color: #596057;
  font-size: 32px;
}

.footer-contacts i.linkedin {
  color: #0a66c2;
}

.footer-contacts i.github {
  color: #181717;
}

.footer-contacts i.redbook {
  color: #ff2442;
}

.footer-contacts span {
  display: grid;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.footer-contacts strong {
  color: var(--ink);
  font-size: 14px;
}

.notes-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 86px;
}

.notes-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.write-entry {
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.write-entry i {
  color: var(--green);
  font-size: 34px;
}

.write-entry h2 {
  margin: 12px 0 8px;
  font-size: 22px;
}

code {
  padding: 2px 6px;
  background: #efe5d5;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.notes-board {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  gap: 46px;
  padding-top: 24px;
}

.notes-sidebar {
  position: sticky;
  top: 116px;
  align-self: start;
}

.notes-sidebar h2 {
  margin-bottom: 18px;
  font-family: var(--serif);
}

.filter-list {
  display: grid;
  gap: 8px;
}

.filter-list button {
  width: 100%;
  padding: 12px 14px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.filter-list button:hover,
.filter-list button.active {
  color: var(--green);
  background: var(--soft);
  border-color: var(--line);
}

.compact {
  margin-bottom: 24px;
}

.search-wrap {
  position: relative;
  width: min(360px, 100%);
}

.search-wrap i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #9b9384;
  transform: translateY(-50%);
}

.search-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.search-wrap input:focus {
  border-color: var(--green-2);
}

.notes-list {
  display: grid;
  gap: 22px;
}

.note-list-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.note-list-card h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 25px;
}

.note-list-card p {
  color: var(--muted);
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #8a8171;
  font-size: 14px;
}

.note-list-card button,
.reader-close {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--green);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  gap: 6px;
}

.markdown-reader {
  margin-top: 34px;
  padding: 34px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.reader-close {
  margin-bottom: 24px;
}

.markdown-reader h1,
.markdown-reader h2,
.markdown-reader h3 {
  font-family: var(--serif);
}

.markdown-reader h1 {
  font-size: 36px;
}

.markdown-reader p,
.markdown-reader li {
  color: #50514b;
}

.markdown-reader blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  color: var(--green);
  background: #f2eadc;
  border-left: 4px solid var(--terracotta);
}

@media (max-width: 1100px) {
  .site-header,
  .process,
  .experience,
  .cases,
  .notes-preview,
  .notes-board,
  .notes-hero,
  .site-footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero-actions {
    margin-bottom: 42px;
  }

  .portrait {
    margin-left: 12%;
  }

  .process-list,
  .timeline,
  .note-grid,
  .footer-contacts {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list li:not(:last-child)::after {
    content: "";
  }

  .site-footer,
  .notes-hero,
  .notes-board {
    grid-template-columns: 1fr;
  }

  .notes-sidebar {
    position: static;
  }

  .filter-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
    padding: 0 20px;
  }

  .brand,
  .footer-brand a {
    font-size: 24px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--green);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 20px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    gap: 8px;
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    padding: 10px 0;
  }

  .site-nav a::after {
    bottom: 4px;
  }

  .hero,
  .process,
  .experience,
  .cases,
  .notes-preview,
  .notes-board,
  .notes-hero,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-line {
    font-size: 34px;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 700px;
  }

  .portrait {
    width: 82%;
    height: 500px;
    margin-left: auto;
  }

  .problem-note {
    width: 210px;
    top: 16px;
  }

  .journey-card {
    left: 0;
    bottom: 210px;
  }

  .experiment-note {
    bottom: 78px;
  }

  .metric-card {
    left: 18px;
    right: 0;
    bottom: -38px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .row-heading {
    align-items: start;
    flex-direction: column;
  }

  .process-list,
  .timeline,
  .note-grid,
  .footer-contacts,
  .filter-list {
    grid-template-columns: 1fr;
  }

  .case-item,
  .note-list-card {
    grid-template-columns: 1fr;
  }

  .case-item {
    gap: 22px;
  }

  .case-copy h3 {
    font-size: 25px;
  }

  .timeline {
    border-top: 0;
  }

  .timeline article {
    padding: 24px 0 12px 24px;
    border-left: 1px solid #cbbfa9;
  }

  .footer-contacts {
    gap: 18px;
  }

  .markdown-reader {
    padding: 24px 18px;
  }
}
