/* millaratia.com — staattinen sivusto */
:root {
  --navy: #00283d;
  --navy-2: #0c263b;
  --pink: #f68f9a;
  --pink-btn: #e8949b;
  --beige: #f5f2ef;
  --white: #ffffff;
  --text: #33434c;
  --muted: #8a97a0;
  --hero-text: #c4d0d8;
  --footer-muted: #9fb2bd;
  --line: #e4e0dc;
  --max: 1350px;
  --narrow: 952px;
  --gutter: 25px;
  --head: "Jost", sans-serif;
  --body: "Nunito Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; color: var(--navy); margin: 0; line-height: 1.2; }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(0,40,61,.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 134px; }
.brand {
  font-family: var(--head); font-weight: 600; font-size: 20px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--navy); text-decoration: none;
}
.nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav a {
  font-family: var(--head); font-weight: 500; font-size: 15px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--navy); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--pink); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy);
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero { background: var(--navy-2); color: var(--white); padding: 140px 0 150px; }
.hero.page { padding: 100px 0 110px; }
.eyebrow {
  font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--pink); margin: 0 0 18px;
}
.hero h1 { color: var(--white); font-size: clamp(44px, 7vw, 86px); letter-spacing: -.01em; }
.hero.page h1 { font-size: clamp(38px, 5vw, 60px); }
.rule { width: 80px; height: 4px; background: var(--pink); border: 0; margin: 34px 0 40px; }
.hero.page .rule { width: 60px; height: 3px; margin: 28px 0 32px; }
.lead {
  font-family: var(--head); font-size: 21px; line-height: 1.85; color: var(--hero-text);
  max-width: 880px; margin: 0;
}
.hero.page .lead { font-family: var(--body); font-size: 17px; }
.btns { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 56px; }

.btn {
  display: inline-block; font-family: var(--head); font-weight: 600; font-size: 18px; letter-spacing: .02em;
  text-decoration: none; padding: 20px 36px; border: 1px solid transparent; transition: filter .2s, background .2s;
}
.btn-pink { background: var(--pink-btn); color: var(--navy); }
.btn-pink:hover { filter: brightness(1.06); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy-2); color: var(--white); }
.btn-navy:hover { filter: brightness(1.25); }
.btn-caps { font-size: 16px; letter-spacing: .1em; text-transform: uppercase; padding: 15px 34px; }

/* Profile hero with photo */
.hero-profile .wrap { display: grid; grid-template-columns: 540px 1fr; gap: 110px; align-items: start; }
.photo { position: relative; padding: 0 0 0 0; }
.photo::before {
  content: ""; position: absolute; left: 0; top: 0; width: 78%; height: 78%; background: var(--pink-btn);
}
.photo img { position: relative; margin: 26px 0 0 26px; width: calc(100% - 26px); aspect-ratio: 1301/1528; object-fit: cover; }
.photo figcaption {
  font-family: var(--head); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hero-text); margin: 18px 0 0 26px;
}
.hero-profile .eyebrow { margin-top: 30px; }
.recognitions {
  font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pink); margin-top: 36px; line-height: 1.9;
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section.beige { background: var(--beige); }
.section.tight { padding: 90px 0; }
.section + .section:not(.beige):not(.cta) { border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(32px, 3.5vw, 42px); margin-bottom: 34px; }
.section .intro { font-family: var(--head); font-size: 20px; line-height: 2; color: var(--text); max-width: 1010px; margin: 0 0 80px; }
.prose p { margin: 0 0 26px; font-size: 19px; }
.prose p:last-child { margin-bottom: 0; }

/* Cards */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--pink-btn);
  padding: 46px 34px 34px; display: flex; flex-direction: column;
}
.beige .card { border-color: transparent; border-top-color: var(--pink-btn); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.card .kicker {
  font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.card .kicker.pink { color: var(--pink); font-size: 15px; letter-spacing: .1em; line-height: 1.6; }
.card h3 { font-size: 28px; margin: 0 0 16px; }
.card p { font-size: 17px; line-height: 1.7; margin: 0 0 26px; }
.card .tags { margin-top: auto; font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--navy); }
.card.compact { padding: 34px 26px 30px; }
.card.compact h3 { font-size: 20px; margin: 0; line-height: 1.35; }
.card.service h3 { font-size: 24px; }
.card.service p { margin: 0; }
.link-arrow {
  margin-top: auto; align-self: flex-start; font-family: var(--head); font-weight: 600; font-size: 18px;
  color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--pink-btn); padding-bottom: 4px;
}
.link-arrow:hover { color: #1f4e69; }

/* Highlights panel (etusivu) */
.panel {
  background: var(--white); margin-top: 80px; padding: 60px 50px;
  display: grid; grid-template-columns: 148px 1fr; gap: 46px; align-items: center;
}
.panel img { box-shadow: 0 14px 30px rgba(0,40,61,.18); }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { position: relative; padding-left: 28px; font-size: 19px; line-height: 1.95; color: var(--text); }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .9em; width: 14px; height: 2px; background: var(--pink-btn); }
.dash-list a { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--pink-btn); }

