/* League of Watches storefront styles
 * Tokens follow the brand brief: black and deep navy for structure,
 * warm ivory and white surfaces, restrained gold accents.
 */

@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
    --black: #000000;
    --ink: #15171c;
    --navy: #13223b;
    --navy-deep: #0d1829;
    --ivory: #f6f1e8;
    --white: #ffffff;
    --gold: #b08d57;
    --gold-soft: #d8c39b;
    --line: #e4ddd1;
    --muted: #5d6270;
    --danger: #a1262a;
    --danger-bg: #fbecec;
    --success: #1f6b45;
    --success-bg: #e8f4ed;

    --font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;

    --radius: 4px;
    --container: 1240px;
    --gutter: 16px;
    --header-h: 64px;
}

@media (min-width: 768px) {
    :root { --gutter: 32px; --header-h: 76px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 0.5em;
    color: var(--black);
}

h1 { font-size: clamp(2.25rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-gold { background: var(--gold-soft); color: var(--black); }
.btn-gold:hover { background: var(--gold); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
}

.wordmark {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
    color: var(--black);
}
.wordmark-main {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
}
.wordmark-sub {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.42em;
    margin-top: 3px;
}

.site-nav { margin-left: auto; }

.site-nav ul {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-block;
    padding: 6px 0;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

@media (max-width: 767px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        left: 0; right: 0;
        top: var(--header-h);
        display: none;
        background: var(--white);
        border-bottom: 1px solid var(--line);
    }
    .site-nav.is-open { display: block; }
    /* Without JavaScript the menu is simply shown under the logo. */
    .no-js .nav-toggle { display: none; }
    .no-js .site-header .container { flex-wrap: wrap; }
    .no-js .site-nav { display: block; position: static; width: 100%; border: 0; }
    .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
    .site-nav a { display: block; padding: 12px 0; font-size: 1rem; }
}

/* ---------- Main and messages ---------- */

main { display: block; min-height: 50vh; }

.notice {
    padding: 12px 16px;
    margin: 0 0 20px;
    border-radius: var(--radius);
    border: 1px solid;
}
.notice-error { background: var(--danger-bg); border-color: #e7b9ba; color: var(--danger); }
.notice-success { background: var(--success-bg); border-color: #b9dcc7; color: var(--success); }
.notice-info { background: var(--ivory); border-color: var(--line); color: var(--ink); }

/* ---------- Forms ---------- */

.field { margin-bottom: 18px; }
.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="search"],
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    font: inherit;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #c9c2b5;
    border-radius: var(--radius);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy); outline: 2px solid var(--gold-soft); outline-offset: 0; }
.field-error { margin-top: 6px; font-size: 0.85rem; color: var(--danger); }
.field-hint { margin-top: 6px; font-size: 0.85rem; color: var(--muted); }
.field input[aria-invalid="true"] { border-color: var(--danger); }

/* ---------- Holding page (Phase 1) ---------- */

.holding {
    background: var(--ivory);
    padding: 96px 0 112px;
}
.holding-inner { max-width: 720px; }
.holding .lede { font-size: 1.15rem; color: var(--ink); max-width: 56ch; }
.holding .gold { color: var(--gold); }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 40px 0 28px;
    font-size: 0.9rem;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px 48px;
}
.footer-nav ul,
.footer-legal ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-nav a,
.footer-legal a { text-decoration: none; }
.footer-nav a:hover,
.footer-legal a:hover { text-decoration: underline; }
.footer-social { margin-left: auto; display: flex; gap: 16px; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}
.footer-bottom p { margin: 0; }

/* ---------- Error pages ---------- */

.error-page { padding: 96px 0; }
.error-page .status { font-family: var(--font-display); font-weight: 800; color: var(--gold); font-size: 1rem; margin-bottom: 8px; }
.error-detail {
    margin-top: 24px;
    padding: 16px;
    overflow-x: auto;
    font-size: 0.8rem;
    background: var(--ivory);
    border: 1px solid var(--line);
    white-space: pre-wrap;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Text pages ---------- */

.prose-page { max-width: 760px; padding-top: 64px; padding-bottom: 80px; }
