/*
 * Everything visual is driven by these custom properties. When the real design
 * lands, changing this block should carry most of the way — the markup stays put.
 */
:root {
    --color-bg: #fbf9f6;
    --color-surface: #ffffff;
    --color-ink: #2c2a28;
    --color-ink-muted: #6f6a64;
    --color-accent: #9c7c56;
    --color-border: #e6e0d8;

    --font-body: "Georgia", "Times New Roman", serif;
    --font-display: "Georgia", "Times New Roman", serif;

    --space-sm: 0.75rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;

    --radius: 4px;
    --measure: 34rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

.page {
    max-width: var(--measure);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 var(--space-sm);
}

h1 {
    font-size: 2rem;
}

.muted {
    color: var(--color-ink-muted);
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-accent);
}

/* Comfortable tap targets — nearly every visitor is on a phone. */
button,
input,
select,
textarea {
    font: inherit;
    min-height: 2.75rem;
}

/*
 * ...but not the small controls. A radio or checkbox is painted at a fixed size at the *top* of
 * its box rather than stretched to fill it, so a 44px min-height leaves the control floating
 * above its own label. The tap target comes from padding on the surrounding label instead.
 */
input[type="radio"],
input[type="checkbox"] {
    min-height: 0;
}

/* Present for screen readers, absent on screen. Used where a decorative shape stands in for a
   word — the word still has to be announced. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
