/* sigurdthomassen.com — main page styles.
   Plain CSS, mobile first. Light and dark follow the visitor's device setting.
   Colours and rules are documented in the design guide (see CLAUDE.md). */

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

:root {
  color-scheme: light dark;
  /* brand colours */
  --nuit: #172050;
  --electrique: #2A6BF2;
  --cyan: #12AEEF;
  --soleil: #FFA21F;
  --white: #FFFFFF;
  /* page tokens, light */
  --bg: #FFFFFF;
  --text: #172050;
  --label: #2A6BF2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0F26;
    --text: #E8ECFA;
    --label: #12AEEF;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* ---------- phone first ---------- */
.page { min-height: 100vh; }

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 56px 28px 40px;
  background: var(--nuit);
  color: var(--white);
  border-radius: 0 0 40px 40px;
}
.dot { position: absolute; border-radius: 50%; pointer-events: none; }
.dot-big  { right: -120px; top: -120px; width: 300px; height: 300px; background: var(--electrique); }
.dot-sun  { right: 36px; top: 150px; width: 18px; height: 18px; background: var(--soleil); }
.dot-ring { display: none; }

.portrait {
  position: relative;
  display: block;
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--cyan);
}
.id { position: relative; }
.id h1 {
  margin: 0 0 8px;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.role { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--cyan); }

.links { position: relative; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn {
  display: inline-block;
  min-height: 48px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.btn-sun  { background: var(--soleil); border-color: var(--soleil); color: var(--nuit); }
.btn-line { background: var(--cyan); border-color: var(--cyan); color: var(--nuit); }
.btn-sun:hover  { background: var(--white); border-color: var(--white); }
.btn-line:hover { background: var(--white); border-color: var(--white); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.content { padding: 40px 28px 56px; }
.content-inner { max-width: 640px; }
.content section { margin: 0 0 32px; }
.content section:last-child { margin-bottom: 0; }
.content h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}
.content p { margin: 0; font-size: 17px; line-height: 1.6; }
.content .lead { font-size: 19px; }

/* ---------- larger screens: two columns ---------- */
@media (min-width: 860px) {
  .page { display: grid; grid-template-columns: minmax(380px, 1fr) 1.7fr; }
  .hero {
    min-height: 100vh;
    gap: 28px;
    padding: 72px 48px 56px;
    border-radius: 0;
  }
  .dot-big  { left: -150px; bottom: -150px; right: auto; top: auto; width: 400px; height: 400px; }
  .dot-ring { display: block; left: 90px; bottom: 150px; width: 150px; height: 150px; border: 6px solid var(--cyan); }
  .dot-sun  { right: 48px; bottom: 150px; top: auto; width: 22px; height: 22px; }
  .portrait { width: 260px; height: 260px; border-width: 6px; }
  .id h1 { margin-bottom: 12px; font-size: 48px; line-height: 1.06; }
  .role { font-size: 20px; }
  .links { margin-top: auto; padding-top: 40px; }
  .content { padding: 80px 64px 72px; }
  .content section { margin-bottom: 44px; }
  .content p { font-size: 18px; line-height: 1.65; }
  .content .lead { font-size: 21px; line-height: 1.6; }
}
