:root {
  --bg: #170e0b;
  --ink: #f7ebd4;
  --muted: #c9b7a2;
  --accent: #f76632;
  --line: #5d3a2c;
  --on-accent: #170e0b;
}

html,
body {
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    15px/1.8 "Segoe UI",
    "Yu Gothic",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
canvas {
  max-width: 100%;
  display: block;
}
button {
  border: 1px solid var(--line);
  background: transparent;
}
button:disabled {
  cursor: default;
}
button:active {
  transform: scale(0.98);
}
:focus-visible {
  outline: 3px solid var(--focus, var(--accent));
  outline-offset: 4px;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
}
h2 {
  font-size: clamp(28px, 3.6vw, 54px);
  letter-spacing: -0.045em;
}
h3 {
  font-size: 22px;
  letter-spacing: -0.025em;
}
p {
  max-width: 72ch;
}
small,
.micro {
  font-size: 12px;
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.display {
  font-family: Impact, "Arial Narrow", "Arial Black", sans-serif;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.025em;
}
.serif {
  font-family: Georgia, "Yu Mincho", serif;
  font-weight: 400;
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px;
  z-index: 100;
  transform: translateY(-150%);
}
.skip:focus {
  transform: none;
}
.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}
.site-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.site-nav a {
  font-size: 13px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.menu {
  display: none;
  min-height: 44px;
  padding: 8px 14px;
}
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent, var(--ink));
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover {
  border-color: var(--ink);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.actions,
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.choices button {
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 0;
}
.choices button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.section {
  padding: 90px 40px;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}
.section-head > p {
  max-width: 360px;
  color: var(--muted);
}
.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.cols article {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.cols p {
  margin-top: 16px;
  color: var(--muted);
}
.price {
  font-size: clamp(32px, 4vw, 60px);
  line-height: 1.2;
  letter-spacing: -0.06em;
  margin: 24px 0;
}
.ledger {
  width: 100%;
  border-collapse: collapse;
}
.ledger th,
.ledger td {
  text-align: left;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.ledger th {
  font-size: 12px;
  color: var(--muted);
}
.site-footer {
  padding: 38px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  font-size: 12px;
}
.site-footer p {
  max-width: 600px;
  margin-top: 10px;
  color: var(--muted);
}
.site-footer a {
  padding: 12px 0;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.demo-mark {
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 3px 8px;
  white-space: nowrap;
}
.art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.art canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: -1;
}
.art-label {
  font-size: 12px;
  position: absolute;
  left: 20px;
  bottom: 18px;
}
.control-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}
.status {
  font-size: 13px;
  min-height: 24px;
  margin-top: 14px;
}
dialog {
  width: min(490px, calc(100% - 36px));
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 42px 30px 30px;
  box-shadow: 0 20px 120px #0005;
}
dialog::backdrop {
  background: #10201dcc;
  backdrop-filter: blur(6px);
}
dialog h2 {
  font-size: 30px;
  padding-right: 15px;
}
dialog p {
  margin: 20px 0;
}
dialog .close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
  height: 44px;
  font-size: 24px;
}
details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
summary {
  cursor: pointer;
  min-height: 44px;
  font-size: 18px;
}
details p {
  padding: 8px 0;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
button,
a {
  transition:
    background-color 0.15s,
    color 0.15s,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 1000px) {
  .site-header {
    padding: 16px 24px;
  }
  .site-nav {
    gap: 18px;
  }
  .section {
    padding: 64px 24px;
  }
  .site-footer {
    padding: 30px 24px;
  }
  .cols {
    gap: 20px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  .site-header {
    min-height: 74px;
    padding: 14px 18px;
  }
  .brand {
    font-size: 25px;
  }
  .menu {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px #0002;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 6px 10px;
  }
  .section {
    padding: 54px 18px;
  }
  .section-head {
    display: block;
    margin-bottom: 28px;
  }
  .section-head > p {
    margin-top: 20px;
  }
  .cols {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .site-footer {
    padding: 28px 18px;
    display: block;
  }
  .site-footer > a {
    display: inline-block;
    margin-top: 18px;
  }
  .row {
    flex-wrap: wrap;
  }
  .ledger td,
  .ledger th {
    padding: 14px 4px;
    font-size: 13px;
  }
  .ledger th {
    font-size: 11px;
  }
  .choices button {
    padding: 9px 14px;
  }
  .btn {
    padding: 12px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-property: opacity, background-color, color !important;
    transition-duration: 0.12s !important;
  }
  button,
  a,
  .reactive {
    transition:
      opacity 0.12s,
      background-color 0.12s,
      color 0.12s !important;
  }
}

.ember-table .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-color: #f7ebd444;
}
.ember-table .brand {
  font-family: Georgia, serif;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.ember-hero {
  min-height: 900px;
  padding: 140px 40px 35px;
  background: radial-gradient(ellipse at 75% 45%, #77351d, #170e0b 68%);
  display: flex;
  flex-direction: column;
}
.ember-top {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.ember-top > p {
  font-size: clamp(22px, 2.7vw, 38px);
  line-height: 1.7;
  letter-spacing: 0.12em;
}
.ember-date {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #c9b7a277;
  padding-left: 24px;
  font-size: 12px;
}
.ember-date strong {
  font-size: 70px;
  line-height: 1.3;
}
.ember-date span:last-child {
  margin-top: 12px;
}
.ember-hero h1 {
  font-size: clamp(100px, 19vw, 282px);
  line-height: 0.82;
  margin-top: auto;
  position: relative;
  z-index: 1;
  color: #f7ebd4;
}
.ember-hero h1 br {
  display: none;
}
.fire-caption {
  align-self: center;
  margin: 45px 0 80px;
  font-size: 12px;
  letter-spacing: 0.16em;
}
.fire-caption i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  margin-right: 10px;
  border-radius: 50%;
}
.ember-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  padding-top: 35px;
}
.ember-bottom p {
  font-size: 14px;
}
.round-link {
  border: 1px solid var(--ink);
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  line-height: 1.65;
  text-align: center;
  font-size: 13px;
  margin-top: -20px;
  position: relative;
  z-index: 2;
  background: #170e0b99;
  backdrop-filter: blur(5px);
}
.round-link span {
  font-size: 24px;
}
.round-link:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.menu-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10vw;
  background: #23130e;
}
.menu-intro h2 {
  font-size: clamp(36px, 4.4vw, 66px);
  line-height: 1.4;
}
.menu-intro > p {
  margin: 30px 0;
  color: var(--muted);
}
.menu-intro .choices {
  margin-top: 50px;
}
.ember-table .choices button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.course-panel {
  border-top: 1px solid var(--accent);
  padding-top: 5px;
}
.course-panel .price {
  font-size: 44px;
}
.course-panel ol {
  list-style: none;
  padding: 0;
  margin: 10px 0 30px;
}
.course-panel li {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  font-size: 18px;
}
.course-panel li span {
  font-size: 11px;
  color: var(--muted);
  display: inline-block;
  width: 100px;
}
.course-panel .status {
  color: var(--muted);
  margin-bottom: 25px;
}
.ember-table .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.ember-table .btn.ghost {
  background: transparent;
  color: var(--ink);
}
.ember-story {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10vw;
  padding-top: 110px;
  padding-bottom: 110px;
}
.fire-word {
  font-size: clamp(64px, 8vw, 125px);
  line-height: 1.05;
  color: var(--accent);
  letter-spacing: -0.06em;
}
.ember-story h2 {
  font-size: 34px;
}
.ember-story p {
  margin: 30px 0;
}
.ember-story dl {
  margin: 40px 0;
}
.ember-story dl > div {
  display: flex;
  gap: 26px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.ember-story dt {
  width: 30px;
  color: var(--muted);
}
.ember-story dd {
  margin: 0;
}
@media (max-width: 1000px) {
  .ember-hero {
    padding-left: 24px;
    padding-right: 24px;
    min-height: 840px;
  }
  .ember-hero h1 br {
    display: block;
  }
  .ember-hero h1 {
    font-size: clamp(130px, 24vw, 220px);
  }
  .fire-caption {
    margin: 25px 0 40px;
    align-self: flex-end;
  }
  .ember-bottom > .micro {
    display: none;
  }
  .menu-section {
    gap: 45px;
  }
  .course-panel li span {
    display: block;
    width: auto;
    margin-bottom: 5px;
  }
  .ember-story {
    gap: 50px;
  }
}
@media (max-width: 640px) {
  .ember-hero {
    min-height: 920px;
    padding: 120px 18px 28px;
  }
  .ember-top > p {
    font-size: 25px;
  }
  .ember-date {
    padding-left: 16px;
    max-width: 150px;
    font-size: 10px;
  }
  .ember-date strong {
    font-size: 48px;
  }
  .ember-date span:last-child {
    font-size: 11px;
  }
  .ember-hero h1 {
    font-size: 36vw;
    line-height: 0.86;
    margin-top: 80px;
  }
  .fire-caption {
    font-size: 10px;
    margin-top: 65px;
    margin-bottom: 0;
    align-self: flex-start;
  }
  .ember-bottom {
    align-items: center;
    padding-top: 40px;
    gap: 12px;
  }
  .ember-bottom p {
    font-size: 12px;
  }
  .round-link {
    width: 118px;
    height: 118px;
    flex-shrink: 0;
    margin-top: 0;
    font-size: 12px;
  }
  .menu-section {
    display: block;
  }
  .menu-intro .choices {
    margin-top: 30px;
  }
  .menu-intro > p {
    margin: 22px 0;
  }
  .course-panel {
    margin-top: 40px;
  }
  .course-panel li {
    font-size: 17px;
  }
  .course-panel li span {
    display: inline-block;
    width: 85px;
    font-size: 10px;
  }
  .course-panel .price {
    font-size: 37px;
  }
  .ember-story {
    display: block;
  }
  .fire-word {
    font-size: 75px;
    margin-bottom: 60px;
  }
  .ember-story h2 {
    font-size: 30px;
  }
  .ember-story dl {
    margin: 28px 0;
  }
}

/* Visual review: a readable word space across the full stage. */
@media (min-width: 1001px) {
  .ember-hero h1 {
    font-size: 18.3vw;
  }
}
@media (max-width: 640px) {
  .ember-top {
    gap: 16px;
  }
  .ember-top > p {
    font-size: 21px;
    letter-spacing: 0.02em;
    flex: 1;
    min-width: 0;
  }
  .ember-date {
    width: 130px;
    max-width: 130px;
    flex-shrink: 0;
  }
  .ember-date strong {
    font-size: 43px;
  }
  .ember-date span:last-child {
    font-size: 11px;
  }
}
