/* riinailmola.fi – one stylesheet for the whole site.
   Tokens first; see CLAUDE.md for where each colour may be used. */

/* ---------- Fonts (self-hosted; add the woff2 files to /assets/fonts/) ---------- */
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --plum: #5B183B;
  --plum-hover: #45112C;
  --offwhite: #FAF7F2;
  --white: #FFFFFF;
  --bluegrey: #738A99;        /* shapes and panels only, never text */
  --bluegrey-dark: #4E6170;   /* small labels, meta text, icons */
  --bluegrey-light: #E2E7E8;  /* one light band per page */
  --rose: #E7C5C9;            /* small details only */
  --text: #343238;
  --rule: #D9DFE1;
  --on-plum: #FAF7F2;
  --on-plum-muted: #E3D3DA;

  --font-serif: "Literata", Georgia, "Times New Roman", serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --page-max: 1440px;
  --gutter: 120px;            /* side padding on desktop */
  --section-space: 120px;     /* vertical rhythm on desktop */
  --radius: 4px;
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
    --section-space: 72px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--plum); }
a:hover { color: var(--plum-hover); }

:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--plum);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Small uppercase label with the short plum line before it (calm rule 6) */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bluegrey-dark);
}
.label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--plum);
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  background: var(--plum);
  color: var(--white);
}
.button:hover { background: var(--plum-hover); color: var(--white); }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}
