/* Shared stylesheet for the teacher portfolio. Code/identifiers in English;
   all visible copy lives in the HTML and is in Estonian. */

:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #1e2430;
  --muted: #5b6473;
  --accent: #2f6f4f;      /* calm green */
  --accent-soft: #e6f0ea;
  --border: #e3e6ea;
  --hint-bg: #f0f4f8;
  --maxw: 60rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1319;
    --card: #171c24;
    --ink: #e7eaef;
    --muted: #9aa4b2;
    --accent: #6fbf95;
    --accent-soft: #16241d;
    --border: #262c36;
    --hint-bg: #12202b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* ---- Header / navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  margin-right: auto;
}
.brand span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.site-nav a.active { color: var(--accent); background: var(--accent-soft); }

/* ---- Layout ---- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.page-head { margin-bottom: 2rem; }
.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 0.6rem; line-height: 1.15; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0; max-width: 46rem; }

h2 { font-size: 1.35rem; margin: 2.5rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.35rem; }
p { margin: 0.6rem 0; }

/* ---- Hero (home) ---- */
.hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: var(--accent);
}
@media (max-width: 34rem) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .avatar { margin: 0 auto; }
}

/* ---- Cards grid (domain links) ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: transform 0.06s ease, border-color 0.15s ease;
}
.tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.tile .num { color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.tile h3 { margin: 0.3rem 0 0.3rem; }
.tile p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---- Competency section ---- */
.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}
.section h3 { margin-top: 0; }

/* Guidance box: what the teacher should write here. */
.hint {
  background: var(--hint-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 0.6rem 0.9rem;
  margin: 0.6rem 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.hint::before {
  content: "Mida siia kirjutada";
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

/* Placeholder prose the teacher replaces. */
.fill { color: var(--ink); }
.fill em { color: var(--muted); }

/* Evidence / attachment note. */
.evidence {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
.evidence strong { color: var(--ink); }

ul.clean { margin: 0.5rem 0; padding-left: 1.2rem; }
ul.clean li { margin: 0.25rem 0; }

.callout {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p { margin: 0.3rem 0; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}
