@font-face {
    font-family: Barlow;
    src: url('/_brand/Barlow-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: BarlowCondensed;
    src: url('/_brand/BarlowCondensed-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #101820;
    --paper: #f2f4f5;
    --surface: #e1e7eb;
    --blue: #1675c1;
    --blue-hover: #115d9a;
    --focus: #7bc9ff;
    --white: #fff;
    --gutter: clamp(20px, 4.5vw, 60px);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100svh;
    padding: 24px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--ink);
    font: 17px/1.5 Barlow, sans-serif;
}

.gateway {
    width: min(1120px, 100%);
    padding: 32px var(--gutter) 20px;
    background: var(--paper);
}

.brand-name, h1, h2 {
    font-family: BarlowCondensed, sans-serif;
    font-weight: 600;
}

.brand-name {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    font-size: 32px;
    line-height: 1;
    text-decoration: none;
}

.intro { margin: 28px 0; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(48px, 6vw, 80px); line-height: 1; }
.intro p { margin-top: 10px; font-size: 18px; }

.shops { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.shop {
    min-width: 0;
    padding: 32px;
    text-align: left;
}

h2 { font-size: clamp(32px, 3.3vw, 44px); line-height: 1.05; }
.shop p { margin-top: 16px; max-width: 34ch; }

.shop-used {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
}

.shop-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 12px 16px;
    background: var(--blue);
    color: var(--white);
    line-height: 1.3;
    text-decoration: none;
}

.shop-action > span { flex-shrink: 0; }
.shop-used:hover .shop-action { background: var(--blue-hover); }
.shop-new { background: var(--surface); }

a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.shop-action:focus-visible { outline-color: var(--focus); }
.shop-action:focus-visible { background: var(--blue-hover); }

footer { margin-top: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    font-size: 15px;
    text-underline-offset: 4px;
}

@media (max-width: 650px) {
    body { padding: 12px; }
    .gateway { padding: 20px var(--gutter) 12px; }
    .brand-name { font-size: 28px; }
    .intro { margin: 20px 0 24px; }
    .shops { grid-template-columns: 1fr; gap: 12px; }
    .shop { padding: 24px; }
    .shop-used { gap: 24px; }
    .shop-action { width: 100%; padding-inline: 12px; font-size: 16px; }
    .shop p { margin-top: 12px; font-size: 16px; }
    footer { margin-top: 16px; }
    footer nav { column-gap: 20px; }
}

@media (max-width: 360px) {
    .gateway { padding: 16px; }
    .intro { margin: 12px 0 16px; }
    h1 { font-size: 44px; }
    .shop { padding: 16px; }
    .shop-action { font-size: 15px; }
}

@media (prefers-reduced-motion: no-preference) {
    .shop-action { transition: background-color 120ms ease; }
}
