/* VARIABLES */
:root {
  --accent: #405ea4;
  --ink: #0f1424;
  --fog: #eef0f5;
  --font-heading: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --max: 70rem;
  --tile-ratio: 16 / 9;
}

/* BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fog); color: var(--ink);
  font-family: var(--font-body); font-size: 0.95rem; line-height: 1.6;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3rem 0 4rem; }

h1 { font-family: var(--font-heading); font-weight: 700; font-synthesis: none; }
h1 { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.1; margin: 0 0 1rem; }
h2, h3, .tile-label { font-family: var(--font-heading); }
.btn, nav a { font-family: var(--font-body); }
h2 { font-size: 1.8rem; margin: 2.5rem 0 0.5rem; }
h3 { font-size: 1.8rem; margin: 0 0 0.9rem; color: var(--accent); }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--accent); color: var(--fog); padding: 0.5rem 1rem; z-index: 10; }

/* HEADER & NAVIGATION */
.site-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem 2rem;
  max-width: var(--max); width: 100%; margin: 0 auto; padding: 0.5rem 1.25rem;
}
.logo img { display: block; height: 3rem; width: auto; }  
nav { display: flex; gap: 1.5rem; }
nav a { font-family: var(--font-body); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; }

/* BUTTONS */
.btn {
  font-family: var(--font-body);
  display: inline-block; padding: 0.8rem 1.5rem; background: var(--accent); color: var(--fog);
  text-decoration: none; font-weight: 700; border-radius: 0.25rem;
}
.btn:hover { background: var(--ink); color: var(--fog); }

/* FOOTER */
.site-footer {
  font-family: var(--font-body);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem;
  max-width: var(--max); width: 100%; margin: 0 auto; padding: 1rem 1.25rem 2.5rem;
  border-top: 1px solid var(--fog); font-size: 0.8rem;
}
.site-footer p { margin: 0; }
.site-footer a + a { margin-left: 1.25rem; }

/* LANDING PAGE */
/* Background image behind the whole page */
body.home { background: var(--accent); color: var(--fog); }
body.home::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(206, 207, 210, 0.62), rgba(15, 20, 36, 0.8)),
    url("/images/hero-bg.jpg") center / cover no-repeat;
}

/* Header, nav and footer colours on the image */
.home .logo, .home nav a, .home a { color: var(--ink); }
.home nav a:hover { color: #fff; }
.home :focus-visible { outline-color: var(--fog); }
.home .site-footer { border-top-color: rgba(238, 240, 245, 0.35); }
.home .site-footer a { color: var(--fog); }

.hero {
  min-height: 70vh; margin-top: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 0;
}

/* Title with the logo as the "O" */
.hero-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(1rem, 4.6vw, 3.6rem);
  line-height: 1.25; white-space: nowrap;
  color: var(--ink);
}
.logo-o {
  display: inline-block;
  height: 1.7em; width: auto;
  vertical-align: -0.6em;
  margin-right: -0.35em;
  filter: drop-shadow(0 0 0.06em rgba(238, 240, 245, 0.7));
}

/* Welcome blurb and buttons */
.lead { font-size: 1.25rem; max-width: 36rem; margin: 0 auto; color: var(--ink); }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.hero .btn { background: transparent; color: var(--fog); box-shadow: inset 0 0 0 2px var(--fog); }
.hero .btn:hover { background: #fff; color: var(--ink); }
.hero .btn-alt { background: transparent; color: var(--fog); box-shadow: inset 0 0 0 2px var(--fog); }
.hero .btn-alt:hover { background: var(--fog); color: var(--ink); }

/* SHORTS */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.75rem; margin-top: 2rem; }
.tile { display: block; text-decoration: none; color: var(--ink); }
.tile-img, .tile img {
  display: block; width: 100%; aspect-ratio: var(--tile-ratio);
  object-fit: cover; border-radius: 0.25rem; background: var(--accent);
}
.tile-media { overflow: hidden; border-radius: 0.25rem; }
.tile img { transition: transform 0.25s; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile-label {
  display: block; margin-top: 0.6rem; font-weight: 700; font-size: 1.2rem;
  border-bottom: 3px solid transparent; width: fit-content;
}
.tile:hover .tile-label { border-bottom-color: var(--accent); }
.tile-sub { display: block; }

/* FEATURES  */
.grid-one {
  grid-template-columns: repeat(2, minmax(0, 28rem));
  justify-content: center;
}
.tile-status { display: block; font-size: 0.85rem; font-weight: 700; margin-top: 0.25rem; color: var(--accent); }
.tile-text { display: block; font-size: 0.75rem; font-style: italic; font-weight: 700; margin-top: 0.25rem; color: var(--ink); }

@media (max-width: 45rem) {
  .grid-one { grid-template-columns: minmax(0, 28rem); }
}

/* Coming soon, Silos, Welcome to Iceland */
.coming-soon, .silos, .welcome-to-iceland {
  min-height: 60vh; padding: 3rem 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.coming-soon img, .silos img, .welcome-to-iceland img { height: 9rem; width: auto; margin-bottom: 1.5rem; }
.coming-soon h1, .silos h1, .welcome-to-iceland h1 { font-family: var(--font-heading); font-weight: 800; margin-bottom: 0.5rem; }
.coming-soon p, .silos p, .welcome-to-iceland p { font-size: 1.2rem; margin: 0 0 1.5rem; max-width: 40rem; }

/* CONTACT */
.bio { padding: 1rem 0; }            
.bio h3 { margin: 0 0 0.1rem; }       
.bio p { margin-top: 0; }

/* TERMS */
.prose { max-width: 60rem; margin-left: auto; margin-right: auto; }

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}