/*
 * "Free tattoo consultations": where to book one, and each town's studios.
 * Served as-is (no build step); every rule is scoped under .cs.
 * One shop with the other public pages: the ink front window with the
 * two-tone headline, paper rooms after it. The page's own object is the
 * appointment card a shop hands over the counter, one per studio, with its
 * next free time.
 * Brand: ink #1C1712, paper #F7F3EC, ember #D65A31.
 */

.cs {
    --ink: #1C1712;
    --ink-2: #231C16;
    --paper: #F7F3EC;
    --paper-2: #EFE6D8;
    --card: #FFFDF8;
    --line: #E6DFD3;
    --soft: #6B5F53;
    --ember: #D65A31;
    --ember-ui: #C24E26;
    --ember-deep: #A83E1E;
    --ember-glow: #FF9B72;
    --on-ink-soft: #CDBFAE;
    --display: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: Satoshi, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --pad: clamp(56px, 7vw, 100px);
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    overflow-x: clip;
}

@layer cs-reset {
    :where(.cs) *, :where(.cs) *::before, :where(.cs) *::after { box-sizing: border-box; }
    :where(.cs) :where(img) { display: block; max-width: 100%; height: auto; }
    :where(.cs) :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
    :where(.cs) :where(h1, h2, h3, p, dl, dd, dt) { margin: 0; }
    :where(.cs) :where(a) { color: inherit; text-decoration: none; }
}
.cs :focus-visible { outline: 3px solid var(--ember-glow); outline-offset: 3px; }

.cs-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
@media (min-width: 640px) { .cs-wrap { width: min(1180px, 100% - 64px); } }

.cs-kicker { font: 800 12px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ember-glow); }
.cs-window h1, .cs-h2, .cs-card__name {
    font-family: var(--display); font-weight: 640; letter-spacing: -0.01em;
    font-variation-settings: "opsz" 144, "SOFT" 100; text-wrap: balance; overflow-wrap: break-word;
}

/* ═══════════ THE FRONT WINDOW ═══════════ */
.cs-window {
    color: var(--paper); padding: clamp(32px, 4.5vw, 64px) 0 clamp(52px, 6vw, 86px);
    background: radial-gradient(900px 520px at 85% 0%, rgba(214, 90, 49, .16), transparent 62%), var(--ink);
}
.cs-window__copy { display: grid; gap: 20px; max-width: 820px; }
.cs-window h1 { font-size: clamp(2.3rem, 1.35rem + 3.8vw, 4.2rem); line-height: 1.05; color: var(--paper); }
.cs-window h1 span { color: var(--ember-glow); font-style: italic; }
.cs-lede { max-width: 640px; font-size: clamp(16px, .95rem + .3vw, 18.5px); line-height: 1.6; color: rgba(247, 243, 236, .84); }
.cs-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(247, 243, 236, .22); font-size: 14px; font-weight: 700; color: var(--paper); }
.cs-pill i { color: var(--ember-glow); }

