/* Younique — concrete paper, black ink, Pretendard + Bodoni numerals (see DESIGN.md) */
:root {
  --paper: #eeece8;
  --card: #f7f6f3;
  --ink: #000000;
  --muted: #625d57;
  --line: #cbc6be;
  --stone: #e2ded7;
  --action: #000000;
  --action-ink: #ffffff;
  --error: #9b2215;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, system-ui, sans-serif;
  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.15; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; font-weight: 600; padding: 12px 18px; }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
.svc:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(560px, 100%); margin: 0 auto; padding: 0 24px; }

/* Header: logo is the hero; everything else stays small */
.top { padding: 56px 0 32px; }
.brand { margin: 0 0 28px; }
.brand img { display: block; width: min(380px, 100%); height: auto; }
.meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 14px; font-size: 14px; }
.status { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status.open::before { background: #2e7d4f; }
.top address { font-style: normal; color: var(--muted); }

/* Views */
section.view { padding-bottom: 150px; }
.view > h2 { font-size: 30px; letter-spacing: -0.03em; margin: 8px 0 10px; outline: none; }
.lede { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.back { background: none; border: 0; padding: 10px 0; min-height: 44px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Services: hairline list, selected row turns black */
.cat { border: 0; margin: 0 0 44px; padding: 0; min-width: 0; }
.cat legend { font: 400 13px/1 var(--serif); letter-spacing: .28em; text-transform: uppercase; padding: 0; margin-bottom: 14px; }
.svc { display: grid; grid-template-columns: 1fr auto 18px; gap: 2px 16px; align-items: baseline; padding: 18px 14px; margin: 0 -14px; border-top: 1px solid var(--line); cursor: pointer; transition: background 220ms var(--ease), color 220ms var(--ease); }
.cat .svc:last-of-type { border-bottom: 1px solid var(--line); }
.svc:hover { background: var(--stone); }
.svc b { font-weight: 500; font-size: 16px; }
.svc small { grid-column: 1; color: var(--muted); font-size: 13px; transition: color 220ms var(--ease); }
.svc .price { font: 400 17px var(--serif); white-space: nowrap; }
.svc input { grid-column: 3; grid-row: 1; appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--ink); border-radius: 50%; align-self: center; cursor: pointer; display: grid; place-items: center; }
.svc input::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform 220ms var(--ease); }
.svc input:checked::after { transform: scale(1); }
.svc input:focus-visible { outline: none; }
.svc:has(input:checked) { background: var(--ink); color: var(--action-ink); border-top-color: var(--ink); }
.svc:has(input:checked) small { color: #c9c4bc; }
.svc:has(input:checked) input { border-color: var(--action-ink); color: var(--action-ink); }
.svc:has(input:checked) + .svc { border-top-color: var(--ink); }

.visit { margin-top: 64px; }
.visit h2 { font: 400 13px/1 var(--serif); letter-spacing: .28em; text-transform: uppercase; margin-bottom: 18px; }
.visit dl { display: grid; grid-template-columns: 88px 1fr; margin: 0; font-size: 15px; }
.visit dt, .visit dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.visit dt { color: var(--muted); }

/* Date & time */
.cal { border-top: 1px solid var(--ink); padding-top: 8px; margin-bottom: 28px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h3 { font: 400 22px var(--serif); }
.cal-nav { width: 44px; height: 44px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
.cal-nav:disabled { opacity: .25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dow { font-size: 11px; color: var(--muted); padding: 6px 0; }
.day { aspect-ratio: 1; max-height: 52px; width: 100%; border: 0; border-radius: 50%; background: transparent; font: 400 17px var(--serif); cursor: pointer; transition: background 220ms var(--ease), color 220ms var(--ease); }
.day:hover:not(:disabled) { background: var(--stone); }
.day:disabled { color: #b5afa7; cursor: default; text-decoration: line-through; text-decoration-color: transparent; }
.day[aria-pressed="true"] { background: var(--ink); color: var(--action-ink); }
.slot-label { font: 400 13px/1 var(--serif); letter-spacing: .28em; text-transform: uppercase; margin: 8px 0 12px; }
.slot-label ~ .slot-label { margin-top: 24px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.time { min-height: 48px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 15px; font-weight: 500; transition: background 220ms var(--ease), color 220ms var(--ease); }
.time:hover { background: var(--stone); }
.time[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--action-ink); }
.empty { color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 0; font-size: 15px; }

/* Form */
.field { display: grid; gap: 4px; margin-bottom: 26px; }
.field label { font-size: 13px; font-weight: 500; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { font: inherit; font-size: 17px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-width: 2px; padding-bottom: 9px; }
.field textarea::placeholder { color: #8a847c; font-size: 15px; }
.hp { position: absolute; left: -9999px; }
.recap { background: var(--card); padding: 22px; margin-bottom: 36px; }
.recap p { margin: 0; font-size: 15px; color: var(--muted); }
.recap .when { font: 400 22px/1.3 var(--serif); color: var(--ink); margin-bottom: 8px; }
.err { color: var(--error); font-weight: 500; margin: 0 0 12px; }
.err:empty { display: none; }

.done-mark { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; margin: 12px 0 28px; animation: rise 600ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Bottom bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(238, 236, 232, .88); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-top: 1px solid var(--line); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); }
.bar .wrap { display: flex; align-items: center; gap: 16px; }
.bar-sum { flex: 1; min-width: 0; margin: 0; font-size: 13px; color: var(--muted); }
.bar-sum b { display: block; color: var(--ink); font-size: 15px; font-weight: 500; }
.btn { min-height: 52px; padding: 0 30px; border: 0; border-radius: 0; background: var(--action); color: var(--action-ink); font-size: 15px; font-weight: 500; letter-spacing: .02em; cursor: pointer; white-space: nowrap; transition: transform 120ms, background 200ms; }
.btn:active { transform: scale(.97); }
.btn:disabled { background: #bdb8b0; color: #000; cursor: not-allowed; }

/* Footer */
footer { padding: 28px 0 170px; font-size: 13px; color: var(--muted); }
footer .bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
footer a { color: var(--muted); }
footer .sig { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; opacity: .9; text-decoration: none; transition: transform 200ms cubic-bezier(.34, 1.56, .64, 1), opacity 160ms; }
footer .sig b { font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
footer .sig img { height: 34px; width: auto; display: block; }
footer .sig:hover { opacity: 1; transform: rotate(-4deg) scale(1.08); }

/* Text pages */
.page { padding: 56px 24px 60px; }
.page h1 { font-size: 40px; letter-spacing: -0.03em; margin-bottom: 20px; }
.page h2 { font: 400 13px/1 var(--serif); letter-spacing: .28em; text-transform: uppercase; margin: 40px 0 14px; }
.page p, .page li { max-width: 62ch; }

/* Accessibility button */
.a11y { position: fixed; left: 16px; bottom: 100px; z-index: 90; }
.a11y-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); display: grid; place-items: center; cursor: pointer; }
.bar[hidden] ~ .a11y { bottom: 16px; }
.a11y-panel[hidden] { display: none !important; }
.a11y-panel { position: absolute; left: 0; bottom: 56px; width: 240px; background: var(--card); color: var(--ink); border: 1px solid var(--ink); padding: 16px; display: grid; gap: 10px; font-size: 14px; }
.a11y-panel label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.a11y-panel input { width: 18px; height: 18px; accent-color: var(--ink); }
.a11y-reset { justify-self: start; background: none; border: 1px solid var(--ink); padding: 6px 14px; cursor: pointer; }
.a11y-bigtext body { font-size: 19px; }
.a11y-bigtext .svc b, .a11y-bigtext .bar-sum b { font-size: 19px; }
.a11y-bigtext .svc small, .a11y-bigtext .lede, .a11y-bigtext .field label, .a11y-bigtext .bar-sum, .a11y-bigtext .meta { font-size: 17px; }
.a11y-contrast body { --paper: #fff; --card: #fff; --ink: #000; --muted: #000; --line: #000; --stone: #fff; --action: #000; background: #fff; color: #000; }
.a11y-contrast .svc:has(input:checked) small, .a11y-contrast .date[aria-pressed="true"] span { color: #fff; }
.a11y-contrast .bar { background: #fff; backdrop-filter: none; }
.a11y-contrast a { text-decoration: underline; }
.a11y-nomotion *, .a11y-nomotion *::before, .a11y-nomotion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.a11y-links a { text-decoration: underline !important; }
.a11y-spacing body { line-height: 1.85; letter-spacing: .03em; word-spacing: .12em; }

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .top { padding-top: 36px; }
  .svc { margin: 0 -20px; padding: 18px 20px; }
  footer .sig img { height: 28px; }
  footer .bottom { padding-left: 56px; }
  .a11y { left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .date, .time { border: 1px solid CanvasText; }
  .svc input { forced-color-adjust: auto; }
}

/* Category chips (Apple/Google-style segmented filter) */
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px 28px; padding: 2px 24px; position: sticky; top: 0; z-index: 5; background: var(--paper); padding-block: 12px; }
.cats::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--action-ink); }
.chip .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--action-ink); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.chip[aria-pressed="true"] .count { background: var(--action-ink); color: var(--ink); }
.cat legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cat { margin-bottom: 0; }
@media (max-width: 600px) { .cats { margin-inline: -20px; padding-inline: 20px; } }

.cat-note { color: var(--muted); font-size: 13px; margin: -8px 0 14px; }
.link-btn { display: inline-flex; align-items: center; text-decoration: none; margin-bottom: 4px; }
.a11y-contrast .day:disabled { color: #595959; }
.top { position: relative; }
.lang { position: absolute; right: 0; top: 16px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
html[lang="ko"] body { word-break: keep-all; }
