/* Base: reset, fonts, layout helpers, buttons, links, focus. */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--font); font-optical-sizing: auto; font-size: var(--text-base); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 400; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.on-dark :focus-visible { outline-color: var(--rose); }
[id] { scroll-margin-top: 88px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--cream); color: var(--ink); padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Small caps label above headings */
.eyebrow { margin: 0 0 1.1rem; font-size: .8125rem; letter-spacing: .26em; text-transform: uppercase; color: var(--plum-text); }
.on-dark .eyebrow { color: var(--on-wine-muted); }
.on-dark { color: var(--cream); }

/* Buttons: pills, with a rose wash that rises through them on hover */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: .7em 1.6em; border: 1px solid transparent; border-radius: 999px; font: 500 1.0625rem/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer; transition: color .45s var(--ease-out), border-color .45s var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rose); transform: translateY(101%); transition: transform .55s var(--ease-out); }
.btn:hover::before { transform: translateY(0); }
.btn--lg { min-height: 60px; padding-inline: 2em; font-size: 1.1875rem; }
.btn--cream { background: var(--cream); color: var(--wine-800); }
.btn--wine { background: var(--wine-800); color: var(--cream); }
.btn--wine:hover { color: var(--wine-900); }
.btn--ghost { border-color: rgb(246 239 230 / .55); color: var(--cream); background: transparent; }
.btn--ghost:hover { color: var(--wine-900); border-color: var(--rose); }
.btn--outline { border-color: var(--wine-800); color: var(--wine-800); background: transparent; }
.btn--outline:hover { border-color: var(--rose); }
.btn__arrow { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Text links with a line that eases on hover */
.text-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 1.125rem; text-decoration: none; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease-out); }
.text-link:hover::after { transform: scaleX(.35); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::before, .btn__arrow, .text-link::after { transition: none; }
}
