/* Hard Hill Studio — a simple one-page site, 8b lockup. */

@font-face {
  font-family: Outfit;
  src: url("assets/fonts/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #3E7CB8;
  --snow: #F6F9FC;
  --tint: #E6EDF4;
  --charcoal: #222630;
  --navy: #24486E;
  --bg-top: #c9dceb;
  --bg-bottom: #F6F9FC;
  --text: var(--charcoal);
  --muted: #3E4553;
  --link: var(--navy);
  --link-hover: var(--sky);
  --ridge-back: rgba(62, 124, 184, 0.12);
  --ridge-front: rgba(246, 249, 252, 0.85);
  --footer: #5a6270;
  --focus: var(--sky);
  --font: Outfit, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #1a2838;
    --bg-bottom: #16181C;
    --text: #F0F3F7;
    --muted: #C4CEDA;
    --link: #9CC4E4;
    --link-hover: #D5E6F4;
    --ridge-back: rgba(246, 249, 252, 0.06);
    --ridge-front: rgba(22, 24, 28, 0.7);
    --footer: #9aa3b0;
  }
}

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

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 62%);
  -webkit-font-smoothing: antialiased;
}

h1, p { margin: 0; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--link-hover); }

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

::selection {
  background: var(--sky);
  color: #fff;
}

main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 3.5rem 1.5rem 2.5rem;
}

.sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ridges {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(6rem, 18vh, 11rem);
  display: block;
}

.ridge-back { fill: var(--ridge-back); }
.ridge-front { fill: var(--ridge-front); }

.panel {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 32rem;
  width: 100%;
}

.panel h1 {
  display: flex;
  justify-content: center;
}

.panel img {
  width: min(28rem, 100%);
  height: auto;
}

.tagline {
  margin-top: 1.35rem;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 450;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.contact {
  margin-top: 0.85rem;
  font-size: 1rem;
  font-weight: 450;
}

footer {
  position: relative;
  z-index: 1;
  padding: 0.9rem 1.5rem 1.35rem;
  text-align: center;
  color: var(--footer);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
