:root {
  --ink: #132d2f;
  --ink-soft: #3e5756;
  --paper: #f4f0e7;
  --paper-deep: #e8e1d3;
  --orange: #e85f2e;
  --lime: #cfe55c;
  --mint: #9bcfc2;
  --line: rgba(19, 45, 47, 0.2);
  --white: #fffdf8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(19,45,47,.095) 1px, transparent 1.2px) 0 0 / 24px 24px,
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }

::selection { background: var(--lime); color: var(--ink); }

.site-shell { min-height: 100vh; overflow: hidden; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -1px;
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(244,240,231,.55);
}

.brand-copy { display: grid; line-height: 1.05; gap: 5px; }
.brand-copy strong { font-size: 15px; letter-spacing: .02em; }
.brand-copy small { color: var(--ink-soft); font-size: 11px; letter-spacing: .22em; }

.site-nav { display: flex; gap: clamp(18px, 3vw, 38px); margin-left: auto; }
.site-nav a { position: relative; padding: 10px 0; font-size: 13px; font-weight: 650; color: var(--ink-soft); }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 0; height: 2px; background: var(--orange); transition: width .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { width: 100%; }

.domain-badge {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
}

main, .site-footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.hero {
  min-height: 680px;
  padding: 82px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .75fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.eyebrow, .section-index {
  margin: 0 0 22px;
  font: 750 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
  color: var(--orange);
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }

.hero h1 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(50px, 6.4vw, 88px);
  line-height: 1.05;
  letter-spacing: -.07em;
  font-weight: 820;
}

.hero h1 span { display: inline-block; color: var(--orange); position: relative; }
.hero h1 span::after { content: ""; position: absolute; left: 2%; right: -2%; bottom: 1px; height: 9px; background: var(--lime); z-index: -1; transform: rotate(-1deg); }

.hero-intro { max-width: 630px; margin: 32px 0 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.9; color: var(--ink-soft); }
.hero-intro strong { color: var(--ink); }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.button { min-height: 48px; padding: 0 20px; display: inline-flex; justify-content: center; align-items: center; gap: 24px; border-radius: 4px; font-size: 13px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); box-shadow: 5px 5px 0 var(--orange); }
.button-primary:hover { box-shadow: 3px 3px 0 var(--orange); }
.button-quiet { border: 1px solid var(--line); }

.hero-board {
  position: relative;
  min-height: 456px;
  padding: 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 7px;
  transform: rotate(1.5deg);
  box-shadow: 18px 18px 0 var(--mint);
  overflow: hidden;
}

.hero-board::before { content: ""; position: absolute; inset: 0; opacity: .22; background: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px); background-size: 36px 36px; }
.board-topline, .board-meta { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; font: 650 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(207,229,92,.13); }

.board-center { position: relative; height: 265px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(244,240,231,.28); border-radius: 50%; }
.orbit-one { width: 210px; height: 210px; }
.orbit-two { width: 145px; height: 145px; border-color: var(--orange); border-style: dashed; animation: turn 28s linear infinite; }
.monogram { position: relative; z-index: 2; font-size: 62px; font-weight: 850; letter-spacing: -.1em; }
.monogram span { color: var(--orange); margin: 0 4px; font-weight: 400; }
.board-dot { position: absolute; width: 13px; height: 13px; background: var(--lime); border: 4px solid var(--ink); border-radius: 50%; }
.dot-one { top: 28px; right: 23%; }
.dot-two { bottom: 34px; left: 24%; background: var(--orange); }
.board-note { position: relative; z-index: 2; padding: 17px 18px; border: 1px solid rgba(244,240,231,.2); background: rgba(244,240,231,.06); backdrop-filter: blur(5px); }
.board-note p { margin: 0 0 8px; color: var(--mint); font: 650 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.board-note strong { font-size: 17px; }
.board-meta { margin-top: 20px; opacity: .55; }

.signal-strip {
  width: calc(100% + 80px);
  margin-left: -40px;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 38px);
  background: var(--orange);
  color: var(--white);
  transform: rotate(-1deg);
  font: 750 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  white-space: nowrap;
}
.signal-strip i { color: var(--lime); font-style: normal; }

.section { padding: 118px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 50px; }
.section-heading h2, .tools-intro h2, .about-copy h2 { margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: 1.08; letter-spacing: -.055em; }
.section-heading > p { max-width: 470px; margin: 0 0 5px auto; color: var(--ink-soft); line-height: 1.8; }

.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.note-card { min-height: 330px; padding: 27px; position: relative; display: flex; flex-direction: column; background: var(--paper); transition: background .2s ease, transform .2s ease; }
.note-card:hover { background: var(--white); transform: translateY(-5px); z-index: 2; }
.card-number { font: 750 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--orange); }
.note-body { margin-top: auto; }
.note-body h3 { margin: 0 0 16px; font-size: 25px; letter-spacing: -.03em; }
.note-body p { margin: 0 0 25px; color: var(--ink-soft); line-height: 1.75; font-size: 14px; }
.tag-list { display: flex; gap: 7px; flex-wrap: wrap; }
.tag-list span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; font: 650 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.card-arrow { position: absolute; top: 23px; right: 25px; font-size: 22px; transition: transform .2s ease; }
.note-card:hover .card-arrow { transform: translate(3px, -3px); color: var(--orange); }

