@font-face {
    font-family: Barlow;
    src: url('/assets/barlow-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Barlow;
    src: url('/assets/barlow-600.woff2') format('woff2');
    font-weight: 600 700;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow Condensed';
    src: url('/assets/barlow-condensed-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

:root {
    color-scheme: light;
    --navy: #012244;
    --blue: #124471;
    --green: #69be28;
    --paper: #f2f5f6;
    --white: #fff;
    --ink: #182b3a;
    --muted: #50616f;
    --line: #cdd9df;
    --focus: #005e8b;
    --shadow: 0 .75rem 2.5rem #0122440a;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem / 1.53 Barlow, system-ui, sans-serif;
}

a { color: var(--blue); text-underline-offset: .17em; }
a:hover { text-decoration-thickness: .15em; }

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

.site-header :focus-visible { outline-color: var(--green); }

.skip {
    background: var(--white);
    position: fixed;
    top: .75rem;
    left: .75rem;
    padding: .5rem .75rem;
    z-index: 2;
    transform: translateY(-200%);
}

.skip:focus { transform: none; }

.shell {
    width: min(72rem, 100% - clamp(2rem, 6vw, 5rem));
    margin-inline: auto;
}

.site-header {
    color: var(--white);
    background: var(--navy);
    border-bottom: .25rem solid var(--green);
}

.masthead {
    min-height: 4.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.25rem;
    padding-block: .5rem;
}

.masthead a {
    color: var(--white);
    text-decoration: none;
    padding-block: .35rem;
    font-weight: 600;
}

.masthead a:hover { text-decoration: underline; }

.identity {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font: 600 clamp(1.3rem, 3vw, 1.75rem) / 1.1 'Barlow Condensed', Barlow, sans-serif;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.identity-stripe {
    background: var(--green);
    display: inline-block;
    width: .45rem;
    height: 1.35rem;
    transform: skew(-14deg);
}

main { padding-block: clamp(1.75rem, 5vw, 4.5rem) 2.75rem; }

.page-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

h1, h2, h3 {
    font-family: 'Barlow Condensed', Barlow, sans-serif;
    color: var(--navy);
    margin: 0;
    font-weight: 600;
    line-height: 1.13;
}

h1 {
    font-size: clamp(2.75rem, 7vw, 5.25rem);
    letter-spacing: -.013em;
}

h2 { font-size: clamp(1.65rem, 4vw, 2.1rem); }
h3 { font-size: 1.375rem; }

p { margin: .6rem 0 0; }

.round-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .2rem .7rem;
    color: var(--muted);
    font-weight: 600;
}

.round-dates span::before {
    content: '·';
    margin-right: .7rem;
}

.page-heading .round-dates { flex-basis: 100%; }

.card {
    min-width: 0;
    margin-bottom: 1rem;
    border-radius: .8rem;
    background: var(--white);
    border: 1px solid var(--line);
    padding: clamp(1.1rem, 3vw, 2rem);
    box-shadow: var(--shadow);
}

.columns {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(.75rem, 2vw, 1.25rem);
    align-items: start;
}

.columns .card { margin-bottom: 0; }

.guide {
    background: var(--navy);
    border-color: var(--navy);
    color: #e7f0f6;
}

.guide h2 { color: var(--white); }

.guide ol {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.guide li { padding-left: .25rem; }
.guide li + li { margin-top: .7rem; }

.guide li::marker {
    color: #9bdd65;
    font-weight: 700;
}

.public > .form-card, .admin > .form-card { max-width: 43rem; }

.signup h3 { margin-top: 1.4rem; }

.round-nav, .actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
}

.round-nav { margin-bottom: 1rem; }
.actions { margin-block: 1rem .35rem; }
.page-heading .actions { margin-block: .35rem; }

.round-nav a {
    min-width: 3.7rem;
    padding: .4rem .8rem;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: .4rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

.round-nav a[aria-current="page"] {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.form-fields, .date-form {
    display: grid;
    gap: .4rem;
    margin-top: 1.05rem;
}

.date-form {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), max-content));
    align-items: end;
    gap: .6rem 1rem;
}

label, legend { font-weight: 600; }

input:not([type=checkbox], [type=radio], [type=hidden]), select, textarea {
    display: block;
    min-height: 2.75rem;
    padding: .55rem .7rem;
    width: 100%;
    margin-bottom: .4rem;
    border: 1px solid #8095a4;
    border-radius: .35rem;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

textarea { resize: vertical; }

input[type=checkbox], input[type=radio] {
    margin: .35rem .1rem 0 0;
    accent-color: var(--navy);
}

fieldset {
    min-width: 0;
    margin: .55rem 0;
    padding: .45rem .75rem .75rem;
    border: 1px solid var(--line);
    border-radius: .4rem;
}

legend { padding-inline: .25rem; }

.choice {
    display: flex;
    align-items: start;
    gap: .55rem;
    margin-block: .25rem;
}

button {
    appearance: none;
    min-height: 2.75rem;
    border: 1px solid var(--navy);
    border-radius: .35rem;
    padding: .55rem .95rem;
    background: var(--navy);
    color: var(--white);
    font: 600 1rem / 1.2 Barlow, sans-serif;
    text-align: start;
    cursor: pointer;
}

button:hover { background: var(--blue); }

.secondary {
    color: var(--navy);
    border-color: #889fad;
    background: var(--white);
}

.secondary:hover { background: #e4eef3; }

.notice {
    padding: .7rem .85rem;
    border-inline-start: .25rem solid var(--green);
    background: #e8f4df;
    color: var(--navy);
    margin: .65rem 0 1rem;
}

.notice.error {
    background: #fcebea;
    border-color: #a92828;
    color: #7b2224;
}

address {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border-inline-start: .25rem solid var(--green);
    background: var(--paper);
    font-style: normal;
    overflow-wrap: anywhere;
}

.gift-status {
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid var(--line);
}

.gift-status form, .form-card h2 + form { margin-top: .75rem; }

.site-footer {
    color: var(--muted);
    padding-block: 1rem 2.5rem;
    border-top: 1px solid var(--line);
}

summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.dates-edit { margin-top: .8rem; }

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}

.status-label {
    border-radius: 1rem;
    padding: .22rem .7rem;
    background: #e7f1f7;
    color: var(--navy);
    font-weight: 600;
    font-size: .95rem;
}

.totals {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 2rem;
    margin: 1rem 0 0;
}

.totals > div { display: flex; flex-direction: column-reverse; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font: 600 2rem 'Barlow Condensed', Barlow, sans-serif; }

.table-scroll { width: 100%; overflow-x: auto; margin-top: .75rem; }

table { width: 100%; border-collapse: collapse; font-size: 1rem; }

th, td {
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    padding: .65rem .65rem;
    text-align: start;
}

thead th {
    background: var(--paper);
    color: var(--navy);
}

td:last-child { min-width: 12rem; }
td details { margin-top: .4rem; }
td form { margin-bottom: .25rem; }

.ban-list { list-style: none; padding: 0; margin: .55rem 0 0; }
.ban-list li + li { border-top: 1px solid var(--line); margin-top: .85rem; padding-top: .75rem; }
.ban-list form { margin-top: .6rem; }
.muted, small { color: var(--muted); }

@media (max-width: 46rem) {
    .columns { grid-template-columns: 1fr; }
}

@media (max-width: 29rem) {
    .round-dates { flex-direction: column; align-items: start; }
    .round-dates span::before { content: none; }
}
