/* Lahja Miehelle – tyylit */

@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #15201C;
  --ground: #F4F3F0;
  --card: #FFFFFF;
  --muted: #4A5550;
  --line: #D6D3CB;
  --line-strong: #8C8A82;
  --acc: #B53D0A;
  --acc-hover: #8F2F07;
  --acc-light: #FF7A3D;
  --on-dark: #F4F3F0;
  --on-dark-2: #C9D0CC;
  --on-dark-3: #B7C0BB;
  --dark-line: #33423C;
  --chip-dark-line: #6B7A73;
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::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; font-family: var(--f-body); color: var(--ink); background: var(--ground); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--acc-light); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--ink); padding: 12px 16px; }

.display { margin: 0; font-family: var(--f-display); font-weight: 900; line-height: 0.92; letter-spacing: 0.005em; text-transform: uppercase; text-wrap: balance; }
.h2 { font-size: clamp(40px, 4.4vw, 64px); }
.h2-lg { font-size: clamp(44px, 4.6vw, 68px); }
.kicker { font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* Isänpäiväpalkki */
.isa-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; min-height: 44px; padding: 10px 24px; background: var(--acc); color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; text-align: center; }
.isa-bar:hover { color: #fff; text-decoration: underline; }
.isa-bar .kicker { letter-spacing: 0.08em; }

/* Ylätunniste */
.site-head { background: var(--ink); color: var(--on-dark); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--on-dark); text-decoration: none; font-family: var(--f-display); font-weight: 900; font-size: 30px; letter-spacing: 0.02em; text-transform: uppercase; }
.brand span { color: var(--acc-light); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; font-size: 16px; font-weight: 600; }
.nav a { color: var(--on-dark); text-decoration: none; padding: 12px 0; }
.nav a:hover { color: var(--acc-light); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--acc-light); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: transparent; color: var(--on-dark); border: 1.5px solid var(--chip-dark-line); border-radius: 2px; font: 600 15px var(--f-body); cursor: pointer; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding-top: 8px; border-top: 1px solid var(--dark-line); }
  .js .nav.is-open { display: flex; }
}

/* Etusivun hero */
.hero { background: var(--ink); color: var(--on-dark); }
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 64px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero .kicker { color: var(--acc-light); }
.hero h1 { font-size: clamp(56px, 6.6vw, 96px); line-height: 0.9; }
.hero .lead { margin: 0; max-width: 26em; font-size: 22px; line-height: 1.4; font-weight: 600; text-wrap: pretty; }
.hero .body { margin: 0; max-width: 34em; font-size: 17px; line-height: 1.6; color: var(--on-dark-2); text-wrap: pretty; }

