/* Krokodylek site: tokens + shared components. Fonts are self-hosted (assets/fonts, OFL). */
@font-face { font-family: 'Nunito'; src: url('fonts/nunito-600-900.woff2') format('woff2'); font-weight: 600 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fonts/figtree-400-700.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --ink: #17324D;
  --ink-soft: #4A5D70;
  --croc: #5AAE3E;
  --forest: #2B6B2E;
  --leaf: #EAF5E4;
  --apricot: #F5A05A;
  --apricot-soft: #FDEBDB;
  --paper: #FFFFFF;
  --line: #D3E0D6;
  --error: #9C3418;
  --error-soft: #FCEBE4;

  --font-display: 'Nunito', 'Trebuchet MS', sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 1.4rem + 3vw, 3.25rem);

  --radius-s: 8px;
  --radius-l: 20px;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: var(--forest); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }

/* Brand lockup: mark + wordmark text (wordmark is plain text in the HTML) */
.brand { display: inline-flex; align-items: center; gap: 0.45em; text-decoration: none; color: var(--ink); }
.brand img { width: 2.2em; height: 2.2em; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.35em; letter-spacing: 0.005em; }
.brand-lg { font-size: 1.9rem; }
.w500 { font-weight: 500; }
.w600 { font-weight: 600; }
.w700 { font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.65em 1.4em;
  font: 600 var(--step-0)/1.2 var(--font-body);
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--leaf); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--forest); padding-inline: 0.4em; text-decoration: underline; }
.btn:disabled, .btn[aria-disabled="true"] { background: #E3E8EC; color: #56636E; border-color: transparent; cursor: not-allowed; }

/* Form fields */
.field { display: grid; gap: 0.35em; margin-bottom: 1.1em; max-width: 26rem; }
.field label { font-weight: 600; }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.input {
  min-height: 48px; padding: 0.55em 0.8em;
  font: 400 var(--step-0)/1.3 var(--font-body); color: var(--ink);
  background: #fff; border: 2px solid #8A9AA8; border-radius: var(--radius-s);
}
.input:focus-visible { outline: 3px solid var(--apricot); outline-offset: 1px; border-color: var(--ink); }
.field.invalid .input { border-color: var(--error); }
.field .error-text { color: var(--error); font-size: var(--step--1); font-weight: 600; margin: 0; }

/* Messages */
.notice { padding: 1em 1.2em; border-radius: var(--radius-s); border-left: 6px solid; max-width: 40rem; }
.notice p { margin: 0.2em 0 0; }
.notice strong { display: block; }
.notice-ok { background: var(--leaf); border-color: var(--forest); }
.notice-error { background: var(--error-soft); border-color: var(--error); color: var(--ink); }
.notice-error strong { color: var(--error); }
.notice-info { background: var(--apricot-soft); border-color: var(--apricot); }
