:root {
  color-scheme: light;
  --ink: #17211e;
  --muted: #5e6965;
  --green: #1f7258;
  --green-dark: #173f35;
  --green-soft: #dff0e9;
  --blue: #315ca8;
  --coral: #cf6b52;
  --paper: #ffffff;
  --canvas: #f3f6f5;
  --line: #d9e1de;
  --shadow: 0 16px 40px rgba(23, 63, 53, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 4px;
  background: #fff;
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 225, 222, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav-row {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #46524e;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green);
}

.hero {
  display: flex;
  min-height: min(680px, calc(100vh - 70px));
  align-items: center;
  overflow: hidden;
  background: #eef4f1;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 76px;
  align-items: center;
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-intro {
  max-width: 700px;
  margin-bottom: 30px;
  color: #4f5d58;
  font-size: 17px;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: #0f3028;
}

.button-secondary {
  border-color: #aebcb7;
  background: transparent;
  color: var(--green-dark);
}

.hero-summary {
  position: relative;
  border-left: 1px solid #a9bbb5;
  padding: 18px 0 18px 34px;
}

.hero-summary::before {
  position: absolute;
  top: 18px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.hero-summary p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
}

.hero-summary strong {
  display: block;
  margin-bottom: 2px;
  font-size: 32px;
  line-height: 1.25;
}

.hero-summary span {
  color: var(--muted);
  font-size: 13px;
}

.summary-rule {
  width: 100%;
  height: 1px;
  margin: 24px 0;
  background: #cbd7d3;
}

.quick-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-grid div {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--line);
  padding: 18px 22px;
}

.quick-grid div:first-child {
  border-left: 1px solid var(--line);
}

.quick-grid span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.quick-grid strong {
  font-size: 14px;
}

.section {
  padding: 92px 0;
}

.section-tint {
  background: #f1f5f7;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  margin-bottom: 6px;
  color: var(--muted);
}

.record-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.stage-tabs {
  border-right: 1px solid var(--line);
  background: #f7f9f8;
}

.stage-tab {
  display: block;
  width: 100%;
  min-height: 112px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 24px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.stage-tab:last-child {
  border-bottom: 0;
}

.stage-tab span,
.stage-tab strong {
  display: block;
}

.stage-tab span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.stage-tab strong {
  font-size: 17px;
}

.stage-tab.is-active {
  background: var(--green-dark);
  color: #fff;
}

.stage-tab.is-active span {
  color: rgba(255, 255, 255, 0.65);
}

.stage-panel {
  min-height: 336px;
  padding: 34px;
}

.stage-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.stage-panel h3 {
  margin-bottom: 10px;
  font-size: 27px;
}

.stage-panel > p {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--muted);
}

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

.focus-grid div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
}

.focus-grid span,
.focus-grid strong {
  display: block;
}

.focus-grid span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.focus-grid strong {
  font-size: 14px;
}

blockquote {
  margin: 22px 0 0;
  border-left: 3px solid var(--coral);
  padding-left: 14px;
  color: #46524e;
  font-size: 14px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 34px;
}

.principles article {
  border-top: 2px solid var(--green-dark);
  padding-top: 18px;
}

.principles span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.principles h3 {
  margin: 8px 0;
  font-size: 18px;
}

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

.notebook-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(440px, 1fr);
  gap: 70px;
  align-items: start;
}

.notebook-copy {
  position: sticky;
  top: 110px;
}

.notebook-copy > p:last-of-type {
  color: var(--muted);
}

.privacy-note {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 26px;
  border-left: 3px solid var(--blue);
  padding-left: 14px;
}

.privacy-note strong {
  font-size: 14px;
}

.privacy-note span {
  color: var(--muted);
  font-size: 13px;
}

.notebook-form {
  border: 1px solid #cfd9dd;
  border-radius: 8px;
  background: #fff;
  padding: 28px;
}

.form-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.form-topline label,
.note-field > span,
legend {
  font-weight: 750;
}

.form-topline input {
  min-height: 42px;
  border: 1px solid #bfcac6;
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
  color: var(--ink);
}

