:root {
  --paper: #f7f4ee;
  --card: #fffdfa;
  --ink: #292723;
  --muted: #77736b;
  --line: #ded9d0;
  --orange: #e96f3e;
  --orange-soft: #f9e6dc;
  --navy: #26364a;
  --blue-soft: #e8eef3;
  --yellow: #f4bd4d;
  --shadow: 0 18px 50px rgba(52, 45, 36, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% 7%, rgba(244, 189, 77, 0.16), transparent 21rem),
    radial-gradient(circle at 88% 18%, rgba(106, 145, 171, 0.13), transparent 22rem),
    var(--paper);
  color: var(--ink);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }
button { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(233, 111, 62, 0.4);
  outline-offset: 3px;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(93, 87, 76, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 44% 44%;
  background: var(--orange);
  color: white;
  font-size: 12px;
  transform: rotate(-5deg);
}

.header-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.intro {
  padding: 54px 0 38px;
  text-align: center;
}

.eyebrow,
.step {
  margin: 0;
  color: var(--orange);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.eyebrow span { font-size: 8px; vertical-align: 1px; }

h1 {
  margin: 14px 0 18px;
  font-size: clamp(36px, 9vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.065em;
}

h1 em {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.intro-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.app-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid rgba(100, 92, 80, 0.13);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.settings-panel {
  padding: 26px 20px 22px;
  background: rgba(255, 253, 250, 0.78);
  backdrop-filter: blur(10px);
}

.section-heading,
.result-topline,
.subheading,
.temperature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

h2, h3, p { letter-spacing: -0.025em; }

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.25;
}

.required-note {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #a34d29;
  font-size: 11px;
  font-weight: 700;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

legend {
  width: 100%;
  margin-bottom: 14px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}

.temperature-row { margin-bottom: 14px; }

.temperature-row label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.temperature-row output {
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.range-wrap + .range-wrap { margin-top: 17px; }

input[type="range"] {
  width: 100%;
  height: 22px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--orange) 0 var(--fill, 50%), #d9d5ce var(--fill, 50%) 100%);
}

input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7.5px;
  appearance: none;
  border: 4px solid var(--card);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 1px 5px rgba(61, 48, 37, 0.28);
}

input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 5px;
  background: #d9d5ce;
}

input[type="range"]::-moz-range-progress {
  height: 5px;
  border-radius: 5px;
  background: var(--orange);
}

input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 4px solid var(--card);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 1px 5px rgba(61, 48, 37, 0.28);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 1px;
  color: #aaa59c;
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
}

.choice-grid {
  display: grid;
  gap: 8px;
}

.choice-grid--three { grid-template-columns: repeat(3, 1fr); }

.choice { cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice > span {
  min-height: 63px;
  padding: 9px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.choice b {
  color: #8b9094;
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  line-height: 1;
}

.choice input:checked + span {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: #833e24;
  box-shadow: inset 0 0 0 1px var(--orange);
}

.choice input:checked + span b { color: var(--orange); }
.choice input:focus-visible + span { outline: 3px solid rgba(233, 111, 62, 0.35); outline-offset: 2px; }

.activity-grid { grid-template-columns: 1fr; }

.choice--wide > span {
  min-height: 58px;
  padding: 9px 13px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}

.choice--wide b {
  width: 30px;
  text-align: center;
}

.choice--wide span span { display: flex; flex-direction: column; }
.choice--wide strong { color: var(--ink); font-size: 12px; }
.choice--wide small { margin-top: 1px; font-size: 10px; font-weight: 500; }

.reset-button {
  width: 100%;
  margin-top: 18px;
  padding: 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.reset-button span { display: inline-block; margin-right: 4px; font-size: 15px; }

.result-panel {
  position: relative;
  padding: 27px 20px 22px;
  background: var(--navy);
  color: #f8f5ef;
}

.result-panel::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.02), 0 0 0 68px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.result-panel .step { color: #f4c26b; }

.weather-pill {
  position: relative;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dddfe1;
  font-family: "DM Sans", "Noto Sans KR", sans-serif;
  font-size: 10px;
}

.result-heading {
  position: relative;
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}

.result-kicker {
  margin: 0 0 8px;
  color: #bdc7d0;
  font-size: 12px;
}

.result-heading h2 {
  margin: 0;
  font-size: clamp(24px, 6.5vw, 35px);
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.weather-illustration {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f7c45b;
  color: #29384b;
  box-shadow: 12px 10px 0 rgba(255, 255, 255, 0.06);
  font-size: 31px;
}

.temperature-note {
  margin-top: 24px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
}

.temperature-note > span {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #f4c26b;
}

.temperature-note p { margin: 0; color: #bcc5cd; font-size: 11px; }
.temperature-note strong { color: #f8f5ef; font-size: 12px; }

.layers, .checklist {
  margin-top: 26px;
}

.subheading {
  margin-bottom: 12px;
}

.subheading h3 { margin: 0; font-size: 13px; }
.subheading > span { color: #929dab; font-size: 9px; }

.layer-list, .checklist ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.layer-list {
  display: grid;
  gap: 8px;
}

.layer-item {
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.layer-number {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #f4c26b;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.layer-copy strong { display: block; font-size: 12px; }
.layer-copy span { display: block; margin-top: 2px; color: #aeb7c0; font-size: 10px; }

.layer-tag {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(244, 194, 107, 0.12);
  color: #f4c26b;
  font-size: 9px;
  font-weight: 700;
}

.checklist ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.check-item {
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: #dce1e5;
  font-size: 10px;
}

.check-item span {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(117, 182, 150, 0.16);
  color: #83d1a8;
  font-weight: 800;
}

.tip {
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tip > span {
  height: fit-content;
  padding: 3px 6px;
  border-radius: 5px;
  background: #f4c26b;
  color: #2c3949;
  font-family: "DM Sans", sans-serif;
  font-size: 8px;
  font-weight: 800;
}

.tip p { margin: 0; color: #aeb7c0; font-size: 10px; }

.share-button {
  width: 100%;
  margin-top: 21px;
  padding: 13px 16px;
  border: 0;
  border-radius: 12px;
  background: #f6f1e8;
  color: #27364a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.share-button:hover { background: white; transform: translateY(-1px); }
.share-button span { margin-right: 5px; }

.share-status {
  min-height: 17px;
  margin: 6px 0 -8px;
  color: #aeb7c0;
  font-size: 10px;
  text-align: center;
}

.disclaimer {
  max-width: 700px;
  margin: 25px auto 0;
  color: #8c877e;
  font-size: 10px;
  text-align: center;
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 54px auto 0;
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(93, 87, 76, 0.18);
  color: var(--muted);
  font-size: 10px;
}

footer p { margin: 0; }

@media (min-width: 560px) {
  .site-header, main, footer { width: min(1120px, calc(100% - 56px)); }
  .settings-panel, .result-panel { padding: 32px; }
  .activity-grid { grid-template-columns: repeat(3, 1fr); }
  .choice--wide > span { min-height: 75px; padding: 10px 6px; flex-direction: column; justify-content: center; text-align: center; }
  .choice--wide span span { align-items: center; }
  .checklist ul { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .site-header { padding: 24px 0; }
  .intro { padding: 67px 0 48px; }
  .app-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 22px; }
  .settings-panel, .result-panel { min-height: 744px; padding: 34px 36px 28px; }
  .result-panel { position: sticky; top: 18px; }
  .result-heading h2 { font-size: 34px; }
  .weather-illustration { width: 84px; height: 84px; font-size: 36px; }
  .layer-list { gap: 9px; }
  .layer-item { padding: 12px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
