:root {
  --ink: #17211b;
  --muted: #647068;
  --paper: #f6f7f2;
  --card: #ffffff;
  --line: #dfe3dc;
  --acid: #dfff62;
  --acid-dark: #c7ed35;
  --purple: #6b55e7;
  --shadow: 0 18px 50px rgba(23, 33, 27, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: var(--acid); }
.brand-mark svg { width: 17px; }
.tiny-link { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 650; }
.tiny-link:hover { color: var(--ink); }

.home-main { padding: clamp(38px, 7vw, 72px) 0 100px; }
.eyebrow { margin: 0 0 14px; color: var(--purple); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero { max-width: 770px; }
h1 { margin: 0; font-size: clamp(2.6rem, 7.5vw, 6.1rem); line-height: .98; letter-spacing: -.075em; }
.hero p { max-width: 620px; margin: 26px 0 0; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.25rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; margin: 0 0 20px; }
.section-head h2 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.section-head span { color: var(--muted); font-size: .85rem; }
.prompt-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 1px 0 rgba(23,33,27,.03);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.prompt-card:hover { transform: translateY(-3px); border-color: #c8cec5; box-shadow: var(--shadow); }
.card-number { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: var(--acid); font-size: 1.15rem; font-weight: 850; }
.card-copy h3 { margin: 0 0 6px; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.25; letter-spacing: -.025em; }
.card-copy p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-action { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: var(--ink); color: white; }
.card-action svg { width: 18px; }

.detail-main { padding: 44px 0 110px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 700; }
.back-link:hover { color: var(--ink); }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); gap: 50px; align-items: end; padding: 58px 0 62px; }
.detail-hero h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); max-width: 850px; }
.detail-intro { margin: 0 0 6px; color: var(--muted); font-size: 1.05rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.55); font-size: .8rem; font-weight: 700; }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; max-width: 860px; margin: 0 auto; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.02em; }
.steps { list-style: none; margin: 0; padding: 8px 24px 18px; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--acid); font-weight: 850; }
.step h3 { margin: 2px 0 5px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }
.prompt-panel { position: static; }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.text-button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: white; color: var(--ink); text-decoration: none; font-size: .84rem; font-weight: 750; }
.text-button:hover { border-color: #b9c1b7; }
.prompt-details { margin: 14px 0 4px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcf8; overflow: hidden; }
.prompt-details summary { padding: 12px 14px; cursor: pointer; color: var(--ink); font-size: .85rem; font-weight: 750; }
.prompt-details .prompt-box { max-height: 430px; padding-top: 14px; border-top: 1px solid var(--line); }
.workflow-note { margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: #eeece8; color: var(--ink); font-size: .92rem; }
.copy-button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--ink); color: white; cursor: pointer; font-size: .84rem; font-weight: 750; transition: background .2s ease, transform .2s ease; }
.copy-button:hover { background: #2d3a31; transform: translateY(-1px); }
.copy-button.copied { background: var(--purple); }
.prompt-box { margin: 0; padding: 24px; max-height: 660px; overflow: auto; white-space: pre-wrap; color: #28332c; background: #fbfcf8; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .84rem; line-height: 1.65; }
.tip { margin-top: 24px; padding: 18px 20px; border-radius: 18px; background: var(--ink); color: white; }
.tip strong { color: var(--acid); }
.tip p { margin: 4px 0 0; color: #d6ddd8; font-size: .9rem; }
.site-footer { padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 800px) {
  .shell { width: min(100% - 28px, 720px); }
  .site-header { min-height: 68px; }
  .home-main { padding-top: 54px; }
  .prompt-card { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; border-radius: 20px; }
  .card-number { width: 52px; height: 52px; border-radius: 15px; }
  .card-action { display: none; }
  .detail-main { padding-top: 28px; }
  .detail-hero { grid-template-columns: 1fr; gap: 22px; padding: 42px 0; }
  .detail-intro { max-width: 600px; }
  .content-grid { grid-template-columns: 1fr; }
  .prompt-panel { position: static; }
  .prompt-box { max-height: none; }
}

@media (max-width: 460px) {
  h1 { font-size: 2.75rem; }
  .section-head { align-items: center; }
  .prompt-card { padding: 18px; }
  .card-copy p { font-size: .87rem; }
  .panel-head { padding: 18px; }
  .steps { padding: 6px 18px 14px; }
  .prompt-box { padding: 18px; font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
