/*
 * InkArtists account pages: your name, photo and translation, and closing the
 * account. Served as-is (no build step); every rule is scoped under .ac.
 * A client reads them under the ink header with the shop's front window; an
 * artist inside their workspace with the same window; a studio inside its
 * workspace, under the workspace's own heading.
 * Brand: ink #1C1712, paper #F7F3EC, ember #D65A31.
 */

.ac {
    --ink: #1C1712;
    --ink-2: #3E352D;
    --paper: #F7F3EC;
    --paper-2: #EFE6D8;
    --card: #FFFDF8;
    --line: #E6DFD3;
    --line-2: #D3C6B4;
    --soft: #6B5F53;
    --ember: #D65A31;
    --ember-ui: #C24E26;
    --ember-deep: #A83E1E;
    --ember-tint: #FFE4D9;
    --ember-glow: #FF9B72;
    --green: #1F6B47;
    --green-tint: #E3F4EA;
    --amber: #8A5208;
    --amber-tint: #FFF1D2;
    --red: #9A2B20;
    --red-tint: #FCE4E2;
    --display: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: Satoshi, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    overflow-x: clip;
}
/* Resets in a cascade layer, under Tailwind's utilities. */
@layer ac-reset {
    :where(.ac) *, :where(.ac) *::before, :where(.ac) *::after { box-sizing: border-box; }
    :where(.ac) :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
    :where(.ac) :where(h1, h2, h3, p) { margin: 0; }
    :where(.ac) :where(a) { color: inherit; text-decoration: none; }
    :where(.ac) :where(button, input, select, textarea) { font: inherit; color: inherit; }
}
.ac :focus-visible { outline: 3px solid var(--ember-glow); outline-offset: 3px; }

.ac-wrap { width: min(760px, 100% - 32px); margin-inline: auto; }
@media (min-width: 640px) { .ac-wrap { width: min(760px, 100% - 64px); } }
/* Inside a workspace the page already has its margins. */
.ac--artist, .ac--studio { background: transparent; }
.ac--artist .ac-wrap, .ac--studio .ac-wrap { width: min(760px, 100%); margin-inline: 0; }
/* In an artist's workspace the window is a card at the top of the same column. */
.ac--artist .ac-window { width: min(760px, 100%); border-radius: 20px; }
.ac--artist .ac-window .ac-wrap { width: auto; margin-inline: clamp(20px, 3.4vw, 32px); }

