:root {
  --ink: #201914;
  --ink-soft: #3c332a;
  --muted: #776a5f;
  --paper: #f2e5cf;
  --paper-strong: #fbf2df;
  --paper-warm: #e8d4ad;
  --green: #52684c;
  --green-dark: #334733;
  --orange: #a66335;
  --navy: #152632;
  --line: rgba(32, 25, 20, .16);
  --line-strong: rgba(32, 25, 20, .28);
  --shadow: 0 26px 90px rgba(43, 31, 18, .16);
  --radius: 28px;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 8% 0%, rgba(255,255,255,.54), transparent 24rem),
    radial-gradient(circle at 95% 10%, rgba(82,104,76,.16), transparent 22rem),
    linear-gradient(135deg, #ead7b6, #f7eedc 44%, #dcc59b);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image:
    linear-gradient(90deg, rgba(85,62,31,.08) 1px, transparent 1px),
    linear-gradient(rgba(85,62,31,.055) 1px, transparent 1px);
  background-size: 40px 40px;
}
a { color: inherit; }

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 34px) 0 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: clamp(58px, 6vw, 76px);
  height: clamp(58px, 6vw, 76px);
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid rgba(82,104,76,.42);
  box-shadow: 0 10px 28px rgba(32,25,20,.14);
  filter: saturate(.92);
  flex: 0 0 auto;
}
.brand-text { display: grid; gap: 2px; min-width: 0; }
.brand-text strong {
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1;
  letter-spacing: -.04em;
}
.brand-text em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  letter-spacing: .02em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(251,242,223,.54);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 12px 34px rgba(32,25,20,.07);
}
.nav-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-separator {
  width: 1px;
  height: 22px;
  background: rgba(32,25,20,.18);
}
.site-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 999px;
}
.site-nav a:hover { background: rgba(82,104,76,.12); }
.site-nav .icon-link {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: rgba(32,25,20,.055);
  border: 1px solid rgba(32,25,20,.08);
}
.icon-link svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}
.icon-link[title="LinkedIn"] svg { width: 14px; height: 14px; }
.icon-link[title="GitHub"] svg { width: 16px; height: 16px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  padding: clamp(38px, 5.5vw, 72px) 0 clamp(42px, 6vw, 78px);
}
.hero-main {
  position: relative;
  background:
    linear-gradient(135deg, rgba(251,242,223,.94), rgba(242,229,207,.86)),
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.76), transparent 16rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 58px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: linear-gradient(90deg, var(--green), var(--orange), rgba(21,38,50,.72));
  opacity: .86;
}
.hero-main::after {
  content: "";
  position: absolute;
  right: 34px;
  top: 30px;
  width: 78px;
  height: 24px;
  background: rgba(169,99,53,.18);
  border: 1px solid rgba(169,99,53,.08);
  transform: rotate(2deg);
  border-radius: 4px;
}
.hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 70px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 760;
}
blockquote {
  margin: 0;
  max-width: 740px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.18;
  letter-spacing: -.025em;
}
blockquote p { margin: 0 0 16px; }
blockquote p:last-of-type { margin-bottom: 0; }
blockquote footer {
  margin-top: 24px;
  font-family: var(--sans);
  color: var(--muted);
  font-size: 15px;
  letter-spacing: .01em;
}
.hero-card {
  background:
    linear-gradient(rgba(21,38,50,.2), rgba(21,38,50,.72)),
    url('./assets/clawcat-strip.png');
  background-size: cover;
  background-position: center;
  color: #f7edd9;
  border: 1px solid rgba(32,25,20,.18);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-label,
.small-note {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 9px;
  opacity: .9;
}
.hero-card p {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.panel,
.revision-panel,
.notes-panel {
  border-top: 1px solid var(--line);
  padding: clamp(42px, 6vw, 72px) 0;
}
.facts-panel {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.section-heading h2,
.revision-panel h2,
.notes-panel h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.section-heading p:not(.eyebrow),
.new-page-card p,
.notes-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.45;
}
.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.fact-list li {
  background: rgba(251,242,223,.56);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 17px;
  font-weight: 680;
  color: var(--ink-soft);
  box-shadow: 0 10px 24px rgba(32,25,20,.045);
}
.fact-list a {
  color: var(--green-dark);
  text-decoration-color: rgba(51,71,51,.35);
  text-underline-offset: 3px;
}
.fact-list li:last-child {
  border-color: rgba(82,104,76,.34);
  background: rgba(82,104,76,.1);
}

.revision-panel {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 18px;
  align-items: stretch;
}
.old-page-card,
.new-page-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 34px);
}
.old-page-card {
  background: rgba(251,242,223,.36);
  color: rgba(32,25,20,.66);
}
.old-copy {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.18;
  letter-spacing: -.03em;
}
.new-page-card {
  position: relative;
  background: rgba(251,242,223,.72);
  box-shadow: 9px 10px 0 rgba(82,104,76,.09);
}
.new-page-card .small-note {
  margin-top: 24px;
  color: var(--green-dark);
  transform: rotate(-1deg);
}

