@font-face{font-family:'Syne';src:url('fonts/syne-latin-wght-normal.woff2') format('woff2');font-weight:400 800;font-style:normal;font-display:swap}
@font-face{font-family:'Familjen Grotesk';src:url('fonts/familjen-grotesk-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Familjen Grotesk';src:url('fonts/familjen-grotesk-latin-700-normal.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}

:root {
  /* one coloured lamp in a dark room */
  --ink: #0e0f1a;
  --blue: #2b3cf0;
  --coral: #ff5a7a;
  --acid: #d4ff3a;
  --paper: #f1f0ff;

  --display: 'Syne', 'Familjen Grotesk', sans-serif;
  --text: 'Familjen Grotesk', 'Syne', sans-serif;

  --wide: 0.06em;
  --gutter: clamp(20px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--acid); color: var(--ink); padding: 8px 12px;
}
.skip:focus { left: 8px; z-index: 10; }

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

h1, h2, .wordmark, .night-day, .spec-val.big {
  font-family: var(--display);
  text-transform: lowercase;
  letter-spacing: var(--wide);
  font-weight: 700;
}

h2 {
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1;
  margin: 0 0 32px;
  font-weight: 800;
}

/* masthead: the sleeve's small corner title */
.masthead {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap;
  padding: 24px var(--gutter);
}
.wordmark {
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 0.2em;
}
.masthead nav { display: flex; gap: 22px; font-size: 16px; }
.masthead nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.masthead nav a:hover { border-bottom-color: var(--coral); }

/* hero: the collage is the sleeve */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: end;
  gap: clamp(16px, 3vw, 40px);
  padding: 0 var(--gutter) 64px;
}
.hero-text { padding-bottom: 12px; }
.sleeve-tag {
  font-family: var(--display);
  letter-spacing: 0.2em;
  font-size: 14px;
  color: var(--acid);
  margin: 0 0 20px;
}
h1 {
  font-size: clamp(26px, 2.9vw, 42px);
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero-sub { max-width: 32ch; margin: 0 0 28px; color: var(--paper); }
.collage { max-width: 760px; justify-self: end; width: 100%; }

.glow-toggle {
  font: inherit; font-size: 15px;
  background: transparent; color: var(--paper);
  border: 2px solid var(--paper); border-radius: 0;
  padding: 8px 14px; cursor: pointer;
}
.glow-toggle:hover { background: var(--paper); color: var(--ink); }

.collage { margin: 0; }
#lamp-collage { width: 100%; height: auto; display: block; }
.collage-tilt { transform: rotate(-4deg); transform-origin: 300px 320px; }

.halo {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: lamp-breathe 7s ease-in-out infinite;
}
@keyframes lamp-breathe {
  0%, 100% { opacity: 0.82; transform: scaleY(0.9); }
  50% { opacity: 1; transform: scaleY(1.04); }
}
.glow-paused .halo { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .halo { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* season: a coral colour field */
.season {
  background: var(--coral);
  color: var(--ink);
  padding: clamp(56px, 9vw, 120px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px;
}
.season-body { max-width: 56ch; }
.lede { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; margin: 0 0 20px; font-weight: 600; }

/* room: the spec tag on ultramarine */
.room {
  background: var(--blue);
  padding: clamp(56px, 9vw, 120px) var(--gutter);
}
.room-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 40px; margin-bottom: 36px; }
.room-head h2 { margin: 0; }
.room-line { margin: 0; max-width: 38ch; font-size: 20px; }

.spec-tag {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid var(--paper);
  max-width: 1080px;
}
.spec-cell {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px;
  border-right: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  margin: 0 -2px -2px 0;
}
.spec-wide { grid-column: 1 / -1; }
.spec-key { font-size: 15px; color: var(--acid); }
.spec-val { font-size: 19px; font-weight: 700; }
.spec-val.big { font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.spec-note { font-size: 15px; }

/* nights: a gallery wall of square colour panels */
.nights { padding: clamp(56px, 9vw, 120px) var(--gutter); }
.nights-wall {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.night {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1;
  padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.night::after {
  content: ""; position: absolute; pointer-events: none;
}
.night-day { font-size: clamp(18px, 1.7vw, 26px); position: relative; z-index: 1; }
.night-times { font-size: 15px; line-height: 1.35; position: relative; z-index: 1; }

.night-wed { background: var(--blue); color: var(--paper); }
.night-wed::after { width: 46%; height: 46%; right: -8%; top: 30%; border-radius: 50%; background: var(--acid); }

.night-thu { background: var(--coral); color: var(--ink); }
.night-thu::after { width: 60%; height: 30%; right: 8%; top: 34%; background: var(--ink); transform: rotate(-8deg); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }

.night-fri { background: var(--acid); color: var(--ink); }
.night-fri::after { width: 70%; height: 70%; right: -22%; bottom: -22%; border-radius: 50%; background: var(--blue); }

.night-sat { background: var(--paper); color: var(--ink); }
.night-sat::after { width: 34%; height: 34%; right: 14%; top: 26%; background: var(--coral); transform: rotate(12deg); }

.night-sun { background: var(--ink); color: var(--paper); outline: 2px solid var(--coral); outline-offset: -2px; }
.night-sun::after { width: 50%; height: 25%; right: 10%; top: 30%; border-radius: 999px 999px 0 0; background: var(--coral); }

/* mailing list: acid field */
.list {
  background: var(--acid);
  color: var(--ink);
  padding: clamp(56px, 9vw, 120px) var(--gutter);
}
.list-line { font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; margin: 0 0 32px; max-width: 26ch; line-height: 1.2; }
/* the sign-up as one more ruled tag: key cell, a wide written line, an ink bar */
.list-form {
  max-width: 760px;
  display: grid;
  border: 2px solid var(--ink);
}
.list-key {
  display: block; font-size: 15px; font-weight: 700;
  padding: 12px 18px;
  border-bottom: 2px solid var(--ink);
}
.list-form input {
  min-width: 0;
  font-family: var(--display); font-size: clamp(22px, 3vw, 36px); font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: transparent;
  border: 0; border-radius: 0;
  padding: 22px 18px;
}
.list-form input::placeholder { color: var(--ink); opacity: 0.4; }
.list-form button {
  font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: var(--wide);
  text-align: left;
  background: var(--ink); color: var(--acid);
  border: 0; border-radius: 0;
  padding: 18px; cursor: pointer;
}
.list-form button:hover { background: var(--blue); color: var(--paper); }
.list-done { margin: 0; padding: 14px 18px; font-weight: 700; border-top: 2px solid var(--ink); }

.foot {
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  padding: 32px var(--gutter);
  font-size: 15px;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .collage { order: -1; max-width: 560px; margin: 0 auto; justify-self: center; }
  .season { grid-template-columns: 1fr; gap: 0; }
  .season h2 { margin-bottom: 20px; }
  .nights-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .night-sun { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .spec-tag { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .masthead nav { gap: 16px; }
  .spec-tag { grid-template-columns: 1fr 1fr; }
  .spec-cell { padding: 14px; }
  .night { padding: 14px; }
  .night-day { font-size: 18px; letter-spacing: 0.03em; }
  .night-times { font-size: 13px; }
}