.tools-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(55px, 8vw, 100px); align-items: start; }
.tools-intro > p:not(.section-index) { margin: 25px 0 34px; color: var(--ink-soft); line-height: 1.8; }
.tool-list { border-top: 1px solid var(--line); }
.tool-row { min-height: 74px; display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.tool-row > span { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: var(--paper); border-radius: 3px; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.tool-row div { display: grid; gap: 5px; }
.tool-row strong { font-size: 13px; }
.tool-row small { font-size: 11px; color: var(--ink-soft); }
.tool-row em { font-style: normal; font-size: 10px; color: var(--orange); }

.text-lab { background: var(--white); border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.lab-windowbar { min-height: 48px; padding: 0 16px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; border-bottom: 1px solid var(--ink); background: var(--paper-deep); }
.lab-windowbar > div { display: flex; gap: 6px; }
.lab-windowbar i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.lab-windowbar i:nth-child(2) { background: var(--lime); }
.lab-windowbar i:nth-child(3) { background: var(--mint); }
.lab-windowbar span { font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.lab-windowbar em { justify-self: end; padding: 5px 7px; border: 1px solid var(--line); border-radius: 99px; font: 650 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }
.lab-body { padding: 26px; }
.lab-body label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 750; }
.lab-body textarea { width: 100%; resize: vertical; min-height: 172px; padding: 15px; border: 1px solid var(--line); border-radius: 2px; outline: none; background: var(--paper); color: var(--ink); line-height: 1.7; font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.lab-body textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,95,46,.12); }
.lab-body textarea::placeholder { color: #84918c; }
.lab-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; border: 1px solid var(--line); }
.lab-metrics div { padding: 13px; display: grid; gap: 5px; text-align: center; border-right: 1px solid var(--line); }
.lab-metrics div:last-child { border-right: 0; }
.lab-metrics strong { font: 750 20px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.lab-metrics span { color: var(--ink-soft); font-size: 10px; }
.lab-actions { margin-top: 16px; display: flex; gap: 8px; align-items: center; }
.lab-actions button { min-height: 36px; padding: 0 13px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--white); cursor: pointer; font-size: 11px; font-weight: 700; }
.lab-actions button:nth-child(2) { background: transparent; color: var(--ink); }
.lab-actions button:disabled { cursor: not-allowed; opacity: .35; }
.lab-actions span { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 10px; }
.lab-actions span i { width: 6px; height: 6px; border-radius: 50%; background: #33a474; }

.about-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(55px, 10vw, 140px); align-items: center; }
.about-stamp { width: min(100%, 340px); aspect-ratio: 1; margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; box-shadow: inset 0 0 0 18px var(--paper), inset 0 0 0 19px var(--ink); transform: rotate(-7deg); position: relative; }
.about-stamp::before, .about-stamp::after { content: "✦"; position: absolute; font-size: 20px; color: var(--orange); }
.about-stamp::before { top: 43px; }.about-stamp::after { bottom: 43px; }
.about-stamp span { font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .45em; margin-right: -.45em; }
.about-stamp strong { font-size: clamp(38px, 5vw, 58px); line-height: 1.08; letter-spacing: -.07em; }
.about-stamp small { color: var(--orange); font-weight: 750; letter-spacing: .25em; }
.about-copy > p:not(.section-index) { max-width: 690px; margin: 25px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.95; }
.principles { margin-top: 35px; display: flex; flex-wrap: wrap; gap: 9px; }
.principles span { padding: 10px 13px; border: 1px solid var(--line); background: rgba(255,253,248,.45); font-size: 12px; font-weight: 650; }
.principles b { margin-right: 10px; color: var(--orange); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.site-footer { min-height: 150px; padding: 44px 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
.footer-brand .brand-mark { width: 38px; }
.footer-legal { flex: 0 0 auto; margin-left: auto; display: grid; justify-items: end; gap: 8px; font: 650 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-soft); }
.footer-legal { text-align: right; }
.footer-legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

@keyframes turn { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 680px); }
  .domain-badge { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-board { width: min(100%, 480px); justify-self: center; }
  .section-heading, .tools-section, .about-section { grid-template-columns: 1fr; }
  .section-heading { gap: 20px; }
  .section-heading > p { margin-left: 0; }
  .notes-grid { grid-template-columns: 1fr; }
  .note-card { min-height: 255px; }
  .about-stamp { width: 280px; }
  .site-footer { padding: 40px 0; }
}

@media (max-width: 620px) {
  .site-header, main, .site-footer { width: min(100% - 24px, 520px); }
  .site-header { min-height: 76px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 11px; }
  .brand-copy { display: none; }
  .hero { min-height: auto; padding: 58px 0 72px; gap: 62px; }
  .hero h1 { font-size: clamp(45px, 14vw, 64px); }
  .hero-intro { font-size: 15px; }
  .hero-board { min-height: 410px; padding: 18px; box-shadow: 9px 9px 0 var(--mint); }
  .board-center { height: 235px; }
  .signal-strip { width: calc(100% + 34px); margin-left: -17px; justify-content: flex-start; overflow: hidden; }
  .signal-strip span:nth-of-type(n+3), .signal-strip i:nth-of-type(n+3) { display: none; }
  .section { padding: 88px 0; }
  .section-heading h2, .tools-intro h2, .about-copy h2 { font-size: 43px; }
  .text-lab { box-shadow: 6px 6px 0 var(--ink); }
  .lab-body { padding: 18px; }
  .lab-metrics { grid-template-columns: repeat(2, 1fr); }
  .lab-metrics div:nth-child(2) { border-right: 0; }
  .lab-metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lab-actions { flex-wrap: wrap; }
  .lab-actions span { width: 100%; margin: 5px 0 0; }
  .about-stamp { width: 235px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 25px; padding: 34px 0; }
  .footer-legal { margin-left: 0; justify-items: start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
