:root {
  --paper: #f6f3ee;
  --ink: #1a1916;
  --muted: #6f6a63;
  --line: #e3ddd3;
  --card: #fffcf8;
  --orange: #e36a32;
  --orange-deep: #c6531c;
  --soft: #f3ece4;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "PingFang SC", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.wide { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

header.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 243, 238, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.bar {
  height: 68px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 560; letter-spacing: -0.02em; }
.mark {
  width: 28px; height: 28px; border: 1px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 560; font-size: 16px;
}
nav.main { display: flex; align-items: center; gap: 4px; flex: 1; }
.navbtn, .navlink {
  background: none; border: 0; padding: 8px 12px; color: var(--ink);
}
.navbtn.on, .navlink.on { font-weight: 600; }
.navitem { position: relative; }
.spacer { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ghost {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px;
}
.solid {
  background: var(--orange); color: white; border: 0; border-radius: 999px;
  padding: 10px 16px;
}
.solid:disabled, .ghost:disabled { opacity: 0.55; cursor: wait; }
.solid.slim, .ghost.slim { padding: 7px 12px; border-radius: 999px; }

.mega {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: white; border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr;
  min-width: 760px; padding: 22px 8px 18px;
}
.mega[hidden] { display: none; }
.mega-col { padding: 0 22px; }
.mega-col + .mega-col { border-left: 1px solid var(--line); }
.mega-h { color: var(--orange-deep); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.mega a, .toolgrid a {
  display: block; padding: 7px 0; line-height: 1.35;
}
.mega a:hover, .toolgrid a:hover { color: var(--orange-deep); }
.mega a small, .toolgrid a small { display: block; color: var(--muted); font-size: 12px; }

.hero { padding: 72px 0 28px; }
.kicker { letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
h1, h2, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }
h1 { font-size: 64px; line-height: 0.98; margin: 12px 0; max-width: 14ch; }
.lede { max-width: 42rem; color: #3c3934; font-size: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolset { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr; border-top: 1px solid var(--line); margin-top: 48px; }
.toolset section { padding: 28px 28px 40px 0; }
.toolset section + section { border-left: 1px solid var(--line); padding-left: 28px; }
.toolset h2 { font-size: 22px; margin: 0 0 8px; color: var(--orange-deep); font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

.page { padding: 36px 0 80px; }
.page h1 { font-size: 48px; max-width: none; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.plan { background: var(--card); border: 1px solid var(--line); padding: 22px; }
.plan.pro { border-color: var(--ink); }
.plan .amt { font-family: var(--serif); font-size: 42px; line-height: 1; margin: 10px 0; }
.plan ul { margin: 12px 0 0; padding-left: 18px; color: #3c3934; }
.plan li { margin: 6px 0; }
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.switch button { background: transparent; border: 0; padding: 7px 12px; }
.switch button.on { background: var(--ink); color: white; }

.market { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); padding: 16px 18px; }
.card + .card { margin-top: 10px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
textarea, input[type="text"] {
  width: 100%; background: white; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px;
}
textarea { resize: vertical; }
.tabs { display: flex; gap: 6px; margin: 8px 0 14px; }
.tabs button { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.tabs button.on { background: var(--ink); color: white; border-color: var(--ink); }
.meta { color: var(--muted); font-size: 13px; }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: 12px; }

.cases { display: grid; grid-template-columns: 1fr; }
.case { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr auto; gap: 24px; align-items: start; }
.help section { padding: 22px 0; border-top: 1px solid var(--line); max-width: 46rem; }
.help h2 { font-size: 32px; margin: 0 0 8px; }

.studio { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
.side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 4px; }
.side h1 { font-size: 34px; max-width: none; margin: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 13px; }
.chip.on { border-color: var(--ink); background: var(--soft); }
.doc { background: var(--card); border: 1px solid var(--line); min-height: 70vh; padding: 28px 32px 48px; }
.doc h2 { font-size: 36px; margin: 0 0 4px; }
.manuscript { font-family: var(--serif); font-size: 19px; line-height: 1.55; white-space: pre-wrap; }
.beat { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.beat b { font-size: 13px; }
.pair { padding: 12px 0; border-top: 1px solid var(--line); }
.warn { color: var(--orange-deep); font-size: 14px; }
.ok { color: #2f6b45; font-size: 14px; }
.recent a { display: block; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.empty { color: var(--muted); }

@media (max-width: 900px) {
  h1 { font-size: 42px; }
  .toolset, .plans, .market, .studio, .case, .mega { display: block; min-width: 0; }
  .mega { position: static; width: min(100vw - 24px, 420px); }
  .mega-col + .mega-col { border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .toolset section + section { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .side { position: static; max-height: none; }
  .bar { height: auto; padding: 10px 0; flex-wrap: wrap; }
  .case { grid-template-columns: 1fr; }
}