.notes-panel {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.notes-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(82,104,76,.42), rgba(169,99,53,.38), transparent);
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.note-grid article {
  background: rgba(251,242,223,.52);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.note-grid h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.note-grid p { margin: 0; color: var(--ink-soft); }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 30px 0 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-separator {
  width: 1px;
  height: 14px;
  background: rgba(32,25,20,.2);
}
.site-footer a {
  color: var(--ink-soft);
  text-decoration-color: rgba(60,51,42,.28);
  text-underline-offset: 3px;
}
.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.site-footer .icon-link {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(32,25,20,.045);
  border: 1px solid rgba(32,25,20,.08);
}
.site-footer .icon-link svg {
  width: 13px;
  height: 13px;
  display: block;
  fill: currentColor;
}
.site-footer .icon-link[title="GitHub"] svg { width: 14px; height: 14px; }

@media (max-width: 840px) {
  .site-shell { width: min(100% - 24px, 1120px); }
  .site-header { align-items: flex-start; }
  .brand img { border-radius: 17px; }
  .brand-text em { display: none; }
  .site-nav { gap: 6px; padding: 4px; }
  .site-nav a { padding: 7px 9px; font-size: 12px; }
  .nav-separator { height: 20px; }
  .site-nav .icon-link { width: 29px; height: 29px; }
  .hero,
  .facts-panel,
  .revision-panel,
  .notes-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero-card { min-height: 180px; }
  .note-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header { flex-direction: column; }
  .site-nav { width: 100%; justify-content: space-between; }
  .project-links { overflow-x: auto; scrollbar-width: none; }
  .project-links::-webkit-scrollbar { display: none; }
  .hero-main { padding: 28px 20px; border-radius: 22px; }
  .hero-main::after { display: none; }
  .hero h1 { font-size: clamp(36px, 12vw, 50px); }
  blockquote { font-size: 20px; }
  .hero-card { border-radius: 22px; }
}


.cookie-notice {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(340px, calc(100% - 28px));
  padding: 10px 10px 10px 14px;
  color: var(--ink-soft);
  background: rgba(251, 242, 223, .96);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 16px 44px rgba(32, 25, 20, .16);
  transform: none;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p {
  margin: 0;
  flex: 1 1 auto;
  font-size: 12px;
  line-height: 1.25;
}
.cookie-notice button {
  flex: 0 0 auto;
  min-width: 48px;
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #f7edd9;
  background: var(--green-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.cookie-notice button:hover { background: var(--navy); }

@media (max-width: 520px) {
  .cookie-notice {
    left: 50%;
    right: auto;
    align-items: flex-start;
    border-radius: 18px;
    transform: translateX(-50%);
  }
}
