/*
  Forsíða proinn.is. Kyrrstæð síða án smíðaskrefs og án skriftu.
  Litir, letur og form fylgja docs/utlit.md (pappírinn, ljóst og dökkt eftir stillingu tækisins).
  Letrið er hýst hér í fonts/ (OFL-leyfi); ekkert er sótt frá þriðja aðila.
*/

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/newsreader-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/figtree-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
}

:root {
  --bg: #f3f6f1;
  --surface: #ffffff;
  --ink: #14251d;
  --muted: #5b6c63;
  --line: #cbd6ce;
  --accent: #1d5a3d;
  --accent-soft: #e1eee5;
  --sel: #c2410c;

  --font-head: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1613;
    --surface: #15201b;
    --ink: #e4ede7;
    --muted: #92a39a;
    --line: #27362f;
    --accent: #62c48e;
    --accent-soft: #14291f;
    --sel: #ff8a3d;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

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

/* Haus: eins og valmynd forritsins, með 1px blekstrik undir. */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--ink);
}

.site-header-inner {
  display: flex;
  align-items: center;
  max-width: 1240px;
  min-height: 60px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Merki Golfklúbbsins á hvítum hringlaga fleti þar til próinn fær eigið merki. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
}

.brand-mark img {
  display: block;
  width: 28px;
  height: 28px;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}

main {
  flex: 1;
  display: grid;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 16px 56px;
}

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

/* Merkimiði: staðan er orð, með 3px orange línu undir (orange er aðeins lína á pappír). */
.label {
  display: inline-block;
  margin: 0 0 20px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--sel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(40px, 11vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  max-width: 24ch;
  margin: 20px 0 0;
  font-size: clamp(20px, 5vw, 26px);
  line-height: 1.35;
  text-wrap: balance;
}

/* Myndin: flöt með holu, flaggi og bolta. Aðeins skraut, svo hún er falin fyrir lesurum. */
.scene {
  min-width: 0;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--ink);
}

.scene svg {
  display: block;
  width: 100%;
  height: auto;
}

.scene .grass {
  fill: var(--accent-soft);
}

.scene .grass-edge {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.scene .putt-line {
  fill: none;
  stroke: var(--sel);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 0.1 9;
}

.scene .hole {
  fill: var(--ink);
}

.scene .pole {
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.scene .flag {
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 1;
  stroke-linejoin: round;
}

.scene .ball {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 3;
}

@media (min-width: 900px) {
  body {
    font-size: 16px;
  }

  .site-header-inner {
    padding: 0 24px;
  }

  main {
    padding: 64px 24px 80px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 64px;
  }
}