/* ═══════════ THE STUDIOS ═══════════ */
.cs-room { padding: clamp(40px, 5vw, 64px) 0 var(--pad); }
.cs-h2 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.4rem); line-height: 1.12; }
.cs-cards { display: grid; gap: 22px; margin-top: clamp(24px, 3vw, 34px); }
@media (min-width: 760px) { .cs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* An appointment card: a dashed edge, an ember tab, the next free time. */
.cs-card {
    position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start;
    padding: 18px 18px 18px 22px; background: var(--card); border: 1.5px dashed rgba(214, 90, 49, .5); border-radius: 16px;
    box-shadow: 0 24px 48px -40px rgba(28, 23, 18, .6);
}
.cs-card::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ember); }
.cs-card__photo { width: 112px; aspect-ratio: 1; border-radius: 12px; object-fit: cover; background: var(--paper-2); }
.cs-card__blank {
    display: grid; place-items: center; width: 112px; aspect-ratio: 1; border-radius: 12px;
    background: radial-gradient(160px 120px at 80% 0%, rgba(214, 90, 49, .3), transparent 70%), var(--ink);
    color: var(--ember-glow); font: italic 640 2.4rem/1 var(--display);
}
.cs-card__body { display: grid; gap: 6px; min-width: 0; }
.cs-card__name { font-size: 1.35rem; line-height: 1.2; }
.cs-card__line { font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.cs-card__next { font-size: 15px; font-weight: 750; color: var(--ink); }
.cs-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; }
.cs-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
    background: var(--ember-ui); color: #fff; font: 800 14.5px/1.2 var(--sans); box-shadow: 0 14px 30px -16px rgba(214, 90, 49, .9);
    transition: transform .2s, background-color .2s;
}
.cs-btn:hover { transform: translateY(-2px); background: var(--ember-deep); }
.cs-link { font-weight: 800; font-size: 14.5px; color: var(--ember-deep); border-bottom: 1.5px solid rgba(168, 62, 30, .35); }
.cs-link:hover { border-color: var(--ember-deep); }
@media (max-width: 480px) {
    .cs-card { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
    .cs-card__photo, .cs-card__blank { width: 76px; }
    .cs-card__blank { font-size: 1.8rem; }
}

.cs-empty { display: grid; gap: 14px; justify-items: start; padding: 28px; background: var(--card); border: 1px dashed var(--line); border-radius: 16px; }
.cs-empty p { font-size: 16px; line-height: 1.55; color: var(--soft); }

/* The towns, as a short index. */
.cs-towns { display: grid; gap: 12px; margin-top: clamp(24px, 3vw, 34px); }
@media (min-width: 640px) { .cs-towns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .cs-towns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cs-town {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, transform .2s;
}
.cs-town:hover { border-color: var(--ember); transform: translateY(-2px); }
.cs-town__name { font: 650 1.12rem/1.25 var(--display); }
.cs-town__country { display: block; margin-top: 2px; font-size: 13.5px; color: var(--soft); }
.cs-town__count {
    flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 999px;
    background: #FFF1EA; color: var(--ember-deep); font: 800 14px/1 var(--sans); font-variant-numeric: tabular-nums;
}

/* ═══════════ ANSWERS ═══════════ */
.cs-answers { padding: var(--pad) 0; background: var(--paper-2); }
.cs-faq { display: grid; gap: 14px; max-width: 820px; margin-top: clamp(24px, 3vw, 34px); }
.cs-faq div { padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.cs-faq dt { font: 650 1.12rem/1.3 var(--display); }
.cs-faq dd { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--soft); }

/* For the studios reading along. */
.cs-studios { padding: clamp(40px, 5vw, 64px) 0; background: var(--ink); color: var(--paper); }
.cs-studios .cs-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cs-studios p { max-width: 640px; font: 600 clamp(1.2rem, 1rem + .7vw, 1.55rem)/1.35 var(--display); }

/* ═══════════ LANGUAGES ═══════════ */
.cs:lang(ja) :is(.cs-window h1, .cs-h2, .cs-card__name), .cs:lang(ko) :is(.cs-window h1, .cs-h2, .cs-card__name) { font-weight: 700; letter-spacing: 0; }
.cs:lang(ja) :is(.cs-window h1, .cs-h2, .cs-card__name) { font-family: "Fraunces", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; word-break: auto-phrase; }
.cs:lang(ko) :is(.cs-window h1, .cs-h2, .cs-card__name) { font-family: "Fraunces", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
.cs:lang(ko) { word-break: keep-all; }
.cs:lang(ja) .cs-window h1 span, .cs:lang(ko) .cs-window h1 span { font-style: normal; }
.cs:lang(ja) .cs-kicker, .cs:lang(ko) .cs-kicker, .cs:lang(ru) .cs-kicker, .cs:lang(uk) .cs-kicker { letter-spacing: .08em; }
