/*
 * Base styles: design tokens, reset, typography and links.
 * Propshaft links every file in app/assets/stylesheets alphabetically,
 * so this file loads first and the others build on these tokens.
 */

:root {
    --bg: #faf9f6;
    --ink: #1f1f1a;
    --muted: #6f6e66;
    --accent: #4f6d7a;
    --hairline: #e4e1da;
    --surface: #efede7;

    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: 2.5rem;
    --space-xl: 4rem;

    --measure: 40rem;
    --content: 72rem;
    --gutter: clamp(1rem, 4vw, 2.5rem);

    --font-serif: 'Cormorant', Georgia, 'Times New Roman', serif;
}

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

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

body {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.3125rem;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
}

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

h1,
h2,
h3 {
    margin: 0 0 var(--space-s);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.005em;
}

p {
    margin: 0 0 var(--space-s);
}

hr {
    border: 0;
    border-top: 1px solid var(--hairline);
    margin: var(--space-l) 0;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--ink);
}

.meta {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Site chrome */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-s) var(--space-m);
    max-width: var(--content);
    margin: 0 auto;
    padding: var(--space-m) var(--gutter);
    border-bottom: 1px solid var(--hairline);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: var(--space-m);
}

.site-nav a {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 2px;
}

.site-nav a:hover {
    color: var(--ink);
}

.site-nav a[aria-current="page"] {
    color: var(--ink);
    border-bottom: 1px solid currentColor;
}

.site-main {
    max-width: var(--content);
    margin: 0 auto;
    padding: var(--space-l) var(--gutter);
}

.site-footer {
    max-width: var(--content);
    margin: var(--space-xl) auto 0;
    padding: var(--space-m) var(--gutter) var(--space-l);
    border-top: 1px solid var(--hairline);
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ink);
}
