/* =========================================================
   ShyWorks — Green room
   Plain CSS, no framework. Colors and fonts are set once here;
   change them in :root and the whole site follows.
   ========================================================= */

:root {
  /* forest + parchment */
  --bg: #0f1d15;            /* page */
  --bg-raised: #142a1d;     /* about band */
  --shelf: #1b3527;         /* the shelf the figure peeks over */
  --ledge: #4f8a64;         /* shelf's top edge */
  --text: #ece4cf;          /* parchment */
  --text-2: rgba(236, 228, 207, .84);
  --muted: rgba(236, 228, 207, .74);
  --line: rgba(236, 228, 207, .16);
  --line-strong: rgba(236, 228, 207, .3);
  --leaf: #8cc29d;          /* small highlights: numbers, links */

  --display: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Newsreader', Georgia, 'Times New Roman', serif;

  --max: 1240px;
  --gutter: 32px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; color: var(--text); }
p { margin: 0; }
a { color: var(--text); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 10; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-family: var(--display); font-weight: 700; }
.skip-link:focus { top: 16px; color: var(--bg); }

/* Marked placeholders: visibly unfinished until you fill them in */
.placeholder { outline: 1.5px dashed currentColor; outline-offset: 2px; border-radius: 3px; opacity: .9; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 17px; text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; color: var(--bg); }
.btn-ghost { border-color: rgba(236, 228, 207, .45); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); background: rgba(236, 228, 207, .06); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn-md { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 18px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 40px; }

/* ---------- header ---------- */
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand-mark { flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-family: var(--display); font-weight: 600; font-size: 16px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.nav-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- hero ---------- */
.hero { padding-top: 96px; padding-bottom: clamp(120px, 18vw, 240px); }
.kicker { margin-bottom: 22px; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--leaf); }
.hero-title { max-width: 900px; font-size: clamp(46px, 7vw, 96px); line-height: .98; letter-spacing: -0.04em; text-wrap: balance; }
.hero-lede { margin-top: 32px; max-width: 600px; font-size: 22px; line-height: 1.55; color: var(--text-2); }

/* ---------- the shelf ---------- */
.shelf { position: relative; background: var(--shelf); border-top: 3px solid var(--ledge); }

/* The giant peeking figure. Its hands overlap the shelf's top edge:
   the hands reach 1.4 of the drawing's 7.8 units below the ledge, hence 17.95%. */
.peek {
  position: absolute; right: 9%; bottom: 100%;
  width: clamp(150px, 27vw, 380px); aspect-ratio: 16 / 7.8; height: auto;
  transform: translateY(17.95%);
  pointer-events: none;
}

/* The head ducks behind the shelf edge; the eyes glance toward the cursor.
   Both are moved by js/peek.js. Units here are the drawing's own units. */
.peek-head { transition: transform .45s cubic-bezier(.2, .9, .25, 1); }
.peek.is-hiding .peek-head { transform: translateY(6.4px); transition-duration: .22s; transition-timing-function: cubic-bezier(.4, 0, .9, .6); }
.peek-eyes { transition: transform .18s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .peek-head, .peek-eyes { transition: none; }
}

.shelf-inner { padding-block: 88px 96px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 40px; }
.section-title { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.section-note { font-size: 19px; font-style: italic; color: var(--muted); }

.shelf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; padding-block: 32px; border-top: 1px solid var(--line); }
.shelf-row:last-child { padding-bottom: 0; }
.shelf-row--lead { gap: 32px 40px; padding-block: 40px; }

.row-num { flex: 0 0 48px; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--leaf); }
.row-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.shelf-row--lead .row-text { flex-basis: 380px; gap: 16px; }
.row-meta { display: flex; align-items: center; gap: 14px; }
.pill { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--bg); background: var(--leaf); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.row-title { font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; }
.row-title--lead { font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.035em; }
.row-desc { font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 620px; }
.shelf-row--lead .row-desc { font-size: 20px; }
.row-link { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--leaf); text-underline-offset: 4px; }
.row-link:hover { color: #b5dcc0; }

.shot {
  flex: 0 1 300px; min-width: 220px;
  aspect-ratio: 16 / 10; object-fit: cover; object-position: left top;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--bg-raised);
}
.shot--lead { flex: 1 1 560px; border-radius: 14px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }

/* ---------- about ---------- */
.about { background: var(--bg-raised); border-block: 1px solid var(--line); }
.about-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; padding-block: 96px; }
.photo { flex: 0 0 260px; width: 260px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; border: 1px solid var(--line-strong); }
.photo--placeholder { display: flex; align-items: center; justify-content: center; border: 1.5px dashed rgba(236, 228, 207, .45); font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--muted); }
.about-text { flex: 1 1 480px; min-width: 0; }
.body-lg { margin-top: 20px; font-size: 20px; line-height: 1.6; color: var(--text-2); }
.about-text .body-lg { font-size: 21px; }

/* ---------- say hello ---------- */
.hello { padding-block: 112px; }
.hello-title { font-size: clamp(48px, 7vw, 96px); line-height: .98; letter-spacing: -0.04em; }
.hello .hero-lede { margin-top: 24px; }
.hello .actions { margin-top: 36px; gap: 16px 20px; }
.hello-alt { font-family: var(--display); font-size: 17px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-block: 28px 36px; font-family: var(--display); font-size: 15px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .hero { padding-top: 64px; }
  .shelf-inner { padding-block: 72px 80px; }
  .about-inner { padding-block: 72px; }
  .hello { padding-block: 88px; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 18px; }

  /* Header: logo + "Say hello"; the other links are one scroll away */
  .nav-link { display: none; }

  .hero { padding-top: 40px; }
  .hero-lede { font-size: 19px; margin-top: 24px; }
  .actions { margin-top: 32px; }
  .actions .btn { flex: 1 1 auto; }

  .peek { right: 6%; }
  .shelf-inner { padding-block: 64px 64px; }

  /* Each product stacks: number, text, then a full-width screenshot */
  .shelf-row { gap: 16px; padding-block: 28px; }
  .row-num { flex-basis: 100%; }
  .row-meta .row-num { flex-basis: auto; }
  .row-text { flex-basis: 100%; }
  .row-title { font-size: 32px; }
  .row-desc, .shelf-row--lead .row-desc { font-size: 18px; }
  .shot, .shot--lead { flex: 1 1 100%; min-width: 0; }
  .shelf-row--lead .btn { width: 100%; }

  .photo { flex-basis: 100%; width: 100%; max-width: 240px; }
  .about-inner { gap: 32px; }
  .about-text .body-lg { font-size: 19px; }

  .hello { padding-block: 72px; }
  .hello .btn { width: 100%; }
}
