:root {
    /* ==============================
       SURFACES
    ============================== */
    --cream: #f6f5f3;
    --white: #ffffff;
    --ink: #181818;
    --bg-alt: #efeee9;

    /* ==============================
       INK SCALE
    ============================== */
    --ink-soft: #2a2a2a;
    --ink-muted: #5a5a56;
    --ink-light: #8a8a84;

    /* ==============================
       RULES
    ============================== */
    --rule: #c8c7c3;
    --rule-light: #dddcd8;

    /* ==============================
       ELEVATION
    ============================== */
    --card-shadow:
        0 1px 3px rgba(24, 24, 24, 0.04),
        0 4px 16px rgba(24, 24, 24, 0.03);

    /* ==============================
       FONTS
    ============================== */
    --font-editorial: 'EB Garamond', Georgia, serif;
    --font-ui: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* ==============================
       LAYOUT
    ============================== */
    --max-width: 1120px;
    --header-width: 1200px;
    --content-width: 800px;
}

/* =========================================
   RESET
========================================= */

* {
    max-width: 100%;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-editorial);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--cream);
    margin: 0;
    padding: 0;
}

/* =========================================
   LINKS
========================================= */

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.6;
}

/* =========================================
   TYPOGRAPHY SYSTEM
========================================= */

/* Headlines */
h1,
h2,
h3,
h4 {
    font-family: var(--font-editorial);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* Body text */
p {
    font-size: 1.05rem;
    color: var(--ink-muted);
}

/* Section Label */
.section-label {
    font-family: var(--font-ui);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-light);
    border-bottom: 2px solid var(--ink);
    padding-bottom: 10px;
}

/* Metadata */
.meta {
    font-family: var(--font-ui);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-light);
}

/* Timestamps */
.timestamp {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-light);
}

/* =========================================
   FORMS
========================================= */

input[type="text"],
input[type="email"],
input[type="search"],
textarea {
    border: 1px solid var(--rule);
    padding: 12px;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    width: 100%;
    transition: border-color 0.2s ease;
    background: transparent;
    color: var(--ink);
    border-radius: 0;
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-light);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--ink);
}

/* =========================================
   BUTTONS (Primary CTA)
========================================= */

.wp-block-button__link,
.button,
input[type="submit"] {
    background-color: var(--ink);
    color: var(--cream);
    padding: 10px 26px;
    border: none;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background 0.2s ease;
    display: inline-block;
    border-radius: 0;
    /* critical */
}

.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover {
    background-color: var(--ink-soft);
}

/* =========================================
   CARD SYSTEM
========================================= */

.card {
    background: var(--white);
    border: 1px solid var(--rule);
    padding: 24px;
    box-shadow: var(--card-shadow);
}

/* =========================================
   RULES
========================================= */

.rule {
    height: 1px;
    background: var(--rule);
}

.rule-heavy {
    height: 2px;
    background: var(--ink);
}

.rule-light {
    border-bottom: 1px solid var(--rule-light);
}

/* =========================================
   WRAP
========================================= */

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 48px;
    padding-right: 48px;
}

@media (max-width: 900px) {
    .wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
}