:root {
  color-scheme: light;
  --ink: #1d2924;
  --muted: #65716b;
  --green: #376b50;
  --green-dark: #28543d;
  --green-pale: #eaf2ec;
  --line: #e5e9e5;
  --paper: #fff;
  --background: #f5f7f4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
.site-header { height: 64px; display: flex; align-items: center; max-width: 700px; margin: 0 auto; padding: 0 22px; }
.brand { color: var(--green-dark); font-size: 15px; font-weight: 800; letter-spacing: .055em; text-decoration: none; }
.page-shell { width: min(100% - 32px, 660px); margin: 0 auto 60px; }
.intro { padding: 34px 4px 24px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 13px; font-weight: 700; }
h1 { margin: 0; font-size: clamp(29px, 7vw, 38px); line-height: 1.25; letter-spacing: -.045em; }
.lede { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 4px 16px rgb(24 45 33 / 3%); }
.calculator { padding: 22px; }
.form-heading { margin: 0 0 20px; font-size: 17px; letter-spacing: -.02em; }
.days-heading { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.days-heading output { color: var(--green); font-size: 17px; }
.days-slider { display: block; width: 100%; height: 32px; margin: 12px 0 0; accent-color: var(--green); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: -3px; }
.choice-group { min-width: 0; padding: 0; margin: 22px 0 0; border: 0; }
.choice-group legend { margin-bottom: 9px; font-size: 14px; font-weight: 700; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.segmented label { min-width: 0; cursor: pointer; }
.segmented input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.segmented span { min-height: 46px; display: flex; align-items: center; justify-content: center; padding: 8px 5px; border: 1px solid var(--line); border-radius: 10px; color: #4e5a53; text-align: center; font-size: 13px; line-height: 1.25; transition: background .15s, border-color .15s, color .15s; }
.segmented input:checked + span { color: var(--green-dark); background: var(--green-pale); border-color: #9cbaa5; font-weight: 700; }
.segmented input:focus-visible + span, .days-slider:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #8bb99a; outline-offset: 3px; }
.calculate-button { width: 100%; min-height: 54px; display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 28px; border: 0; border-radius: 12px; background: var(--green); color: white; font: inherit; font-weight: 700; cursor: pointer; }
.calculate-button:hover { background: var(--green-dark); }
.form-status { margin: 12px 0 0; color: #8a352c; font-size: 14px; }
.form-status:empty { display: none; }
.noscript-note { padding: 12px 16px; border: 1px solid #d6dfd8; border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; }
.result { margin-top: 18px; padding: 24px; }
.result-kicker { margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.recommended { margin: 0; color: var(--green-dark); font-size: clamp(48px, 12vw, 68px); font-weight: 800; letter-spacing: -.06em; line-height: 1.25; }
.recommendation-note { margin: 4px 0 20px; color: var(--muted); }
.result-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-options div { min-height: 82px; padding: 14px; border-radius: 12px; background: #f5f7f4; }
.result-options span, .result-options strong { display: block; }
.result-options span { color: var(--muted); font-size: 12px; }
.result-options strong { margin-top: 4px; font-size: 20px; }
.calculation-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
summary { cursor: pointer; font-weight: 700; }
.calculation-details ul { padding-left: 20px; margin: 12px 0 8px; color: #4d5952; font-size: 14px; }
.calculation-details li + li { margin-top: 4px; }
.calculation-details p { color: var(--muted); font-size: 14px; }
.safety-note { margin: 16px 0 0; color: #6c766f; font-size: 12px; }
.travel-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 12px; margin: 20px 4px 36px; color: var(--muted); font-size: 13px; }
.travel-cta a { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.travel-cta a:hover { text-decoration: underline; }
.content-section { padding: 22px; }
.content-section h2, .faq-section h2 { margin: 0 0 10px; font-size: 19px; letter-spacing: -.025em; }
.content-section p, .faq-item p { margin: 0; color: #56615b; font-size: 14px; }
.faq-section { margin-top: 36px; }
.faq-section h2 { margin-bottom: 14px; }
.faq-item { padding: 16px 2px; border-bottom: 1px solid var(--line); }
.faq-item summary { font-size: 14px; }
.faq-item p { padding: 10px 20px 0 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; max-width: 700px; margin: 0 auto; padding: 18px 22px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer a { text-decoration: none; }
.home-page { min-height: calc(100vh - 150px); }
.home-page .intro { padding-top: 72px; padding-bottom: 28px; }
.home-page h1 { font-size: clamp(30px, 7vw, 40px); }
.tool-link { display: flex; align-items: center; gap: 14px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; }
.tool-link:hover { border-color: #a7bdae; }
.tool-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--green-pale); color: var(--green-dark); font-size: 14px; font-weight: 800; }
.tool-copy { display: grid; gap: 3px; flex: 1; }
.tool-copy strong { font-size: 15px; }
.tool-copy span { color: var(--muted); font-size: 13px; }
.tool-action { white-space: nowrap; color: var(--green-dark); font-size: 13px; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (min-width: 600px) {
  .site-header { height: 72px; }
  .intro { padding-top: 42px; }
  .calculator { padding: 28px; }
  .segmented span { min-height: 48px; font-size: 14px; }
}

@media (max-width: 380px) {
  .page-shell { width: min(100% - 24px, 660px); }
  .calculator, .result, .content-section { padding: 18px; }
  .segmented { gap: 5px; }
  .segmented span { min-height: 46px; padding-inline: 3px; font-size: 12px; }
  .travel-cta { display: grid; }
}

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