:root {
  color-scheme: light;
  --ink: #1e2328;
  --muted: #63707a;
  --quiet: #8a938d;
  --line: #d8ddd8;
  --paper: #f7f4ec;
  --paper-2: #ebe6da;
  --panel: #fffefa;
  --panel-soft: #f0ede4;
  --teal: #1f766f;
  --teal-dark: #185f59;
  --red: #9d403b;
  --gold: #af812c;
  --green-soft: #e4f0eb;
  --red-soft: #f3e6e2;
  --gold-soft: #f4ecd6;
  --shadow: 0 18px 50px rgba(30, 35, 40, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(14px, 4vw, 40px);
  border-bottom: 1px solid rgba(30, 35, 40, 0.12);
  background: rgba(247, 244, 236, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  background: var(--panel);
  color: var(--ink);
  outline: 1px solid rgba(31, 118, 111, 0.24);
}

main {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.7rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.7vw, 2.55rem);
  line-height: 1.04;
}

.eyebrow,
.panel-label,
.tool-type,
.tool-meta {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.practice-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 24px;
  align-items: stretch;
  padding: 14px 0 28px;
  border-bottom: 1px solid var(--line);
}

.console-copy {
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: 290px;
}

.console-copy .eyebrow {
  margin-bottom: 0;
}

.lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
}

.session-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(30, 35, 40, 0.04);
}

.session-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.session-steps li {
  counter-increment: step;
}

.session-steps a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.session-steps a::before {
  content: counter(step);
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 0.85rem;
}

.session-steps a:hover,
.session-steps a:focus-visible {
  border-color: rgba(31, 118, 111, 0.45);
  background: var(--green-soft);
  outline: 0;
}

.tool-section {
  display: grid;
  gap: 18px;
  padding: 30px 0 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 22px;
  align-items: end;
}

.section-head p {
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.tool-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tool-card {
  display: grid;
  grid-template-rows: auto auto minmax(74px, 1fr) auto;
  gap: 10px;
  min-height: 208px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(30, 35, 40, 0.04);
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: rgba(31, 118, 111, 0.55);
  box-shadow: var(--shadow);
  outline: 0;
  transform: translateY(-2px);
}

.tool-card.feature:nth-child(1) {
  background: var(--gold-soft);
}

.tool-card.feature:nth-child(2) {
  background: var(--green-soft);
}

.tool-card.feature:nth-child(3) {
  background: var(--red-soft);
}

.tool-card.feature:nth-child(4) {
  background: #eee9dd;
}

.tool-card.muted {
  background: #efebe1;
}

.tool-card strong {
  font-size: 1.24rem;
  line-height: 1.08;
}

.tool-card span:nth-child(3) {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.42;
}

.tool-meta {
  align-self: end;
  width: fit-content;
  padding: 6px 8px;
  border: 1px solid rgba(31, 118, 111, 0.18);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.7);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.system-section {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.system-grid article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.system-grid strong {
  color: var(--red);
  font-size: 1.02rem;
}

.system-grid span {
  color: var(--muted);
  line-height: 1.48;
}

.notice-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid rgba(157, 64, 59, 0.18);
  border-radius: 8px;
  background: var(--red-soft);
}

.notice-section p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.notice-section a,
.page-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(31, 118, 111, 0.28);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.page-hero,
.page-section {
  display: grid;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero p,
.page-section p,
.page-section li {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.55;
}

.page-section h2 {
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.page-card strong {
  color: var(--red);
}

.page-card span {
  color: var(--muted);
  line-height: 1.45;
}

.release-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-list li {
  display: grid;
  gap: 8px;
  max-width: none;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.release-list time {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-list strong {
  color: var(--ink);
}

@media (max-width: 1040px) {
  .practice-console,
  .section-head,
  .system-section {
    grid-template-columns: 1fr;
  }

  .console-copy {
    min-height: 0;
  }

  .tool-board,
  .system-grid,
  .page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  main {
    width: min(100% - 20px, 1220px);
    padding-top: 20px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .tool-board,
  .system-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .notice-section {
    align-items: stretch;
    flex-direction: column;
  }

  .notice-section a,
  .page-link {
    justify-content: center;
    white-space: normal;
  }

  .tool-card {
    min-height: 176px;
  }

  .session-panel {
    padding: 14px;
  }
}
