/* Aasiaan.fi — kasvoton, suomenkielinen media */
:root {
  --ink: #152824;
  --ink-soft: #2a4a43;
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --card: #fffbf4;
  --accent: #c24e1f;
  --accent-dark: #9a3c16;
  --gold: #a68643;
  --rule: #d9d0c0;
  --muted: #5f584e;
  --ok: #2c6a4e;
  --warn-bg: #f3e6d2;
  --warn-ink: #6a3e12;
  --max: 70rem;
  --nav-h: 4.25rem;
  --serif: "Newsreader", "Libre Baskerville", "Georgia", serif;
  --display: "Fraunces", "Libre Baskerville", Georgia, serif;
  --sans: "Outfit", "IBM Plex Sans", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 650; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.6em 0 0.5em; }
h3 { font-size: 1.25rem; margin: 1.3em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
small, .muted { color: var(--muted); }
code, .mono { font-family: "IBM Plex Sans", ui-monospace, monospace; font-size: 0.92em; }

.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 0.8rem; z-index: 100; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(42rem, calc(100% - 2rem)); margin-inline: auto; }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--nav-h); gap: 1rem;
}
.logo {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo span { color: var(--accent); font-weight: 500; }
nav.links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; align-items: center; }
nav.links a {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--rule); border-radius: 0.4rem;
  font-family: var(--sans); font-size: 0.9rem; padding: 0.35rem 0.6rem; color: var(--ink);
}

.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(1200px 420px at 90% -10%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%),
    radial-gradient(800px 300px at 0% 100%, color-mix(in srgb, var(--ink) 8%, transparent), transparent 70%);
}
.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.8rem;
}
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 40rem; }
.meta { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }

.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.card, .country-card, .article-card, .sell {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
}
.country-card { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, border-color .15s ease; }
.country-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); }
.country-card h2 { margin: 0 0 0.35em; font-size: 1.45rem; }
.country-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.flag { font-size: 1.4rem; line-height: 1; margin-bottom: 0.5rem; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn[aria-disabled="true"], .btn.placeholder {
  background: var(--ink-soft);
  cursor: not-allowed;
  opacity: 0.85;
}

section { padding: 2.6rem 0; }
section + section { border-top: 1px solid var(--rule); }
.section-head { max-width: 40rem; margin-bottom: 1.4rem; }

.callout {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-left: 3px solid var(--gold);
  padding: 0.9rem 1rem;
  border-radius: 0 0.6rem 0.6rem 0;
  margin: 1.2rem 0;
  font-size: 1rem;
}
.callout strong { display: block; margin-bottom: 0.2rem; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.callout.info { background: color-mix(in srgb, var(--ink) 6%, var(--paper)); color: var(--ink); border-left-color: var(--ink-soft); }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--rule); }
th { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.price { font-family: var(--display); font-size: 2.4rem; font-weight: 650; letter-spacing: -0.03em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }

form.signup, form.contact {
  display: grid; gap: 0.7rem; max-width: 24rem;
}
label { font-family: var(--sans); font-size: 0.85rem; font-weight: 500; }
input[type="email"], input[type="text"], textarea {
  font: inherit; font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--ink);
}
.placeholder-note {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.prose { max-width: 42rem; }
.prose h2:first-child { margin-top: 0; }
.toc { font-size: 1rem; }
.toc a { text-decoration: none; }
.source-list { font-size: 0.98rem; }
.source-list li { word-break: break-word; }
.updated {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.affiliate {
  font-family: var(--sans);
  font-size: 0.85rem;
  background: #efe6d4;
  border: 1px dashed #b08d4f;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  color: #6a3e12;
  white-space: nowrap;
}

footer.site {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 2.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--ink) 4%, var(--paper));
}
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.foot-brand { font-family: var(--display); color: var(--ink); font-size: 1.2rem; font-weight: 650; margin-bottom: 0.4rem; }

@media (max-width: 800px) {
  .grid-3, .grid-2, .foot-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  nav.links {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.8rem 1rem 1rem;
    flex-direction: column; align-items: flex-start;
  }
  nav.links.open { display: flex; }
  .hero { padding: 2.2rem 0 1.8rem; }
  body { font-size: 1.05rem; }
}
