:root {
  --bg: #f6f4ef;
  --paper: #fffdf8;
  --ink: #161514;
  --muted: #6b6862;
  --soft: #e3ded3;
  --line: #201f1c;
  --accent: #2b6f68;
  --accent-2: #9f3131;
  --shadow: 0 18px 60px rgba(35, 32, 28, 0.1);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --bg: #111111;
  --paper: #1a1917;
  --ink: #f4f0e8;
  --muted: #b8b0a4;
  --soft: #37332e;
  --line: #eee8dc;
  --accent: #77b7ad;
  --accent-2: #de7b70;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(43, 111, 104, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(var(--bg), var(--bg));
  background-size: 42px 42px, auto;
  color: var(--ink);
}

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.xm-mark {
  display: inline-grid;
  place-items: center;
  min-width: 82px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #050505;
  color: #fff;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--soft);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 20, 20, 0.08);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-toggle {
  font-size: 15px;
  font-weight: 760;
}

:root[data-theme="light"] .moon-icon,
:root[data-theme="dark"] .sun-icon {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 42px;
  padding: 74px 0 46px;
}

.kicker,
.section-head p {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 760;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(58px, 6vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}

.date-panel {
  border-left: 3px solid var(--line);
  padding: 8px 0 6px 22px;
}

.date-panel p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 20px;
}

.date-panel strong {
  display: block;
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1;
}

.date-panel span {
  display: block;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 72px;
}

.market-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 18px;
  min-height: 92px;
  padding: 24px 26px;
  border: 1px solid var(--soft);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.market-card span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.market-card strong {
  font-size: 42px;
  line-height: 1;
}

.market-card em {
  color: var(--accent-2);
  font-size: 22px;
  font-style: normal;
  font-weight: 800;
}

.timeline-section {
  position: relative;
}

.section-head {
  width: min(760px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

h2 {
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.05;
}

.timeline {
  position: relative;
  display: grid;
  gap: 46px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--line);
  opacity: 0.24;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.timeline-cell {
  min-width: 0;
}

.timeline-node {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 108px;
  z-index: 1;
}

.timeline-node time {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border: 1px solid var(--soft);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.1;
  box-shadow: var(--shadow);
}

.timeline-node span {
  color: var(--accent);
  font-size: 22px;
}

.timeline-node i {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(70px);
}

.story-card {
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--soft);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.story-id {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 860;
}

h3 {
  margin-bottom: 18px;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.08;
}

.story-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.72;
}

.story-card strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.45;
}

.story-visual {
  margin: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--soft);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.story-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-footer {
  margin-top: 76px;
  padding-top: 28px;
  border-top: 1px solid var(--soft);
  color: var(--muted);
  text-align: center;
  font-size: 18px;
  font-weight: 760;
}

.share-dock {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 42px;
}

.share-button {
  min-height: 58px;
  padding: 0 30px;
  border: 1px solid #050505;
  border-radius: 8px;
  background: #050505;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.share-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 760px) {
  .page-shell,
  .share-dock {
    width: min(100% - 28px, 430px);
  }

  .topbar {
    align-items: center;
  }

  .xm-mark {
    min-width: 76px;
    height: 40px;
    font-size: 17px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 54px 0 36px;
  }

  h1 {
    font-size: 52px;
  }

  .date-panel {
    padding-left: 18px;
  }

  .market-strip {
    grid-template-columns: 1fr;
    margin-bottom: 58px;
  }

  .market-card {
    grid-template-columns: auto 1fr auto;
    padding: 22px;
  }

  .market-card strong {
    font-size: 35px;
  }

  h2 {
    font-size: 38px;
  }

  .timeline {
    gap: 32px;
  }

  .timeline-line {
    left: 50%;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: center;
  }

  .timeline-a,
  .timeline-b {
    grid-column: 1;
  }

  .timeline-node {
    grid-column: 1;
    grid-row: 1;
    min-height: 88px;
    align-self: center;
  }

  .timeline-a {
    grid-row: 2;
  }

  .timeline-b {
    grid-row: 3;
  }

  .timeline-node time {
    width: 82px;
    height: 82px;
    font-size: 13px;
  }

  .timeline-node span {
    font-size: 19px;
  }

  .timeline-node i {
    display: none;
  }

  .story-card {
    min-height: 0;
    padding: 24px 22px;
  }

  h3 {
    font-size: 30px;
  }

  .story-card p {
    font-size: 20px;
    line-height: 1.66;
  }

  .story-card strong {
    font-size: 20px;
  }
}

@media (max-width: 374px) {
  .page-shell,
  .share-dock {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: 46px;
  }

  .market-card {
    gap: 12px;
  }

  .market-card strong {
    font-size: 31px;
  }

  .timeline-item {
    gap: 14px;
  }

  .timeline-node time {
    width: 76px;
    height: 76px;
  }
}
