/* abittoomuch.fi: light theme. Colours and fonts come only from brand-tokens.css.
   Approved text pairs (brand guide 5.3): Muste/Liitu 19.82, Yö/Liitu 17.08, Oliivi/Liitu 6.45,
   Liitu/Oliivi 6.45, Kivi/Liitu 5.44, Muste/Hiekka 17.88. 8 px grid, 960 px content, no motion. */

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

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

body {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.container > p,
.container > h2,
.container > h1 {
  max-width: 68ch;
}

h1,
h2,
h3,
p {
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.15;
  color: var(--abtm-night);
}

h2 {
  font-size: clamp(26px, 3.5vw, 32px);
  line-height: 1.2;
  color: var(--abtm-night);
}

a {
  color: var(--abtm-olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

/* Header: primary logo; the SVG carries its own protection area (brand guide 4.2). */
.site-header .container {
  padding-top: 32px;
  padding-bottom: 16px;
}

.logo {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
}

.hero .container {
  padding-top: 40px;
  padding-bottom: 32px;
}

.lead {
  font-size: clamp(20px, 2.2vw, 22px);
  line-height: 1.5;
}

.section .container {
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (min-width: 720px) {
  .hero .container {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .section .container {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* Buttons: Oliivi with Liitu text (brand guide 5.4, fi light). */
.button,
a.button {
  display: inline-block;
  font: 600 16px/1.35 "Inter", system-ui, sans-serif;
  color: var(--abtm-paper);
  background: var(--abtm-olive);
  border: 0;
  border-radius: 8px;
  padding: 16px 32px;
  min-height: 48px;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--abtm-night);
}

.button:disabled {
  cursor: default;
}

/* Card: Hiekka surface with Muste text; radius 12 px. */
.card {
  background: var(--abtm-sand);
  color: var(--abtm-ink);
  border-radius: 12px;
  padding: 32px 24px;
  max-width: 68ch;
}

.card a {
  color: var(--abtm-ink);
}

@media (min-width: 600px) {
  .card {
    padding: 40px;
  }
}

.field {
  margin-bottom: 24px;
}

label {
  display: block;
  font: 500 16px/1.35 "Inter", system-ui, sans-serif;
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
textarea {
  display: block;
  width: 100%;
  font: 400 18px/1.5 "Inter", system-ui, sans-serif;
  color: var(--abtm-ink);
  background: var(--abtm-paper);
  border: 2px solid var(--abtm-night);
  border-radius: 8px;
  padding: 12px 16px;
  min-height: 48px;
}

textarea {
  resize: vertical;
}

/* Error state: text and a strong outline, no red (brand guide 5.4). */
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-width: 4px;
}

.field-error {
  margin: 8px 0 0;
  padding: 8px 0 8px 16px;
  border-left: 4px solid var(--abtm-night);
  font-size: 16px;
  font-weight: 600;
  color: var(--abtm-ink);
}

.consent {
  font-size: 16px;
}

.actions {
  margin-bottom: 0;
}

.form-status {
  margin: 24px 0 0;
  padding: 16px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--abtm-ink);
  background: var(--abtm-paper);
  border: 2px solid var(--abtm-olive);
}

.form-status.is-error {
  border: 4px solid var(--abtm-night);
}

[hidden] {
  display: none !important;
}

/* Footer: a Yö rule, Kivi text, olive links (layout image). */
.site-footer {
  border-top: 1px solid var(--abtm-night);
  color: var(--abtm-slate);
  font-size: 16px;
}

.site-footer .container {
  padding-top: 32px;
  padding-bottom: 40px;
}

.site-footer p {
  margin-bottom: 8px;
}
