:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #5f6d66;
  --line: #d8e1dc;
  --paper: #f7f8f4;
  --panel: #ffffff;
  --mint: #d7f2df;
  --coral: #ffdfd2;
  --green: #1e7a4d;
  --blue: #285a89;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

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

.topbar h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.02;
}

nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

nav a {
  color: var(--ink);
  font-size: 14px;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brief-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 42px 0 28px;
}

.brief-title {
  min-height: 320px;
  padding: clamp(24px, 5vw, 48px);
  background:
    linear-gradient(120deg, rgba(215, 242, 223, 0.92), rgba(255, 223, 210, 0.86)),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1400&q=80");
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brief-title h2 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(30px, 6vw, 64px);
  line-height: 1.02;
}

.brief-title p:not(.date) {
  max-width: 680px;
  margin-bottom: 0;
  color: #24362d;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 15px;
}

.primary-link {
  background: var(--ink);
  color: #ffffff;
}

.secondary-link {
  border: 1px solid rgba(23, 33, 28, 0.28);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}

.date {
  margin-bottom: 18px;
  font-weight: 800;
}

.score-panel,
.brief-item,
.price-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.score-panel {
  align-self: stretch;
  padding: 24px;
}

.score-panel span,
.price-box span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.score-panel strong,
.price-box strong {
  display: block;
  margin-bottom: 16px;
  font-size: 28px;
  line-height: 1.1;
}

.score-panel p,
.price-box p {
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.brief-item {
  min-height: 280px;
  padding: 22px;
}

.rank {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  font-weight: 900;
}

.brief-item h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
}

.brief-item p {
  min-height: 116px;
  color: var(--muted);
  line-height: 1.6;
}

.tool-band,
.paid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.calculator {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 16px;
}

.result {
  min-height: 132px;
  padding: 18px;
  border-radius: 8px;
  background: var(--coral);
  font-weight: 800;
  line-height: 1.5;
}

.paid {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.paid h2,
.tool-band h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.paid p {
  color: var(--muted);
  line-height: 1.7;
}

footer {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .topbar,
  .brief-hero,
  .tool-band,
  .paid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .grid,
  .calculator {
    grid-template-columns: 1fr;
  }

  .brief-title {
    min-height: 420px;
  }
}
