@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap");

:root {
    color-scheme: light;
    --bg: #f6f4f0;
    --text: #20201d;
    --muted: #5f5d57;
    --line: #d7d3cb;
    --accent: #ff845e;
    --accent-contrast: #ffffff;
    --page-width: 100%;
    --container-width: 820px;
    --rule: 2px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        "Fraunces", "Iowan Old Style", "Palatino", "Times New Roman", serif;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

main {
    position: relative;
    width: var(--page-width);
    margin: 0 auto;
    flex: 1 0 auto;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 72px 24px 96px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}
header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-contrast);
}

nav a {
    color: inherit;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: var(--rule) solid transparent;
}

nav a:hover,
nav a:focus {
    color: var(--accent-contrast);
    border-color: var(--accent-contrast);
}

.email-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: var(--rule) solid var(--accent);
}

.email-link:hover,
.email-link:focus {
    color: var(--text);
    border-color: var(--text);
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.01em;
}

h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0;
    color: var(--muted);
}

p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 0;
    color: var(--text);
}

.section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-left: 34px;
}

.section + .section {
    padding-top: 28px;
    margin-top: 8px;
}

.muted {
    color: var(--muted);
    margin: 0;
}

.intro {
    font-size: 1.2rem;
}

.divider {
    height: var(--rule);
    background: var(--accent);
    width: 61.8%;
}

.phi-rule {
    display: flex;
    gap: 12px;
    align-items: center;
    height: var(--rule);
    margin: 18px 0 8px;
}

.phi-rule span {
    display: block;
    height: var(--rule);
    background: var(--accent);
}

.phi-rule span:first-child {
    flex: 61.8;
}

.phi-rule span:last-child {
    flex: 38.2;
}

.callout {
    font-weight: 500;
    color: var(--text);
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1rem;
    color: var(--accent);
    background: transparent;
    border: var(--rule) solid var(--accent);
    width: fit-content;
    padding: 10px 16px;
    letter-spacing: 0.02em;
}

.cta:hover,
.cta:focus {
    color: var(--text);
    border-color: var(--text);
}

footer {
    width: 100%;
    background: var(--accent);
    color: var(--accent-contrast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin-top: auto;
}

footer .container {
    padding: 28px 24px 64px;
    width: 100%;
    align-self: stretch;
}

footer p {
    color: var(--accent-contrast);
}

.dedication {
    color: var(--text);
}

@media (max-width: 640px) {
    main {
        padding: 56px 20px 80px;
    }

    nav {
        gap: 10px;
        letter-spacing: 0.06em;
    }

    p {
        font-size: 1.1rem;
    }
}
