@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

:root {
  --paper: #ffffff;
  --ink: #202824;
  --muted: #65716a;
  --line: #dce3de;
  --line-strong: #b8c6bd;
  --green: #356348;
  --green-dark: #264c36;
  --mint: #f2f7f3;
  --surface: #f7f9f7;
  --warning: #976123;
  font-family: "Noto Sans", "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--paper); }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.site-shell { width: min(1440px, 100%); margin: 0 auto; padding: 0 56px; }
.site-header { min-height: 88px; display: flex; gap: 24px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -1px; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--green); border-radius: 8px; color: var(--green); font-size: 21px; }
.brand-accent { color: var(--green); }
.header-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; color: var(--muted); }
.nav-link:hover, .nav-link-active { color: var(--green); }
.header-pill { padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--green); font-size: 12px; font-weight: 600; }
.header-pill:hover { background: var(--mint); }
.skip-link { position: absolute; inset-inline-start: 16px; top: -80px; padding: 12px; background: var(--paper); border: 1px solid var(--green); z-index: 2; }
.skip-link:focus { top: 12px; }

.home-main { max-width: 1120px; margin: 0 auto; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; align-items: center; padding: 88px 0 64px; }
.home-hero h1 { max-width: 720px; margin: 0; font-size: clamp(40px, 4.6vw, 64px); font-weight: 600; line-height: 1.23; letter-spacing: -.045em; word-break: keep-all; }
.home-hero h1 span { color: var(--green); }
.home-hero p { max-width: 500px; margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; word-break: keep-all; }
.hero-drawing { display: grid; position: relative; height: 246px; place-items: center; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); }
.hero-drawing::before { content: ""; position: absolute; width: 174px; height: 174px; border: 1px dashed var(--line-strong); border-radius: 50%; }
.hero-drawing svg { width: 130px; height: 130px; color: var(--green); }
.hero-drawing span { position: absolute; bottom: 23px; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.search-form { display: block; max-width: 760px; }
.search-label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 500; }
.search-field { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); transition: border-color .2s; }
.search-field:focus-within { border-color: var(--green); outline: 2px solid var(--mint); }
.search-field > svg { width: 21px; height: 21px; color: var(--muted); flex-shrink: 0; }
.search-field input { min-width: 0; width: 100%; padding: 18px 0; border: 0; outline: none; background: var(--paper); color: var(--ink); font-size: 15px; }
.search-field input::placeholder { color: var(--muted); }
.search-field input::-webkit-search-cancel-button { appearance: none; }
.search-clear { display: grid; min-width: 44px; min-height: 44px; place-items: center; border: 0; border-radius: 7px; background: var(--paper); color: var(--muted); cursor: pointer; }
.search-clear:hover { background: var(--surface); }
.search-clear svg { width: 18px; height: 18px; }
.tool-section { padding: 48px 0 72px; }
.list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.list-heading h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.5px; }
.result-count { margin: 0; color: var(--muted); font-size: 12px; }
.tool-list { display: grid; grid-auto-flow: dense; gap: 16px; }
.tool-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); transition: border-color .2s, background .2s; }
.tool-card:hover { border-color: var(--green); background: var(--mint); }
.tool-icon { display: grid; width: 76px; height: 76px; place-items: center; border: 1px solid var(--line); border-radius: 16px; color: var(--green); background: var(--paper); }
.tool-icon svg { width: 38px; height: 38px; transition: transform .4s; }
.tool-card:hover .tool-icon svg { transform: rotate(-7deg) scale(1.06); }
.tool-category { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.tool-card h3 { margin: 0 0 9px; font-size: 23px; font-weight: 600; letter-spacing: -.7px; }
.tool-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; word-break: keep-all; }
.tool-open { display: inline-flex; align-items: center; gap: 20px; color: var(--green); font-size: 12px; font-weight: 600; }
.tool-open svg { width: 20px; height: 20px; transition: transform .2s; }
.tool-card:hover .tool-open svg { transform: translateX(4px); }
.search-empty { padding: 44px 20px; border: 1px dashed var(--line-strong); border-radius: 16px; text-align: center; }
.search-empty h3 { margin: 0 0 10px; font-size: 18px; }
.search-empty p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.search-empty button { margin-top: 12px; }
.home-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 72px; }
.home-principles article { padding: 30px 28px; }
.home-principles article:first-child { padding-inline-start: 0; }
.home-principles article + article { border-inline-start: 1px solid var(--line); }
.home-principles h2 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.home-principles p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; word-break: keep-all; }