/* Alasivun hero */
.page-hero .wrap { display: flex; flex-direction: column; gap: 36px; padding-top: 40px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--ink); padding: 8px 0; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 48px 64px; align-items: start; }
.page-hero-text { display: flex; flex-direction: column; gap: 24px; }
.page-hero h1 { font-size: clamp(56px, 6.6vw, 100px); line-height: 0.9; }
.page-hero .lead { margin: 0; max-width: 34em; font-size: 19px; line-height: 1.6; text-wrap: pretty; }
.byline { color: var(--acc); }
.byline--muted { color: var(--muted); letter-spacing: 0.1em; }
.isa-chip { align-self: flex-start; padding: 8px 12px; background: var(--acc); color: #fff; border-radius: 2px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* Lahjanetsijä */
.finder { display: flex; flex-direction: column; gap: 26px; padding: 32px; border-radius: 4px; box-shadow: 14px 14px 0 var(--acc-light); }
.finder--light { background: var(--ground); color: var(--ink); }
.finder--dark { background: var(--ink); color: var(--on-dark); }
.finder-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.finder h2 { font-size: 42px; line-height: 1; }
.finder-note { font-family: var(--f-mono); font-size: 13px; }
.finder fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.finder legend { padding: 0; margin-bottom: 12px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.finder--light .finder-note, .finder--light legend { color: var(--muted); }
.finder--dark .finder-note, .finder--dark legend { color: var(--on-dark-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1.5px solid; border-radius: 2px; font: 600 15px/1 var(--f-body); cursor: pointer; }
.chip--mono { font-family: var(--f-mono); font-size: 14px; }
.finder--light .chip { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.finder--light .chip[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.finder--dark .chip { background: transparent; color: var(--on-dark); border-color: var(--chip-dark-line); }
.finder--dark .chip[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.finder-foot { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1.5px solid; }
.finder--light .finder-foot { border-color: var(--line); }
.finder--dark .finder-foot { border-color: var(--dark-line); }
.finder-count { margin: 0; font-size: 15px; line-height: 1.45; }
.finder--light .finder-count { color: var(--muted); }
.finder--light .finder-count strong { color: var(--ink); }
.finder--dark .finder-count { color: var(--on-dark-3); }
.finder--dark .finder-count strong { color: var(--on-dark); }
.btn-big { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 24px; border-radius: 2px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: 0.03em; text-transform: uppercase; }
.finder--light .btn-big { background: var(--acc); color: #fff; }
.finder--light .btn-big:hover { background: var(--acc-hover); }
.finder--dark .btn-big { background: var(--acc-light); color: var(--ink); }
.finder--dark .btn-big:hover { background: #fff; }
html:not(.js) .finder fieldset, html:not(.js) .finder-count { display: none; }

/* Osiot */
.section { padding-top: 104px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 40px 64px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.prose p { margin: 0; font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.prose .muted { color: var(--muted); }
.prose .strong { font-weight: 600; }
.tip { margin: 0; padding: 20px 22px; background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; font-size: 17px; line-height: 1.55; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 12px; }
.legend div { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-top: 3px solid var(--ink); }
.legend b { font-family: var(--f-display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--acc); }
.legend span { font-size: 15px; color: var(--muted); }
.quote { margin: 0; padding-top: 32px; border-top: 3px solid var(--ink); }
.quote p { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 4.4vw, 64px); line-height: 0.95; text-transform: uppercase; text-wrap: balance; }
.quote .hl { color: var(--acc); }

/* Lahjaideat */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 28px; }
.section-head p { margin: 0; font-size: 18px; color: var(--muted); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.status { font-family: var(--f-mono); font-size: 14px; font-weight: 600; color: var(--muted); }
.link-u { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 5px; padding: 12px 0; }
.btn-outline { min-height: 44px; padding: 0 14px; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 2px; font: 600 15px var(--f-body); cursor: pointer; }
.empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding: 28px; background: #fff; border: 1.5px dashed var(--line-strong); border-radius: 4px; }
.empty p { margin: 0; font-size: 17px; line-height: 1.5; }
.empty button { min-height: 44px; padding: 0 18px; background: var(--ink); color: var(--on-dark); border: 0; border-radius: 2px; font: 600 15px var(--f-body); cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 24px; }

.card { display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--line); border-radius: 4px; overflow: hidden; scroll-margin-top: 24px; }
.card-media { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background-color: #E7E4DD; background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(21, 32, 28, 0.06) 14px 15px); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tag { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 6px 10px; background: var(--ink); color: var(--on-dark); border-radius: 2px; font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.badge { position: absolute; z-index: 1; top: 14px; right: 14px; padding: 6px 10px; background: var(--acc); color: #fff; border-radius: 2px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; padding: 18px 20px 22px; }
.meta { font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1.02; text-transform: uppercase; }
.desc { font-size: 15px; line-height: 1.55; color: var(--muted); }
.desc p { margin: 0; }
.desc p + p { margin-top: 0.8em; }
.js .desc { position: relative; max-height: 7.75em; overflow: hidden; }
.js .desc.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.js .card.is-open .desc { max-height: none; }
.js .card.is-open .desc::after { display: none; }
.more { align-self: flex-start; min-height: 44px; padding: 0; background: none; border: 0; color: var(--ink); font: 600 15px var(--f-body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--f-mono); font-size: 14px; font-weight: 600; }
.buy { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--acc); color: #fff; text-decoration: none; border-radius: 2px; font-weight: 700; font-size: 15px; }
.buy:hover { background: var(--acc-hover); color: #fff; }
.show-all { display: flex; justify-content: center; margin-top: 28px; }
.btn-dark { min-height: 56px; padding: 0 32px; background: var(--ink); color: var(--on-dark); border: 0; border-radius: 2px; font-family: var(--f-display); font-size: 24px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer; }

/* Muut osiot */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; min-height: 240px; padding: 28px; background: #fff; border: 1.5px solid var(--line); border-radius: 4px; color: var(--ink); text-decoration: none; }
.tile--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.tile-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tile--dark .tile-top { color: var(--on-dark); }
.tile--dark .tile-top .hl { color: var(--acc-light); }
.tile-title { display: block; font-family: var(--f-display); font-weight: 900; font-size: 44px; line-height: 0.95; text-transform: uppercase; }
.tile-cta { display: block; margin-top: 10px; font-size: 16px; font-weight: 600; }
.tile--dark .tile-cta { color: var(--on-dark-2); }
.tile:hover .tile-cta { text-decoration: underline; }

/* Alatunniste */
.site-foot { margin-top: 120px; background: var(--ink); color: var(--on-dark-2); }
.site-foot .wrap { display: flex; flex-direction: column; gap: 48px; padding-top: 64px; padding-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px; }
.foot-about { display: flex; flex-direction: column; gap: 14px; }
.foot-about p { margin: 0; max-width: 22em; font-size: 16px; line-height: 1.5; }
.foot-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.foot-nav h2 { margin: 0 0 6px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-3); }
.foot-nav a, .foot-nav button { padding: 6px 0; color: var(--on-dark); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.foot-nav a:hover, .foot-nav button:hover { color: var(--acc-light); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: 14px; line-height: 1.5; }

/* Evästeilmoitus */
.consent { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 22px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--ink); }
.consent p { margin: 0; flex: 1 1 420px; font-size: 15px; line-height: 1.5; }
.consent-btns { display: flex; gap: 10px; }
.consent button { min-height: 44px; padding: 0 20px; background: var(--ink); color: var(--on-dark); border: 1.5px solid var(--ink); border-radius: 2px; font: 700 15px var(--f-body); cursor: pointer; }

/* 404 */
.notfound { padding-top: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.notfound h1 { font-size: clamp(56px, 8vw, 120px); }
.notfound p { margin: 0; font-size: 19px; max-width: 32em; }
.notfound a.buy { font-size: 17px; }

/* Artikkelit */
.section--tight { padding-top: 56px; }
.page-hero .page-hero-text h1 { max-width: 16em; }
.article-hero h1 { font-size: clamp(44px, 5.6vw, 84px); line-height: 0.94; }
.article-sub { margin: 0; font-size: 21px; font-weight: 600; }
.article-body { max-width: 720px; padding-top: 48px; font-size: 18px; line-height: 1.7; }
.article-body p { margin: 0 0 1.1em; text-wrap: pretty; }
.article-body p.lead { font-size: 21px; line-height: 1.55; font-weight: 600; }
.article-body h2 { margin: 1.8em 0 0.5em; font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3vw, 40px); line-height: 1; text-transform: uppercase; text-wrap: balance; }
.article-body h3 { margin: 1.4em 0 0.4em; font-size: 18px; font-weight: 700; }
.article-body ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.article-body li { margin: 0.35em 0; padding-left: 0.2em; }
.article-body ul.pros li::marker { content: "+  "; color: var(--acc); font-weight: 700; }
.article-body ul.cons li::marker { content: "–  "; color: var(--muted); font-weight: 700; }
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.article-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #fff; border: 1.5px solid var(--line); border-radius: 4px; color: var(--ink); text-decoration: none; }
.article-card h2, .article-card h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; text-wrap: balance; }
.article-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.article-card .tile-cta { margin-top: auto; padding-top: 6px; }
.article-card:hover .tile-cta { text-decoration: underline; }
.article-card--featured { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); color: var(--on-dark); padding: 40px; }
.article-card--featured .meta { color: var(--on-dark-3); }
.article-card--featured h2 { font-size: clamp(40px, 4.4vw, 64px); max-width: 18em; }
.article-card--featured p { color: var(--on-dark-2); font-size: 18px; max-width: 40em; }
.article-card--featured .tile-cta { color: var(--acc-light); }

/* Kumppanilinkit ja yrityssivu */
.disclosure { margin: -12px 0 24px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.disclosure a { color: var(--ink); font-weight: 600; }
.article-body .tip--block { margin: 0 0 1.2em; padding: 24px 26px; }
.article-body .tip--block h2 { margin: 0 0 0.4em; font-size: clamp(26px, 2.6vw, 32px); }
.article-body .tip--block p { margin: 0; }

/* Hakulinkki, kun suoraa kauppalinkkiä ei vielä ole */
.buy--search { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.buy--search:hover { background: var(--ink); color: var(--on-dark); }

/* Yhteydenottolomake */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px 64px; align-items: start; }
.contact-side { margin: 0; max-width: 34em; font-size: 17px; line-height: 1.6; color: var(--muted); }
.contact-form { display: flex; flex-direction: column; gap: 18px; padding: 32px; background: #fff; border: 1.5px solid var(--line); border-radius: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: 2px; font: 400 16px/1.4 var(--f-body); }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--acc-light); outline-offset: 1px; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.form-note a { color: var(--ink); font-weight: 600; }
.btn-submit { align-self: flex-start; min-height: 52px; padding: 0 28px; background: var(--acc); color: #fff; border: 0; border-radius: 2px; font: 700 16px var(--f-body); cursor: pointer; }
.btn-submit:hover { background: var(--acc-hover); }
