/* morten-andresen.com — a quiet personal nameplate.
   Lightened version. Adjust photo opacity, blur and brightness to taste. */
:root {
  color-scheme: dark;
  --photo-blur: 6px;
  --photo-opacity: .95;
  --text: #f6f8fa;
  --muted: #e3e9ee;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: #17212b; }
body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background: #17212b;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.site-shell {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  background: #17212b;
}
.background-photo {
  position: absolute;
  inset: -16px;
  z-index: -2;
  pointer-events: none;
  background: center center / cover no-repeat url('../img/desk-background.jpg');
  filter: blur(var(--photo-blur)) brightness(1.10);
  opacity: var(--photo-opacity);
}
.background-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,15,23,.10) 0%, rgba(8,15,23,.18) 42%, rgba(8,15,23,.25) 100%);
}
.site-header,.hero,.site-footer { position:relative; z-index:1; }
.site-header { flex-shrink:0; width:100%; padding:38px 48px 0; }
.site-link {
  display:inline-block;
  color: #f9fbfd;
  text-decoration:none;
  font-weight:400;
  font-size: clamp(1rem,1.55vw,1.38rem);
  letter-spacing: -.025em;
  line-height:1.3;
  text-shadow:0 2px 20px rgba(0,0,0,.38);
  transition:opacity .15s ease;
}
.site-link:hover {color:#fff;opacity:.83;}
.site-link:focus-visible {outline:2px solid #fff;outline-offset:6px;border-radius:2px;}
.hero { display:flex; align-items:center; justify-content:center; text-align:center; width:100%; max-width:1320px; margin:0 auto; min-height:0; flex:1; padding:28px 16px; }
.hero-content { max-width:100%; padding:.5rem 0 1.4rem; transform:translateY(-2.5vh); }
.hero h1 {
  margin:0;
  font-size:clamp(3.1rem,7.4vw,7.3rem);
  font-weight:550;
  letter-spacing:-.05em;
  line-height:1.08;
  text-wrap:balance;
  text-shadow:0 2px 26px rgba(0,0,0,.45);
}
.hero p {
  margin:1.15rem 0 0;
  color:var(--muted);
  font-size:clamp(1.25rem,2.25vw,2rem);
  font-weight:300;
  letter-spacing:.045em;
  line-height:1.4;
  text-shadow:0 2px 15px rgba(0,0,0,.40);
}
.site-footer {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  gap:clamp(12px,2vw,28px);
  width:100%;
  padding:12px 12px 40px;
}
.footer-rule {display:block;width:clamp(30px,8vw,140px);height:1px;background:rgba(242,248,253,.68);}
.footer-label {
  color:#e5ebef;
  font-size:clamp(.60rem,.9vw,.82rem);
  font-weight:500;
  letter-spacing:.22em;
  white-space:nowrap;
  line-height:1.4;
  text-shadow:0 2px 12px rgba(0,0,0,.38);
}
@media (max-width:575.98px) {
  .background-photo {background-position:50% center;}
  .site-header {padding:26px 24px 0;}
  .site-footer {padding-bottom:24px;}
  .background-shade {background:linear-gradient(180deg,rgba(8,15,23,.15),rgba(8,15,23,.25));}
  .hero-content {transform:translateY(-1.8vh);}
  .hero h1 {font-size:clamp(2.95rem,13vw,4.6rem);line-height:1.06;}
  .hero p {font-size:clamp(1.15rem,5.3vw,1.55rem);margin-top:1rem;letter-spacing:.018em;}
  .site-footer {gap:12px;}
  .footer-rule {width:clamp(21px,6vw,35px);}
  .footer-label {font-size:.64rem;letter-spacing:.14em;}
}
@media (max-height:480px) and (min-width:576px) {
  .hero h1 {font-size:clamp(2.25rem,6vw,4.3rem);}
  .hero p {margin-top:.4rem;font-size:1.15rem;}
  .hero-content {transform:none;}
}
@media (prefers-contrast:more) {
  .background-shade {background:rgba(5,12,20,.65);}
  .site-link,.hero h1,.hero p,.footer-label {text-shadow:0 1px 4px #000;}
}
@media (prefers-reduced-motion:reduce) {.site-link{transition:none;}}
/* Match the other sites: text cannot be selected except for the top-left link.
   Selection control is cosmetic and cannot protect the page's source. */
.site-shell, .site-shell * {user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}
.site-header .site-link {user-select:text;-webkit-user-select:text;-webkit-touch-callout:default;}
