/* Milestill one-page site (2026-12-06). Colours and type from the maps: engine/style.py (BG, INK, CORAL). */
@font-face { font-family: "Playfair"; src: url("fonts/playfair-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/garamond-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/garamond-italic.woff") format("woff"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-medium.woff") format("woff"); font-weight: 500; font-display: swap; }

:root { --paper: #F8F4EB; --ink: #22304A; --coral: #D2807A; --soft: #5A6274; --card: #FCF9F2; --line: #E4DCCD; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "EB Garamond", Georgia, serif;
       font-size: 19px; line-height: 1.55; }
a { color: var(--ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header { text-align: center; padding: 40px 0 8px; }
.logo { width: 76px; height: 76px; }
h1 { font-family: "Playfair", Georgia, serif; font-weight: 600; font-size: 46px; letter-spacing: 0.5px; margin: 8px 0 6px; }
.tagline { font-size: 21px; max-width: 32em; margin: 0 auto 22px; text-wrap: balance; }
.about p, footer p, .story p { text-wrap: pretty; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 13px 24px;
       border-radius: 999px; font-size: 18px; margin: 5px; }
.btn.alt { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn:hover, .btn:focus-visible { background: var(--coral); color: var(--ink); border-color: var(--coral); }

h2 { font-family: "Playfair", Georgia, serif; font-weight: 600; font-size: 30px; text-align: center; margin: 52px 0 20px; }

/* one card a row on a phone, two on a tablet, three on a desktop; a short last row is centred */
.stories { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; list-style: none; padding: 0; margin: 0; }
.story { flex: 0 1 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
         display: flex; flex-direction: column; }
@media (min-width: 640px) { .story { flex-basis: calc((100% - 26px) / 2); } }
@media (min-width: 980px) { .story { flex-basis: calc((100% - 52px) / 3); } }
.story img { width: 100%; height: auto; aspect-ratio: 1 / 1; display: block; }
.story .body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.story h3 { font-family: "Playfair", Georgia, serif; font-weight: 600; font-size: 24px; margin: 0 0 6px; }
.story p { margin: 0 0 14px; flex: 1; }
.story .more { font-size: 19px; text-underline-offset: 3px; }

.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 620px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; margin: 0 0 16px; }
.steps li::before { content: counter(step); font-family: "Playfair", Georgia, serif; font-weight: 600; font-size: 20px;
                    color: var(--paper); background: var(--ink); border-radius: 50%; min-width: 36px; height: 36px;
                    display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }

.about { max-width: 620px; margin: 0 auto; text-align: center; }
.signature { font-family: "Caveat", cursive; font-size: 32px; margin: 2px 0 0; }

.links { text-align: center; margin: 36px 0 8px; }
footer { text-align: center; color: var(--soft); font-size: 16px; padding: 26px 0 40px; border-top: 1px solid var(--line);
         margin-top: 44px; }
footer p { margin: 4px 0; }
