:root {
  --bg: #efe7d6;
  --ink: #1b1712;
  --muted: #6b6256;
  --card: #fbf6ea;
  --line: #d8ccb4;
  --ember: #b4451a;
  --ember-soft: #f3d2c2;
  --up: #1f6b3a;
  --down: #a33b1c;
  --hold: #7a5b20;
  --shadow: 0 12px 32px rgba(40, 28, 12, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, #fff6e4 0%, transparent 42%),
    linear-gradient(180deg, #f4ead6 0%, var(--bg) 40%, #e7dcc6 100%);
}

.frame {
  width: min(640px, calc(100% - 28px));
  margin: 20px auto 40px;
}

.top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

h1 {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.lead {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.event {
  margin-top: 16px;
  padding: 14px 14px 16px;
  background: #2a1408;
  color: #f6efe2;
}

.event[hidden] {
  display: none;
}

.event.is-empty {
  background: #3a2c22;
}

.event.is-empty .event-copy,
.event.is-empty .event-prices,
.event.is-empty .event-call {
  display: none;
}

.event-title {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f6efe2;
}

.event.is-empty .event-title {
  font-size: 18px;
  font-weight: 700;
}

.event-copy {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #e2c4a8;
}

.event-prices {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 12px;
}

.event-prices li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
}

.event-prices span {
  color: #cbbba0;
}

.event-prices strong {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  color: #f6efe2;
}

.event-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 12px;
  padding: 0 14px;
  background: #f0a060;
  color: #2a1408;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.stamp {
  text-align: right;
}

.stamp-label {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 2px 7px;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

#updatedAt {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.brief {
  padding: 16px 0 4px;
}

.signal {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 4px 8px;
  background: #ead9a8;
  color: var(--hold);
  margin-bottom: 8px;
}

.signal.sell {
  background: #d7ebdc;
  color: var(--up);
}

.signal.buy {
  background: var(--ember-soft);
  color: var(--ember);
}

.signal.hold {
  background: #ead9a8;
  color: var(--hold);
}

.comment {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.board,
.refs,
.note,
.intro,
.faq,
.cta {
  margin-top: 24px;
}

.intro h2,
.faq h2,
.refs h2,
.board-head h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.intro p,
.faq p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.faq details p {
  margin-top: 6px;
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.board-head p,
.ref-note,
.cta-copy,
.cta-phone,
footer,
.note li {
  color: var(--muted);
}

.cards {
  list-style: none;
  display: grid;
  gap: 10px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px 14px 11px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 12px;
}

.card-name {
  font-size: 14px;
  font-weight: 650;
}

.card-note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.card-price {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: right;
}

.card-change {
  grid-column: 2;
  justify-self: end;
  font-size: 11px;
  font-weight: 650;
}

.card-change.up {
  color: var(--up);
}

.card-change.down {
  color: var(--down);
}

.card-change.flat {
  color: var(--muted);
}

.ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 12px;
}

.ref-stack {
  display: grid;
  gap: 16px;
}

.ref {
  border-top: 1px solid var(--ink);
  padding-top: 12px;
}

.ref-label,
.cta-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ref-value {
  margin: 6px 0 2px;
  font-size: 20px;
  font-weight: 730;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.note ol {
  margin-top: 12px;
  padding-left: 18px;
}

.note li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.note strong {
  color: var(--ink);
}

.cta {
  background: var(--ink);
  color: #f6efe2;
  padding: 22px 18px;
}

.cta-kicker {
  color: #cbbba0;
  margin-bottom: 10px;
}

.cta h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #f6efe2;
}

.cta-copy {
  color: #cbbba0;
  margin: 10px 0 16px;
  font-size: 13px;
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.btn-primary {
  background: #f0a060;
  color: #2a1408;
}

.btn-ghost {
  border: 1px solid #cbbba0;
  color: #f6efe2;
}

.cta-phone {
  margin-top: 14px;
  color: #cbbba0;
  font-variant-numeric: tabular-nums;
}

footer {
  margin-top: 28px;
  font-size: 12px;
  line-height: 1.6;
}

footer a,
.cta-phone a {
  color: inherit;
  text-decoration: none;
}

code {
  font-size: 11px;
}

@media (max-width: 560px) {
  .frame {
    width: calc(100% - 20px);
    margin-top: 16px;
  }

  h1 {
    font-size: 26px;
  }

  .card-price {
    font-size: 20px;
  }

  .cta h2 {
    font-size: 20px;
  }

  .ref-grid,
  .cta-actions {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    display: grid;
  }
}