/* Two-column lists (profiili) */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.cols h2 { font-size: 30px; margin-bottom: 24px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.55; }
.plain-list li:first-child { border-top: 1px solid var(--line); }
.text-link {
  display: inline-block; margin-top: 30px; font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--pink-btn); padding-bottom: 3px;
}

/* Books */
.book-intro { font-family: var(--head); font-size: 20px; margin: 0 0 40px; }
.book {
  display: grid; grid-template-columns: 373px 1fr; background: var(--white);
  border-top: 4px solid var(--navy-2); box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.book-cover { background: var(--pink-btn); display: flex; align-items: center; justify-content: center; padding: 54px 42px; }
.book-cover img { box-shadow: 0 18px 36px rgba(0,40,61,.35); width: 100%; max-width: 290px; }
.book-body { padding: 56px 56px 50px; }
.badge {
  display: inline-block; background: var(--navy-2); color: var(--white); font-family: var(--head); font-weight: 600;
  font-size: 15px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 16px; margin-bottom: 18px;
}
.badge.pink { background: var(--pink-btn); color: var(--navy); }
.book h3 { font-size: clamp(30px, 3vw, 38px); }
.book .subtitle { font-family: var(--head); font-size: 21px; color: var(--text); margin: 10px 0 18px; }
.book .meta { font-family: var(--head); font-size: 17px; color: var(--muted); margin: 0 0 28px; }
.book p { font-family: var(--head); font-size: 18px; line-height: 1.8; margin: 0 0 22px; }
.book strong { color: var(--navy); font-weight: 600; }
.book .btns { margin-top: 36px; gap: 18px; }

/* Contact cards */
.contact-card .kicker { color: var(--pink); }
.contact-card a { font-family: var(--head); font-weight: 600; font-size: 22px; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--pink-btn); padding-bottom: 2px; word-break: break-word; }
.contact-card { padding: 40px 34px; }

/* ---------- CTA footer ---------- */
.cta { background: var(--navy-2); color: var(--white); padding: 90px 0 0; }
.cta h2 { color: var(--white); font-size: clamp(28px, 3vw, 38px); margin: 0 0 36px; }
.cta .mail {
  font-family: var(--head); font-size: 26px; color: var(--white); text-decoration: none;
  border-bottom: 2px solid var(--pink-btn); padding-bottom: 4px;
}
.footer-bar {
  margin-top: 46px; border-top: 1px solid rgba(255,255,255,.14); padding: 36px 0 60px;
  display: flex; justify-content: space-between; font-family: var(--head); font-size: 16px; letter-spacing: .04em; color: var(--footer-muted);
}
.footer-bar a { color: var(--footer-muted); text-decoration: none; }
.footer-bar a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav ul { gap: 20px; }
  .nav a { font-size: 13px; }
  .hero-profile .wrap { grid-template-columns: 1fr 1.3fr; gap: 60px; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .site-header .wrap { height: 80px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 80px; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav li a { display: block; padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { color: #c2626d; border-bottom-color: var(--line); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 90px 0 100px; }
  .hero.page { padding: 70px 0 80px; }
  .hero-profile .wrap { grid-template-columns: 1fr; gap: 30px; }
  .photo { max-width: 420px; }
  .section { padding: 72px 0; }
  .section .intro { margin-bottom: 50px; font-size: 18px; }
  .grid, .grid.two, .cols { grid-template-columns: 1fr; }
  .cols { gap: 50px; }
  .panel { grid-template-columns: 1fr; padding: 40px 28px; gap: 28px; margin-top: 50px; }
  .panel img { max-width: 160px; }
  .book { grid-template-columns: 1fr; }
  .book-cover { padding: 40px; }
  .book-cover img { max-width: 240px; }
  .book-body { padding: 36px 26px; }
  .btn { padding: 16px 26px; font-size: 16px; }
  .footer-bar { flex-direction: column; gap: 12px; }
}
@media (max-width: 560px) {
  .grid.four { grid-template-columns: 1fr; }
  .lead { font-size: 18px; }
  .cta .mail { font-size: 21px; }
}
