/* Kaleva Studio — site styles (v2) */
:root {
  --paper: #f7f5f0;
  --paper-2: #fffdf8;
  --ink: #1e1c19;
  --ink-soft: #4a453e;
  --muted: #7a7368;
  --line: #e2dcd0;
  --line-strong: #cfc7b8;
  --green: #2b5548;
  --green-deep: #22443a;
  --terra: #a3522c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(43, 85, 72, 0.16); }

a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(43, 85, 72, 0.38);
}

a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ---------- header ---------- */

header.top {
  background: var(--paper);
  border-top: 4px solid var(--green);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  border: 0;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  background: var(--green);
  color: #f6f3ea;
  font: 400 19px/1 var(--serif);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.word {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.1px;
}

.word em {
  font: 400 10px/1.5 var(--sans);
  font-style: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

nav.main {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 21px;
  font-size: 14px;
}

nav.main a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav.main a:hover { color: var(--ink); border-bottom-color: var(--green); }

.phone {
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid rgba(30, 28, 25, 0.2);
}

.phone:hover { border-bottom-color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  background: var(--green);
  color: #f4f1e8;
}

.hero-in { padding-top: 58px; padding-bottom: 46px; }

.kicker {
  font-size: 11.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.62);
  margin: 0 0 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(29px, 4.4vw, 45px);
  line-height: 1.16;
  letter-spacing: -0.4px;
  margin: 0 0 20px;
  max-width: 19ch;
  color: #fbf9f2;
}

.hero .lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: rgba(251, 249, 242, 0.84);
  margin: 0 0 28px;
  max-width: 52ch;
}

.btn {
  display: inline-block;
  background: #f4f1e8;
  color: var(--green-deep);
  padding: 11px 21px;
  border-radius: 2px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #f4f1e8;
}

.btn:hover { background: #fffdf6; }

.btn-quiet {
  margin-left: 20px;
  color: #f4f1e8;
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 241, 232, 0.45);
  padding-bottom: 1px;
}

.btn-quiet:hover { border-bottom-color: #f4f1e8; }

.hero-note {
  margin: 34px 0 0;
  padding-top: 15px;
  border-top: 1px solid rgba(244, 241, 232, 0.2);
  font-size: 13.5px;
  color: rgba(244, 241, 232, 0.68);
  max-width: 50ch;
}

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 266px;
  gap: 58px;
  padding-top: 46px;
  padding-bottom: 66px;
}

.layout.narrow {
  display: block;
  max-width: 700px;
  padding-top: 38px;
}

h1.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
  max-width: 26ch;
}

article h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  letter-spacing: -0.2px;
  margin: 50px 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

article > h2:first-child { margin-top: 0; }

article h2 .num {
  font: 600 11.5px/1 var(--sans);
  letter-spacing: 0.13em;
  color: var(--terra);
  flex: 0 0 auto;
}

h3 {
  font-size: 15.5px;
  font-weight: 650;
  margin: 26px 0 6px;
  color: var(--ink);
}

p { margin: 0 0 14px; }

.lead-2 { font-size: 18px; color: var(--ink-soft); margin: 0 0 16px; max-width: 58ch; }

.meta {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}

.small { font-size: 13.5px; color: var(--muted); }

/* ---------- tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  margin: 0 0 12px;
}

th {
  text-align: left;
  font: 600 10.5px/1.4 var(--sans);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 16px 9px 0;
  border-bottom: 1px solid var(--line-strong);
}

td {
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th:last-child, td:last-child { padding-right: 0; }

tbody tr:hover td { background: rgba(43, 85, 72, 0.035); }

.prices td:last-child {
  white-space: nowrap;
  text-align: right;
  font-family: var(--serif);
  font-size: 17.5px;
  color: var(--ink);
}

.work td:first-child {
  white-space: nowrap;
  color: var(--terra);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  padding-top: 13px;
}

.work td:nth-child(2) { font-weight: 600; color: var(--ink); }

/* ---------- facts, steps, notes ---------- */

dl.facts {
  display: grid;
  grid-template-columns: 138px 1fr;
  margin: 22px 0 0;
  font-size: 15.5px;
}

dl.facts dt, dl.facts dd {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

dl.facts dt { color: var(--muted); }

ol.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 4px 0 0;
}

ol.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 36px;
  margin-bottom: 17px;
}

ol.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--terra);
  font: 500 11.5px/20px var(--sans);
  text-align: center;
}

ul.notes {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.notes li { border-bottom: 1px solid var(--line); }

ul.notes a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  text-decoration: none;
  color: var(--ink);
}

ul.notes a:hover { color: var(--green); }

ul.notes time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- aside ---------- */

aside {
  align-self: start;
  position: sticky;
  top: 88px;
}

aside .card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  padding: 22px 22px 24px;
  font-size: 14.5px;
}

aside h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  margin: 0 0 9px;
  padding: 0;
  border: 0;
}

aside p { margin: 0 0 8px; }

aside section + section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dotted var(--line-strong);
}

aside ul.plain { list-style: none; margin: 0; padding: 0; }

aside ul.plain li { margin-bottom: 7px; }

aside .stamp {
  margin: 24px 0 0;
  padding-top: 14px;
  border-top: 1px dotted var(--line-strong);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- footer ---------- */

footer {
  background: #efece3;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  padding-top: 38px;
  padding-bottom: 30px;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 7px;
}

.foot-h {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 9px;
}

footer p { margin: 0; }

footer a { color: var(--ink-soft); text-decoration: none; }

footer a:hover { color: var(--green); text-decoration: underline; }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 30px;
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line-strong);
}

.colophon { max-width: 54ch; }

/* ---------- mobile ---------- */

@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 12px 22px; }
  nav.main { order: 3; width: 100%; margin-left: 0; gap: 16px; }
  .phone { margin-left: auto; }
  .layout { grid-template-columns: 1fr; gap: 40px; padding-top: 34px; }
  aside { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero-in { padding-top: 40px; padding-bottom: 34px; }
  .btn-quiet { margin-left: 0; display: inline-block; margin-top: 12px; }
  h1.page-title { font-size: 26px; }
  article h2 { font-size: 20px; }
  table { font-size: 14.5px; }
  th, td { padding-right: 10px; }
  dl.facts { grid-template-columns: 110px 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