.top-ad { max-width: 970px; margin: 24px auto 0; }
.top-ad-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; text-align: center; }
.top-ad-slot { position: relative; min-height: 90px; border: 1px dashed var(--line); border-radius: 10px; background: var(--paper); }
.top-ad-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 11px; pointer-events: none; }
.top-ad.is-enabled .top-ad-slot { border-color: transparent; }
.top-ad.is-enabled .top-ad-placeholder { display: none; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px) minmax(0, 1fr); gap: 40px; align-items: start; padding: 40px 0 72px; }
.main-column { width: 100%; max-width: 660px; margin: 0 auto; }
.ad-rail { display: flex; justify-content: center; padding-top: 160px; }
.ad-placeholder { display: flex; width: 100%; max-width: 160px; height: 300px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; }
.ad-label { padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; font-size: 9px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 28px; }
.page-heading h1 { margin: 0; font-size: clamp(27px, 3vw, 34px); font-weight: 600; letter-spacing: -1px; }
.page-heading p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; word-break: keep-all; }
.heading-icon { display: grid; flex-shrink: 0; width: 58px; height: 58px; place-items: center; border: 1px solid var(--line); border-radius: 14px; color: var(--green); }
.heading-icon svg { width: 34px; height: 34px; }
.timer-card { padding: 28px 38px 22px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--paper); text-align: center; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.card-note { color: var(--muted); font-size: 11px; }
.timer-display { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 32px 0 8px; font-size: clamp(55px, 7vw, 76px); font-weight: 500; letter-spacing: -3px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.time-separator { color: var(--line-strong); font-size: .65em; }
.unit-labels, .timer-inputs { display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr; align-items: center; width: min(360px, 100%); margin: 0 auto; }
.unit-labels { margin-bottom: 22px; color: var(--muted); font-size: 11px; }
.time-field input { width: 100%; height: 52px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 20px; text-align: center; }
.time-field input:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.time-field input:disabled { background: var(--surface); color: var(--muted); }
.input-separator { color: var(--muted); font-size: 18px; }
.timer-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; min-height: 46px; min-width: 136px; padding: 0 18px; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: background .18s, transform .18s; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button svg { width: 17px; height: 17px; }
.button-primary { border-color: var(--green); background: var(--green); color: var(--paper); }
.button-primary:hover:not(:disabled) { background: var(--green-dark); }
.button-primary:disabled { opacity: .65; cursor: default; }
.button-secondary { background: var(--paper); color: var(--ink); }
.button-secondary:hover { background: var(--surface); }
.timer-status { min-height: 18px; margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.status-running { color: var(--green); }
.status-finished { color: var(--warning); }
.how-to { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.how-to-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--green); }
.how-to-icon svg { width: 20px; height: 20px; }
.how-to h2 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.how-to ol { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.timer-guide { margin-top: 40px; }
.timer-guide h2 { margin: 32px 0 12px; font-size: 17px; font-weight: 600; line-height: 1.6; letter-spacing: -.4px; }
.timer-guide p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.timer-faq details { border-bottom: 1px solid var(--line); }
.timer-faq summary { padding: 18px 0; cursor: pointer; font-size: 13px; font-weight: 500; line-height: 1.8; }
.timer-faq p { margin: 0 0 18px; }
.timer-guide a, .info-main a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.info-main { width: min(760px, 100%); margin: 64px auto 80px; }
.info-main h1 { margin: 0 0 24px; font-size: 36px; font-weight: 600; letter-spacing: -1px; }
.info-main h2 { margin: 36px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 600; }
.info-main p, .info-main li { color: var(--muted); font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.info-main .updated-at { font-size: 12px; }
.bottom-note { margin-top: 28px; color: var(--muted); font-size: 11px; text-align: center; }
.site-footer { display: flex; min-height: 88px; padding: 20px 0; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 1000px) {
  .site-shell { padding: 0 32px; }
  .page-grid { gap: 20px; }
  .home-hero { grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; }
  .hero-drawing { height: 220px; }
}
@media (max-width: 760px) {
  .site-shell { padding: 0 22px; }
  .site-header { min-height: 76px; gap: 14px; }
  .header-nav { gap: 18px; }
  .header-pill { display: none; }
  .home-hero { grid-template-columns: minmax(0, 1fr); padding: 56px 0 36px; }
  .home-hero h1 { font-size: 42px; }
  .home-hero p { font-size: 14px; margin-top: 20px; }
  .hero-drawing { display: none; }
  .tool-section { padding: 36px 0 48px; }
  .tool-card { grid-template-columns: 56px minmax(0, 1fr); padding: 24px; gap: 20px; }
  .tool-icon { width: 56px; height: 56px; border-radius: 12px; }
  .tool-icon svg { width: 30px; height: 30px; }
  .tool-open { grid-column: 2; }
  .home-principles { margin-bottom: 48px; }
  .home-principles article { padding: 24px 16px; }
  .top-ad { margin-top: 20px; }
  .page-grid { display: block; padding: 32px 0 56px; }
  .ad-rail { display: none; }
  .main-column { max-width: 590px; }
  .timer-card { padding: 24px; }
  .info-main { margin: 40px auto 56px; }
}
@media (max-width: 440px) {
  .site-shell { padding: 0 16px; }
  .site-header { min-height: 72px; gap: 8px; }
  .brand { font-size: 17px; gap: 7px; }
  .brand-mark { width: 26px; height: 26px; font-size: 18px; }
  .header-nav { gap: 12px; }
  .nav-link { font-size: 11px; }
  .home-hero { padding-top: 44px; }
  .home-hero h1 { font-size: 32px; }
  .search-field { min-height: 58px; padding: 0 14px; gap: 10px; }
  .search-field input { font-size: 13px; }
  .tool-card { padding: 20px; gap: 16px; }
  .tool-card h3 { font-size: 20px; }
  .tool-description { font-size: 12px; }
  .tool-category { font-size: 10px; }
  .home-principles { grid-template-columns: minmax(0, 1fr); }
  .home-principles article { padding: 22px 0; }
  .home-principles article + article { border-inline-start: 0; border-top: 1px solid var(--line); }
  .page-heading h1 { font-size: 27px; }
  .page-heading p { font-size: 11px; }
  .heading-icon { width: 44px; height: 44px; border-radius: 12px; }
  .heading-icon svg { width: 28px; height: 28px; }
  .timer-card { padding: 22px 16px; }
  .card-note { font-size: 10px; }
  .timer-display { gap: 5px; font-size: clamp(44px, 13vw, 58px); letter-spacing: -2px; }
  .unit-labels, .timer-inputs { width: 100%; grid-template-columns: 1fr 15px 1fr 15px 1fr; }
  .time-field input { height: 48px; font-size: 18px; }
  .timer-actions .button { min-width: 0; flex: 1; }
  .how-to { padding: 16px 14px; }
  .info-main h1 { font-size: 28px; }
  .footer-note { display: none; }
  .footer-links { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