/* ═══════════════════════════ THE FRONT WINDOW ═══════════════════════════ */
.ac-window {
    color: var(--paper); padding: clamp(28px, 4.5vw, 52px) 0 clamp(30px, 4.5vw, 54px);
    background: radial-gradient(900px 520px at 85% 0%, rgba(214, 90, 49, .16), transparent 62%), var(--ink);
}
.ac-window__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 28px; }
.ac-window__copy { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.ac-kicker { font: 800 12px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ember-glow); }
/* Inside an artist's workspace its heading rule (.aw-tool-page .aw-content h1) reaches this too. */
.ac .ac-window h1.ac-title {
    font: 640 clamp(2.1rem, 1.3rem + 2.8vw, 3.4rem)/1.06 var(--display); letter-spacing: -0.01em;
    text-wrap: balance; overflow-wrap: anywhere; color: var(--paper);
}
/* Who is signed in: the photo, the name and the address the account uses. */
.ac-who { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.ac-who__photo {
    flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
    background: rgba(247, 243, 236, .1); color: var(--ember-glow); font: 650 19px/1 var(--display); box-shadow: 0 0 0 2px rgba(247, 243, 236, .22);
}
.ac-who__photo img { width: 100%; height: 100%; object-fit: cover; }
.ac-who__copy { display: grid; gap: 2px; min-width: 0; }
.ac-who__name { font-weight: 800; font-size: 15px; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-who__mail { font-size: 13px; color: rgba(247, 243, 236, .7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══════════════════════════ THE PAGE AND ITS CARDS ═══════════════════════════ */
.ac-body { padding: clamp(24px, 4vw, 44px) 0 clamp(52px, 7vw, 92px); }
.ac--artist .ac-body { padding-top: 24px; }
.ac--studio .ac-body { padding-top: 0; }
.ac-card {
    display: grid; gap: 20px; padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--line); border-radius: 18px; background: var(--card);
    box-shadow: 0 1px 2px rgba(28, 23, 18, .04), 0 22px 36px -32px rgba(28, 23, 18, .6);
}
.ac-card + .ac-card { margin-top: 16px; }
.ac-card[id] { scroll-margin-top: 96px; }
.ac-card__kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ember-deep); }
.ac .ac-card h2.ac-card__title { margin-top: -14px; font: 650 1.35rem/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.ac-text { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

.ac-notice { padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.ac-notice + .ac-card, .ac-notice + .ac-notice { margin-top: 12px; }
.ac-body .ac-wrap > .ac-notice:first-child { margin-bottom: 16px; }
.ac-notice--ok { background: var(--green-tint); color: var(--green); }
.ac-notice--warn { background: var(--amber-tint); color: var(--amber); }
.ac-notice--err { background: var(--red-tint); color: var(--red); }
.ac-blockers { display: grid; gap: 8px; }
.ac-blockers li { display: flex; gap: 10px; align-items: flex-start; }

/* ═══════════════════════════ FIELDS ═══════════════════════════ */
.ac-label { display: block; font-size: 14px; font-weight: 750; color: var(--ink); }
.ac-field { display: grid; gap: 8px; min-width: 0; }
/* Inside an artist's workspace its form rule (.aw-tool-page .aw-content :where(input, select)) reaches these too. */
.ac .ac-field input.ac-input {
    width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 14px;
    background: var(--paper); color: var(--ink); font-size: 16px; box-shadow: none; outline: 0;
}
.ac .ac-field input.ac-input:focus { border-color: var(--ember-ui); background: var(--card); box-shadow: 0 0 0 3px rgba(214, 90, 49, .16); outline: 0; }
.ac-error { font-size: 13.5px; font-weight: 600; color: var(--red); }

/* The photo: the picture, then what can be done with it. */
.ac-photo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ac-avatar {
    position: relative; flex: none; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; overflow: hidden;
    background: var(--paper-2); color: var(--ember-deep); font: 650 34px/1 var(--display); box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--line);
}
.ac-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-photo__copy { display: grid; gap: 10px; min-width: 0; }
.ac-photo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ac-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.ac-photo__actions label:focus-within { outline: 3px solid var(--ember-glow); outline-offset: 3px; }
.ac-picked { font-size: 13px; color: var(--soft); overflow-wrap: anywhere; }

/* ═══════════════════════════ BUTTONS AND LINKS ═══════════════════════════ */
.ac-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px;
    border: 1.5px solid transparent; border-radius: 999px; font: 800 14.5px/1.2 var(--sans); white-space: nowrap;
    cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s;
}
.ac-btn:hover { transform: translateY(-1px); }
.ac-btn--ember { background: var(--ember-ui); color: #fff; box-shadow: 0 14px 30px -14px rgba(214, 90, 49, .9); }
.ac-btn--ember:hover { background: var(--ember-deep); }
.ac-btn--line { background: transparent; color: var(--ink); border-color: rgba(28, 23, 18, .25); }
.ac-btn--line:hover { border-color: var(--ink); }
.ac-btn--danger { background: var(--red); color: #fff; }
.ac-btn--danger:hover { background: #7E2219; }
.ac-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
    font-size: 14px; font-weight: 700; color: var(--ember-deep); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
}
.ac-link:hover { text-decoration-color: currentColor; }
.ac-link--quiet { color: var(--soft); font-weight: 600; }
.ac-link--danger { color: var(--red); }
.ac-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 16px; }
.ac-actions--split { justify-content: space-between; }
.ac-actions form { margin: 0; }
.ac-end { margin-top: 28px; text-align: center; }
.ac-end a { font-size: 13px; color: var(--soft); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.ac-end a:hover { color: var(--red); text-decoration-color: currentColor; }

/* ═══════════════════════════ THE TRANSLATION SWITCH ═══════════════════════════ */
.ac-toggle { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; cursor: pointer; }
.ac .ac-toggle input.ac-toggle__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.ac-switch { position: relative; display: block; width: 50px; height: 30px; margin-top: 1px; border-radius: 999px; background: var(--line-2); transition: background-color .2s; }
.ac-switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(28, 23, 18, .3); transition: transform .2s; }
.ac-toggle__input:checked + .ac-switch { background: var(--ember-ui); }
.ac-toggle__input:checked + .ac-switch span { transform: translateX(20px); }
.ac-toggle__input:focus-visible + .ac-switch { outline: 3px solid var(--ember-glow); outline-offset: 3px; }
.ac-toggle__copy { display: grid; gap: 6px; }
.ac-toggle__title { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.ac-help { font-size: 14px; line-height: 1.55; color: var(--soft); }

/* Japanese and Korean: their own type for the headline. */
.ac:lang(ja) :is(.ac-title, .ac-card__title), .ac:lang(ko) :is(.ac-title, .ac-card__title) { font-family: "Fraunces", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; letter-spacing: 0; }
.ac:lang(ja) :is(.ac-kicker, .ac-card__kicker), .ac:lang(ko) :is(.ac-kicker, .ac-card__kicker) { letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .ac-btn, .ac-switch, .ac-switch span { transition: none; } }

/* ═══════════════════════════ YOUR STUDIOS ═══════════════════════════ */
/* Every studio an account runs (studios/home), each a card with its mark. */
.ac-wrap--wide { width: min(1080px, 100% - 32px); }
@media (min-width: 640px) { .ac-wrap--wide { width: min(1080px, 100% - 64px); } }
.ac-lede { max-width: 600px; font-size: clamp(15px, .94rem + .2vw, 16.5px); line-height: 1.6; color: rgba(247, 243, 236, .84); }
.ac-studios { display: grid; gap: 16px; }
@media (min-width: 860px) { .ac-studios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ac-card + .ac-card.ac-studio { margin-top: 0; }
.ac-studio { align-content: start; }
.ac-studio__top { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ac-studio__mark {
    flex: none; display: grid; place-items: center; width: 58px; height: 64px; border: 1px solid #DEC2B1;
    border-radius: 18px 18px 24px 18px; background: #F4E2D7; color: var(--ember-deep); font: 650 26px/1 var(--display); transform: rotate(-3deg);
}
.ac-studio__copy { display: grid; gap: 3px; min-width: 0; }
.ac-studio__name { font: 650 1.35rem/1.2 var(--display); letter-spacing: -0.005em; color: var(--ink); overflow-wrap: anywhere; }
.ac-studio__place { font-size: 14px; color: var(--soft); }
.ac-studio__stamps { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-stamp { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--soft); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ac-stamp--new { background: var(--ember-tint); color: var(--ember-deep); }
.ac-studio__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-btn--small { min-height: 38px; padding: 7px 15px; font-size: 13px; }
/* No studio yet: find it and claim it. */
.ac-claim { justify-items: start; }
.ac .ac-claim h2.ac-card__title { margin-top: 0; }
.ac-claim__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ember-tint); color: var(--ember-deep); font-size: 22px; }
.ac-claim .ac-field { width: 100%; }
.ac-claim__results { display: grid; gap: 8px; width: 100%; }
.ac-claim__results li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.ac-claim__results li > span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.ac-claim__results strong { font-size: 15px; color: var(--ink); }
.ac-claim__results small { font-size: 13px; color: var(--soft); }
.ac .ac-claim .ac-field input.ac-input { background: var(--card); }
