:root {
  --bg: #f6f0e7;
  --card: #fffaf2;
  --ink: #241b13;
  --muted: #6c5c4b;
  --line: #e2d3bf;
  --accent: #8d4f2f;
  --accent-soft: #f1dfcf;
  --deep: #2f261f;
  --good: #3d6b50;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, #fff7ec 0, var(--bg) 38%, #eee1d1 100%);
  color: var(--ink);
  line-height: 1.55;
}
a { color: inherit; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .7rem 1rem; border-radius: .5rem; }
.room-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(108, 92, 75, .2);
  background: rgba(246, 240, 231, .92);
  backdrop-filter: blur(14px);
}
.room-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 900; }
.room-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(141,79,47,.32); border-radius: 50%; background: #fff; color: var(--accent); font-family: Georgia, serif; }
.room-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 15px; }
.room-nav a, .room-language a { color: #5c5044; font-size: .84rem; font-weight: 800; text-decoration: none; }
.room-nav a:hover, .room-language a:hover { color: var(--accent); }
.room-language { display: flex; align-items: center; gap: 7px; }
.room-language .current { color: var(--accent); }
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}
.hero-card, .navigator, .tabs {
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(55, 37, 22, 0.10);
}
.hero-card { padding: clamp(28px, 5vw, 56px); }
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--accent);
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: .98;
  letter-spacing: -0.055em;
}
h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.1; margin: 0 0 18px; }
h3 { margin: 0 0 12px; font-size: 1.25rem; }
h4 { margin-bottom: 8px; }
.skill-label {
  color: var(--muted);
  font-weight: 800;
  margin: 22px 0 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
}
.hero-card h2 { color: var(--accent); margin-bottom: 24px; }
.hero-text { font-size: 1.14rem; max-width: 820px; margin: 0; color: var(--deep); }
.quick-signals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.quick-signals span { border: 1px solid var(--line); background: white; padding: 10px 14px; border-radius: 999px; font-size: .95rem; }
.source-note { margin-top: 24px; padding: 13px 15px; border-left: 4px solid var(--good); border-radius: 12px; background: rgba(61,107,80,.08); color: #405748; font-size: .9rem; }
.navigator { margin-top: 22px; padding: 24px; display: grid; gap: 22px; }
.route-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.route-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.route-card:hover, .route-card:focus-visible { transform: translateY(-2px); border-color: var(--accent); background: var(--accent-soft); }
.tabs { margin-top: 22px; overflow: hidden; }
.tab-buttons { display: flex; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .45); overflow-x: auto; }
.tab-button { border: 1px solid var(--line); background: white; padding: 12px 16px; border-radius: 999px; cursor: pointer; font-weight: 800; white-space: nowrap; }
.tab-button.active { background: var(--deep); color: white; border-color: var(--deep); }
.tab-panel { display: none; padding: clamp(22px, 4vw, 42px); scroll-margin-top: 90px; }
.tab-panel.active { display: block; }
blockquote { margin: 0 0 24px; padding: 20px 22px; border-left: 5px solid var(--accent); background: var(--accent-soft); border-radius: 16px; font-size: 1.2rem; font-weight: 750; }
.content-grid, .two-col, .node-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.info-card, .transformation-card, .result-card, .tool-column, .node-card { border: 1px solid var(--line); background: white; border-radius: 20px; padding: 20px; }
.info-card.strong { border-color: var(--accent); background: var(--accent-soft); }
.transformation-card { background: #f8efe5; border-color: #d9b99e; margin: 18px 0; }
.transformation-card h3 { color: var(--accent); font-size: 1.55rem; }
details { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 0; margin: 14px 0; overflow: hidden; }
summary { cursor: pointer; font-weight: 850; padding: 16px 18px; background: #fff7ed; }
details p, details ul { padding: 0 20px 18px; margin-top: 0; }
li { margin: 8px 0; }
.mock-tool { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: #f8f2ea; border: 1px dashed #d3baa3; margin: 16px 0; }
label { display: grid; gap: 6px; font-weight: 750; color: var(--deep); }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; background: white; }
textarea { min-height: 92px; resize: vertical; }
button { font: inherit; }
.mock-tool button { background: var(--accent); color: white; border: 0; border-radius: 12px; padding: 11px 14px; font-weight: 850; cursor: pointer; }
.tool-result { margin: 0; padding: 12px; background: white; border-radius: 12px; border: 1px solid var(--line); }
.route-list { display: grid; gap: 12px; }
.route-list div { background: white; border: 1px solid var(--line); padding: 16px; border-radius: 16px; display: grid; gap: 6px; }
.route-list span { color: var(--muted); }
.room-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1120px, calc(100% - 32px)); margin: 0 auto; border-top: 1px solid rgba(108,92,75,.2); padding: 24px 0 36px; color: var(--muted); font-size: .86rem; }
@media (max-width: 850px) {
  .room-header { grid-template-columns: 1fr auto; }
  .room-nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 12px; }
  .room-nav a { white-space: nowrap; }
  .route-grid, .content-grid, .two-col, .node-grid { grid-template-columns: 1fr; }
  .page-shell { width: min(100% - 22px, 1120px); padding-top: 18px; }
  .hero-card, .navigator, .tabs { border-radius: 22px; }
}
@media (max-width: 560px) {
  .room-brand span:last-child { display: none; }
  .room-footer { display: grid; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .route-card { transition: none; } }
