@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600&family=Barlow+Condensed:wght@500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --red: #a9132c;
    --ivory: #f2efe7;
    --white: #ffffff;
    --ink: #242222;
    --muted: #6d6964;
    --line: #d9d4ca;
    --success: #1c6b3a;
    --success-bg: #e4f2e8;
    --error-bg: #f6e2e6;
    --pending-bg: #ebe7df;
    --shadow: 0 18px 50px rgba(39, 32, 29, .09);
}

* { box-sizing: border-box; }

html { background: var(--ivory); color: var(--ink); }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Archivo', Arial, sans-serif;
    background: var(--ivory);
    color: var(--ink);
}

h1, h2, p { margin-top: 0; }

h1, h2 {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 600;
    line-height: .98;
}

h1 { margin-bottom: 18px; font-size: clamp(2.7rem, 8vw, 5rem); }
h2 { margin-bottom: 12px; font-size: 1.8rem; }
p { line-height: 1.6; }

.eyebrow {
    display: block;
    margin-bottom: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--red);
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 28px 18px;
}

.auth-card {
    width: min(100%, 700px);
    padding: clamp(28px, 6vw, 56px);
    border-top: 8px solid var(--red);
    background: var(--white);
    box-shadow: var(--shadow);
}

.auth-card.compact { width: min(100%, 520px); }

.brand-logo {
    display: block;
    width: 76px;
    height: 76px;
    margin-bottom: 28px;
    object-fit: contain;
}

.intro { max-width: 58ch; color: var(--muted); }

fieldset {
    margin: 30px 0;
    padding: 0;
    border: 0;
}

legend {
    width: 100%;
    margin-bottom: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
}

label {
    display: block;
    margin: 18px 0 7px;
    font-weight: 600;
}

input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #aaa49b;
    border-radius: 2px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

input:focus {
    outline: 3px solid rgba(169, 19, 44, .15);
    border-color: var(--red);
}

.field-help {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: .88rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 2px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.button.primary { background: var(--red); color: var(--white); }
.button.primary:hover { background: #8f1025; }
.button.secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.button.full { width: 100%; margin-top: 18px; }

.notice {
    display: grid;
    gap: 6px;
    margin: 22px 0;
    padding: 15px 16px;
    border-left: 4px solid;
    line-height: 1.45;
}

.notice.error { border-color: var(--red); background: var(--error-bg); color: #7e1022; }
.notice.success { border-color: var(--success); background: var(--success-bg); color: var(--success); }

.app-header {
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.header-inner {
    width: min(100% - 36px, 1120px);
    min-height: 88px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-lockup { display: flex; align-items: center; gap: 16px; }
.brand-lockup img { width: 54px; height: 54px; }
.brand-lockup .eyebrow { margin-bottom: 5px; }
.brand-lockup strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.45rem; }

.app-main {
    width: min(100% - 36px, 1120px);
    margin: auto;
    padding: clamp(42px, 7vw, 80px) 0 80px;
}

.page-heading { max-width: 750px; margin-bottom: 38px; }
.page-heading p:last-child { color: var(--muted); font-size: 1.05rem; }

.week-panel {
    display: grid;
    gap: 7px;
    padding: 24px;
    border-left: 6px solid var(--red);
    background: var(--white);
    box-shadow: var(--shadow);
}

.week-panel .eyebrow { margin: 0; }
.week-panel strong { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(1.8rem, 5vw, 2.7rem); }
.week-panel p { margin: 0; color: var(--muted); font-size: .9rem; }

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.status-card {
    min-height: 180px;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--white);
}

.status-card.muted { background: rgba(255, 255, 255, .55); }
.status-card p { margin: 0; color: var(--muted); }
.status-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.status-line h2 { margin: 0; }

.badge {
    flex: 0 0 auto;
    padding: 6px 8px;
    border-radius: 2px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .68rem;
    font-weight: 500;
    text-transform: uppercase;
}

.badge.ready { background: var(--success-bg); color: var(--success); }
.badge.error { background: var(--error-bg); color: var(--red); }
.badge.pending { background: var(--pending-bg); color: var(--muted); }

.next-step {
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.next-step p { max-width: 700px; color: var(--muted); }

@media (max-width: 760px) {
    .status-grid { grid-template-columns: 1fr; }
    .header-inner { min-height: 76px; }
    .brand-lockup strong { display: none; }
    .brand-lockup img { width: 46px; height: 46px; }
    .app-header .button { min-height: 42px; padding: 9px 12px; font-size: .88rem; }
}

