/*
Theme Name: Senioriportaali
Theme URI: https://senioriportaali.fi/
Description: Suomen verkkokauppojen ja elämysten hakemisto. Klassinen WordPress-teema.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: senioriportaali
*/
:root {
    --ink: #173c35;
    --paper: #f9f6ec;
    --line: #cdd7cb;
    --soft: #edf0dd;
    --muted: #4a6055;
    --accent: #9e492d;
    --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; margin: 0 0 .45em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.6rem, 5.4vw, 5.1rem); }
h2 { font-size: clamp(1.9rem, 3.3vw, 3rem); }
h3 { font-size: 1.62rem; }
p, figure { margin: 0 0 1.1em; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1220px, calc(100% - 72px)); margin-inline: auto; }
.skip, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { background: white; z-index: 99999; padding: 1rem; width: auto; height: auto; clip-path: none; }
.top { background: var(--ink); color: white; font-size: .79rem; letter-spacing: .055em; }
.top .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .4rem; }
.top a { text-decoration: none; }
.top a:hover, .site-footer a:hover { color: #e4edbb; }
.masthead { display: flex; gap: 26px; align-items: center; min-height: 110px; }
.masthead p { margin: 0; border-left: 1px solid var(--line); padding-left: 22px; color: var(--muted); font-size: .8rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; font: 700 clamp(1.75rem,4vw,2.7rem)/1 var(--serif); letter-spacing: -.065em; }
.brand-dot { color: var(--accent); }
.mark { position: relative; display: block; flex: 0 0 auto; margin-right: .25em; background: var(--ink); border-radius: 50%; width: 1.4em; height: 1.4em; }
.mark::before, .mark i, .mark b { position: absolute; display: block; content: ''; }
.mark::before { width: .22em; height: .22em; top: .22em; left: .59em; border-radius: 50%; background: #e8b17f; }
.mark i, .mark b { width: .68em; height: .27em; border-top: 2px solid #f5f0d7; left: .37em; border-radius: 50%; }
.mark i { top: .59em; transform: rotate(-17deg); }
.mark b { top: .79em; transform: rotate(12deg); }
.nav { border-block: 1px solid var(--line); }
.nav .wrap { display: flex; flex-wrap: wrap; gap: 0 2.15rem; }
.nav a { padding-block: .76rem; font-size: .92rem; font-weight: 650; text-decoration: none; }
.nav a[aria-current] { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.hero { display: grid; grid-template-columns: .91fr 1.09fr; margin-top: 35px; align-items: stretch; }
.hero-copy { padding: clamp(24px, 5vw, 76px) clamp(22px, 4vw, 54px) 25px 0; display: flex; flex-direction: column; justify-content: center; }
.hero h1 em { display: block; color: var(--accent); font-weight: 400; }
.hero-copy > p:not(.eyebrow), .intro { color: var(--muted); max-width: 65ch; }
.eyebrow { font-size: .77rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 750; margin-bottom: 1rem; }
.dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--accent); margin-right: .45em; vertical-align: .12em; }
.hero-figure { position: relative; margin: 0; min-height: 460px; background: var(--soft); }
.hero-figure img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 63% center; }
.hero-figure figcaption { position: absolute; bottom: 0; right: 0; color: white; background: var(--ink); padding: .3rem .6rem; font-size: .72rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; background: var(--ink); color: white; min-height: 48px; padding: .65rem 1.05rem; border: 1px solid var(--ink); text-decoration: none; border-radius: 0; cursor: pointer; font-weight: 650; }
.button:hover { background: #28564a; color: white; }
.finder { background: var(--soft); padding: 1.2rem 1.4rem; margin-block: 1.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.5rem; }
.finder label { font-weight: 650; }
.finder > div { display: flex; flex: 1 1 280px; min-width: 0; }
.finder input { border: 1px solid #81958a; border-right: 0; background: #fffdf7; min-width: 0; width: 100%; padding: .65rem .8rem; border-radius: 0; color: var(--ink); }
.section { margin-block: clamp(2.5rem,5vw,4.7rem); }
.section-head { display: flex; justify-content: space-between; gap: .6rem 1rem; align-items: baseline; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.3rem; margin-bottom: .5rem; }
.section-head a { font-weight: 650; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.card { padding: 1.4rem 1.55rem 2.55rem; background: #fffdf6; border: 1px solid var(--line); position: relative; min-height: 174px; }
.card:hover { border-color: var(--ink); }
.card .eyebrow { color: var(--accent); }
.card h3 a { text-decoration: none; }
.card h3 a::after { position: absolute; inset: 0; content: ''; }
.card p:last-of-type { margin-bottom: 0; font-size: .93rem; color: var(--muted); }
.card .arrow { position: absolute; right: 1.1rem; bottom: .7rem; }
.directory { padding-block: 2.55rem 3.4rem; }
.directory > h1 { margin-top: .55em; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chips a, .pagination .page-numbers { display: inline-block; padding: .37rem .72rem; border: 1px solid var(--line); text-decoration: none; }
.chips a[aria-current], .pagination .current { background: var(--ink); color: white; }
.pagination { margin-top: 1.4rem; }
.breadcrumbs { font-size: .87rem; margin-bottom: 1.4rem; }
.entry-head { border-bottom: 1px solid var(--line); margin-bottom: 1.9rem; }
.entry-grid { display: grid; grid-template-columns: 1fr minmax(255px,.55fr); gap: 2rem; align-items: start; }
.entry-body { max-width: 72ch; }
.entry-body h2 { font-size: clamp(1.65rem,3vw,2.15rem); margin-top: 1.4em; }
.entry-body img { margin-bottom: 1rem; }
.facts { padding: 1.35rem; background: var(--soft); overflow-wrap: anywhere; }
.facts h2 { font-size: 1.7rem; }
.facts dt { font-weight: 750; }
.facts dd { margin: 0 0 .76rem; }
.source { margin: .9rem 0 0; font-size: .9rem; }
.map iframe { margin-block: 1rem; border: 1px solid var(--line); width: 100%; height: 380px; }
.site-footer { padding-block: 2.3rem; background: var(--ink); color: white; }
.site-footer .wrap { display: grid; gap: .8rem; }
.site-footer p { margin: 0; font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; }
.footer-brand { font: 700 2rem var(--serif); text-decoration: none; }
@media (max-width: 830px) {
    .wrap { width: min(1220px,calc(100% - 40px)); }
    .hero { grid-template-columns: 1fr; margin-top: 15px; }
    .hero-figure { min-height: clamp(245px,48vw,420px); }
    .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 545px) {
    .masthead { min-height: 79px; }
    .masthead p { display: none; }
    .nav .wrap { gap: 0 1rem; }
    .nav a { font-size: .85rem; }
    .cards, .entry-grid { grid-template-columns: 1fr; }
    .card { min-height: auto; }
    .finder { padding: .85rem; }
}
