/* Hallmark custom direction · tcg.cr canonical design system · editorial split with storefront game logos */
@font-face {
    font-family: "Nunito Sans";
    src: url("/assets/NunitoSans-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
}

:root {
    --ink: #08254d;
    --blue: #0748c5;
    --blue-hover: #063998;
    --red: #e00028;
    --paper: #f4f6fa;
    --white: #fff;
    --muted: #51627a;
    --line: #d9e0ea;
    --field-border: #8493aa;
    --error: #b32335;
    --error-bg: #fff1f3;
    --success: #176343;
    --success-bg: #e9f5ee;
    --type: "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { overflow-x: clip; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem/1.5 var(--type);
}

body::before {
    display: block;
    height: 5px;
    background: var(--blue);
    content: "";
}

.shell {
    width: min(1168px, calc(100% - 80px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 30px;
}

.site-header img { width: 192px; height: auto; }
.header-link { display: none; }

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
    padding-block: 26px 64px;
}

h1, h2, p { margin: 0; }

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.intro > p {
    margin-top: 14px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.game-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    margin: 28px 0 0;
    padding: 18px 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    list-style: none;
}

.game-logos li {
    display: grid;
    place-items: center;
    min-height: clamp(48px, 6vw, 80px);
    padding-inline: clamp(7px, 2vw, 20px);
}

.game-logos li + li { border-inline-start: 1px solid var(--line); }

.game-logos img {
    display: block;
    width: 100%;
    max-width: 155px;
    height: auto;
}

.game-logos .pokemon-logo { max-width: 112px; }

.form-panel {
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: 12px;
    background: var(--white);
    padding: clamp(20px, 3vw, 36px);
    scroll-margin-top: 20px;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.028em;
}

.form-intro {
    margin-block: 10px 22px;
    color: var(--muted);
}

form { display: grid; gap: 16px; }

.contact-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px 12px;
}

.field { display: grid; align-content: start; gap: 5px; }

label { font-weight: 800; }

input, select, textarea, button {
    font: inherit;
}

input:not([type="hidden"]), select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 9px 11px;
    border: 1px solid var(--field-border);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
}

textarea { resize: vertical; }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    padding: 10px 20px;
    color: var(--white);
    background: var(--blue);
    font-weight: 900;
    cursor: pointer;
}

button:hover { background: var(--blue-hover); }
button:active { transform: translateY(1px); }

.hint { color: var(--muted); font-size: .875rem; }
.optional { font-weight: 600; }
.privacy { margin-top: -8px; }

.notice, .success {
    padding: 12px 14px;
    border-radius: 8px;
}

.notice {
    margin-bottom: 14px;
    background: var(--error-bg);
    color: var(--error);
}

.field-error { color: var(--error); font-size: .875rem; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.success { color: var(--success); background: var(--success-bg); }
.success p { margin-block: 4px 10px; }
.success a, .header-link { color: var(--blue); font-weight: 800; text-underline-offset: .18em; }

@media (max-width: 900px) {
    .shell { width: min(760px, calc(100% - 48px)); }
    .layout { gap: 28px; }
    .contact-fields { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .shell { width: min(480px, calc(100% - 32px)); }
    .site-header { padding-block: 18px; gap: 12px; }
    .site-header img { width: 150px; }
    .header-link { display: block; font-size: .875rem; }
    .layout { grid-template-columns: 1fr; padding-block: 18px 40px; gap: 22px; }
    .game-logos { margin-top: 18px; padding-block: 12px; }
}