fieldset {
  margin: 0 0 22px;
  border: 0;
  padding: 0;
}

legend {
  margin-bottom: 10px;
}

.check-row {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

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

.check-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.check-row strong,
.check-row small {
  display: block;
}

.check-row small {
  color: var(--muted);
}

.note-field {
  display: block;
}

.note-field > span {
  display: block;
  margin-bottom: 8px;
}

.note-field textarea {
  display: block;
  width: 100%;
  resize: vertical;
  border: 1px solid #bfcac6;
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
}

.form-actions {
  margin-top: 18px;
}

.text-button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.save-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.work-heading {
  margin-bottom: 22px;
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid #bcc8c4;
  border-radius: 6px;
  background: #fff;
  padding: 7px 13px;
  color: #46524e;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.filter-button.is-active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.work-card[hidden] {
  display: none;
}

.work-open {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.work-open img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #edf1f0;
}

.work-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 110px;
  align-content: center;
  gap: 4px 18px;
  padding: 20px;
}

.work-copy small,
.work-copy strong {
  display: block;
  grid-column: 1;
}

.work-copy small {
  color: var(--muted);
  font-size: 12px;
}

.work-copy strong {
  font-size: 19px;
}

.work-copy em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--green);
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
}

.about-section {
  border-top: 1px solid var(--line);
  background: var(--green-dark);
  color: #fff;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
}

.about-section .eyebrow {
  color: #8fd4ba;
}

.about-copy {
  color: rgba(255, 255, 255, 0.76);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #102f28;
  color: rgba(255, 255, 255, 0.7);
}

.footer-row {
  display: flex;
  min-height: 82px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.footer-row a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.work-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 0;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
}

.work-dialog::backdrop {
  background: rgba(10, 20, 17, 0.7);
}

.work-dialog > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #edf1f0;
}

.dialog-copy {
  padding: 28px;
}

.dialog-copy h2 {
  font-size: 30px;
}

.dialog-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.dialog-close {
  position: sticky;
  top: 10px;
  float: right;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: 10px 10px -50px 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(16, 47, 40, 0.9);
  color: #fff;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

:focus-visible {
  outline: 3px solid rgba(49, 92, 168, 0.35);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero-layout,
  .section-heading,
  .notebook-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 36px;
  }

  .hero-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 18px;
    border-top: 1px solid #a9bbb5;
    border-left: 0;
    padding: 24px 0 0;
  }

  .hero-summary::before {
    top: -5px;
    left: 0;
  }

  .hero-summary p,
  .hero-summary strong,
  .hero-summary span {
    grid-column: auto;
  }

  .hero-summary p {
    grid-row: auto;
  }

  .summary-rule {
    display: none;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-grid div:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .quick-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .notebook-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .nav-row {
    min-height: 66px;
  }

  .nav-links {
    max-width: 58vw;
    justify-content: flex-end;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 0;
    white-space: nowrap;
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(4) {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout {
    padding: 52px 0 44px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-intro {
    font-size: 15px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    gap: 10px;
  }

  .record-layout {
    grid-template-columns: 1fr;
  }

  .stage-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stage-tab {
    min-height: 82px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 14px 10px;
  }

  .stage-tab:last-child {
    border-right: 0;
  }

  .stage-tab strong {
    font-size: 14px;
  }

  .stage-panel {
    min-height: 430px;
    padding: 24px;
  }

  .focus-grid,
  .principles,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .notebook-form {
    padding: 20px;
  }

  .form-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-topline input {
    width: 100%;
  }

  .work-copy {
    min-height: 98px;
  }

  .footer-row {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 36px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid div,
  .quick-grid div:nth-child(3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .quick-grid div:last-child {
    border-bottom: 0;
  }

  .stage-tabs {
    overflow-x: auto;
  }

  .stage-tab {
    min-width: 102px;
  }

  .work-copy {
    grid-template-columns: 1fr;
  }

  .work-copy em {
    grid-column: 1;
    grid-row: auto;
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
