@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;650;750&family=Instrument+Serif:ital@0;1&display=swap');

:root {
    color-scheme: light;
    --ink: #241e1a;
    --muted: #60554d;
    --paper: #faf6ee;
    --line: #dcd0c1;
    --rust: #923b2c;
    --display: 'Instrument Serif', Georgia, serif;
    --text: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--text); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #a95336; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; }
h1 { font-size: clamp(3.3rem, 7vw, 6.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2.7rem, 5vw, 4.3rem); letter-spacing: -.025em; }
.wrap { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -6rem; background: white; padding: .5rem 1rem; z-index: 1; }
.skip:focus { top: 1rem; }
.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.header-inner { min-height: 116px; }
.brand { display: inline-flex; align-items: center; gap: .46rem; font: 400 2.4rem/1 var(--display); text-decoration: none; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { display: block; width: 100px; height: 100px; object-fit: contain; }
.brand em { font-style: italic; }
.header nav { display: flex; gap: clamp(.85rem, 3vw, 2rem); align-items: center; }
.header nav a { font-weight: 650; text-decoration: none; }
.header nav a:hover, .back:hover { text-decoration: underline; text-underline-offset: .25em; }
.hero { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(1.5rem, 5vw, 5.5rem); align-items: center; padding: clamp(2.25rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--line); }
.hero-copy { display: grid; justify-items: start; gap: 1.45rem; }
.hero-image, .article-image { display: block; width: 100%; object-fit: cover; background: #d7bc9e; }
.hero-image { aspect-ratio: 6 / 5; }
.article-image { aspect-ratio: 3 / 2; margin-top: 2rem; }
.lead { max-width: 40ch; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.label { display: block; color: var(--rust); font-weight: 750; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.button { display: inline-flex; align-items: center; gap: 1rem; padding: .8rem 1.05rem; background: var(--rust); color: #fff8f0; text-decoration: none; font-weight: 750; }
.button:hover { background: #713022; }
.library { padding: clamp(2.75rem, 6vw, 5rem) 0; scroll-margin-top: 1rem; }
.topics { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.35rem 0 1.6rem; }
.topics a { border: 1px solid var(--line); border-radius: 2rem; padding: .35rem .95rem; text-decoration: none; font-size: .9rem; font-weight: 650; }
.topics a[aria-current], .topics a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cards, .banners { display: grid; gap: .85rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.card { display: grid; grid-template-rows: auto auto 1fr auto; gap: .75rem; padding: clamp(1.15rem, 3vw, 1.65rem); min-height: 230px; border-top: 3px solid #ab6757; background: #f2e6dc; text-decoration: none; }
.card.suhtlemine { background: #e8ebe0; border-color: #637657; }
.card.kohtingud { background: #f3ead5; border-color: #9f7b44; }
.card.suhted { background: #eee4eb; border-color: #8d6983; }
.card h3 { font-size: clamp(1.95rem, 3vw, 2.4rem); }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: .05em; text-underline-offset: .13em; }
.card p { color: var(--muted); }
.read { color: var(--rust); font-size: .85rem; font-weight: 750; }
.reading { width: min(700px, 100%); margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) 0; }
.reading .back { display: inline-block; margin-bottom: 2rem; text-decoration: none; font-weight: 650; }
.reading .label { margin-bottom: .7rem; }
.reading h1 { font-size: clamp(3rem, 7vw, 5.4rem); }
.reading h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 2rem 0 .65rem; }
.reading p { font-size: 1.1rem; line-height: 1.75; }
.reading .lead { margin-top: 1rem; }
.reading .button { margin-top: 1.5rem; }
.sites { background: #ede4d7; border-block: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.sites h2 { margin: .25rem 0 1.4rem; }
.banners { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.banner { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: #fffaf3; border: 1px solid #d1bdab; border-left: .3rem solid #aa6753; padding: .8rem 1rem; text-decoration: none; }
.banner:nth-child(3n+2) { border-left-color: #637657; }
.banner:nth-child(3n+3) { border-left-color: #9f7b44; }
.banner strong, .banner small { display: block; }
.banner small { color: var(--muted); }
.banner:hover strong { color: var(--rust); text-decoration: underline; }
.footer { padding-block: 1.5rem; color: var(--muted); }
.footer > span { font-size: .82rem; text-align: right; }
@media (max-width: 720px) {
    .wrap { width: calc(100% - 2rem); }
    .hero { grid-template-columns: 1fr; }
    .hero-image { aspect-ratio: 3 / 2; }
    .header nav { font-size: .84rem; }
    .brand { font-size: 2rem; }
}
@media (max-width: 400px) {
    .header-inner { gap: .5rem; }
    .header nav { flex-direction: column; align-items: flex-end; gap: .3rem; white-space: nowrap; }
}
