/* Alfatoon d.o.o. — single page, calm palette drawn from paper, moss and clay. */

:root {
  --bg:        #faf7f0;   /* paper */
  --panel:     #e9ecdf;   /* pale moss, for the hero card */
  --panel-line:#3f5142;   /* deep moss, hero contour lines */
  --ink:       #2c2f27;   /* near-black, warmed with green */
  --muted:     #6d6a5c;   /* soft olive grey */
  --rule:      #e2ddd0;   /* sand */
  --accent:    #4d6b52;   /* moss green, links */
  --accent-ink:#3a5240;   /* moss green, on pale panel */
  --tag-bg:    #f1efe6;
  --tag-line:  #ddd6c4;
  --measure:   36rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #14170f;
    --panel:     #1e2519;
    --panel-line:#c9d6b7;
    --ink:       #e9e6da;
    --muted:     #a4a08e;
    --rule:      #2b2e24;
    --accent:    #9dbf9c;
    --accent-ink:#a9cba6;
    --tag-bg:    #1c2016;
    --tag-line:  #333828;
  }
}

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

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

body {
  margin: 0;
  padding: 2.5rem 1.5rem 5rem;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
}

/* ---- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
}

.hero-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--panel-line);
}

.hero-contours path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  opacity: 0.22;
}

.eyebrow {
  position: relative;
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.hero h1 {
  position: relative;
  margin: 0;
  max-width: 20ch;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.standfirst {
  position: relative;
  margin: 1.1rem 0 0;
  max-width: 34ch;
  color: var(--ink);
}

.location {
  position: relative;
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---- Sections ------------------------------------------------------------ */

section + section,
.hero + section {
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

.hero + section { margin-top: 3.5rem; }

h2 {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
               "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.item + .item { margin-top: 1.75rem; }

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

/* ---- Stack tags ----------------------------------------------------------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--tag-line);
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---- Contact -------------------------------------------------------------- */

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

/* ---- Links ---------------------------------------------------------------- */

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Footer ---------------------------------------------------------------- */

footer {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer p { margin: 0; }

/* ---- Small screens ---------------------------------------------------------- */

@media (max-width: 30rem) {
  body { padding: 1.5rem 1.25rem 3.5rem; }
  .hero { padding: 2.25rem 1.5rem; border-radius: 1.25rem; }
  .hero h1 { font-size: 1.65rem; }
  section + section,
  .hero + section,
  footer { margin-top: 2.5rem; padding-top: 1.75rem; }
}
