/* Doorway's website. The brand's colours are the office's own (see art/brand/generate.py). */

:root {
  --plan-deep: #0e2b2e;
  --ground: #101b1c;
  --panel: #172829;
  --footer: #0b1516;
  --wall: #f3ddc6;
  --sea-glass: #56a39d;
  --sea-glass-hover: #86c9b2;
  --sea-glass-on-light: #246a6c;
  --lamp: #e8c64e;
  --lamp-hover: #f8e27a;
  --text-strong: #d6e2de;
  --text: #c9d6d2;
  --text-quiet: #a9bdb8;
  --text-faint: #85a09a;
  --paper: #f6efe6;
  --paper-card: #fffaf4;
  --paper-text: #4d6361;
  --rule: rgba(243, 221, 198, 0.14);
  --display: 'Outfit', system-ui, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--wall);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--sea-glass); }
a:hover { color: var(--sea-glass-hover); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; border-radius: 4px; }

/* The mark is pixel art: scaled by whole numbers, never smoothed. */
.px { image-rendering: pixelated; image-rendering: crisp-edges; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 16px; border-radius: 8px; background: var(--lamp); color: var(--plan-deep); font-weight: 700;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 32px; }

/* ---- Type ---- */

.eyebrow {
  margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sea-glass);
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0; }
.copy { display: flex; flex-direction: column; gap: 18px; }
.copy > p:not(.eyebrow) { max-width: 46ch; color: var(--text); font-size: 17px; }
.wordmark { font-family: var(--display); font-weight: 600; letter-spacing: -0.012em; color: var(--wall); }
.wordmark .way { color: var(--sea-glass); }

/* "by Spira Studio", in Spira's own logo as spirastud.io draws it: a hairline, then SPIRA over a widely spaced STUDIO, in
   Outfit, white whatever it's on. */
.by { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.spira { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; text-transform: none; letter-spacing: 0; }
.spira:hover { color: #fff; opacity: 0.8; }
.spira-rule { width: 1px; height: 20px; background: rgba(255, 255, 255, 0.15); }
.spira-mark { display: flex; flex-direction: column; align-items: center; font-family: var(--display); line-height: 1; }
.spira-name { margin-bottom: 2px; font-weight: 500; font-size: 20px; letter-spacing: 0.12em; }
.spira-sub { font-weight: 400; font-size: 7.5px; letter-spacing: 0.38em; color: rgba(255, 255, 255, 0.4); }

/* ---- Buttons ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.btn-lamp { background: var(--lamp); color: var(--plan-deep); }
.btn-lamp:hover { background: var(--lamp-hover); color: var(--plan-deep); }
.btn-ghost { box-shadow: inset 0 0 0 2px rgba(243, 221, 198, 0.35); color: var(--wall); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--wall); color: var(--wall); }
.btn-small { min-height: 44px; font-size: 15px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Hero: the office from above, washed in deep teal behind the words, like the brand's banners. ---- */

.hero { position: relative; overflow: hidden; background: var(--plan-deep); }
.hero-photo, .band-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo { object-position: 62% 40%; }
.hero-wash, .band-wash { position: absolute; inset: 0; }
.hero-wash {
  background: linear-gradient(90deg, rgba(14, 43, 46, 0.96) 0%, rgba(14, 43, 46, 0.93) 38%, rgba(14, 43, 46, 0.55) 64%,
    rgba(14, 43, 46, 0.12) 94%);
}

.site-header { position: relative; display: flex; align-items: center; gap: 24px; padding-block: 20px; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 24px; }
.home img { width: 32px; height: 32px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--wall); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 4px; }
.nav a:hover { color: var(--sea-glass-hover); }

.hero-body {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  padding-top: 72px; padding-bottom: 112px;
}
.hero-body .eyebrow { color: var(--text-quiet); }
.hero h1 { max-width: 11ch; font-size: clamp(44px, 6.2vw, 80px); line-height: 1; letter-spacing: -0.02em; }
.hero .lede { max-width: 44ch; font-size: 19px; line-height: 1.5; color: var(--text-strong); }
.hero .buttons { padding-top: 6px; }
.hero .note { font-size: 14px; color: var(--text-quiet); }

/* ---- Features: rows of words and a real screenshot. ---- */

.features { padding-top: 112px; padding-bottom: 48px; }
.features > .wrap { display: flex; flex-direction: column; gap: 120px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 56px; align-items: center; }
/* The words come first, so they're read first; every other row puts its picture on the left, from tablet size up. */
@media (min-width: 761px) { .row.flip > :last-child { order: -1; } }
.shot {
  width: 100%; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(243, 221, 198, 0.12), 0 24px 48px -24px rgba(0, 0, 0, 0.7);
}

.seasons-intro { max-width: 760px; }
.seasons-intro > p:not(.eyebrow) { max-width: 54ch; }
.time { display: flex; flex-direction: column; gap: 32px; }
.seasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.seasons figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.seasons .shot { aspect-ratio: 16 / 10; object-fit: cover; }
.seasons figcaption { font-size: 14px; color: var(--text-quiet); }

/* ---- The little things ---- */

.extras { padding-top: 72px; padding-bottom: 112px; }
.extras > .wrap { display: flex; flex-direction: column; gap: 32px; }
.extras h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.01em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cards li { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 12px; background: var(--panel); }
.cards svg { width: 24px; height: 24px; fill: none; stroke: var(--sea-glass); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cards p { color: var(--text-quiet); font-size: 15px; }

/* ---- How it works: the light theme, for a change of pace. ---- */

.how { background: var(--paper); color: var(--plan-deep); padding-top: 104px; padding-bottom: 112px; }
.how > .wrap { display: flex; flex-direction: column; gap: 48px; }
.how .copy { gap: 14px; max-width: 720px; }
.how .eyebrow { color: var(--sea-glass-on-light); }
.how a { color: var(--sea-glass-on-light); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 12px;
  background: var(--paper-card); box-shadow: 0 0 0 1px rgba(14, 43, 46, 0.1);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1; color: var(--sea-glass-on-light);
}
.steps h3 { font-size: 21px; }
.steps p { color: var(--paper-text); font-size: 15px; }

/* ---- Questions ---- */

.questions { padding-top: 104px; padding-bottom: 112px; }
.questions > .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; align-items: start; }
.questions .copy { gap: 14px; }
.questions .copy > p:not(.eyebrow) { color: var(--text-quiet); font-size: 16px; }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 20px 0;
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--wall);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--sea-glass); font-size: 24px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 20px; color: var(--text); }

/* ---- The last invitation: the office at night, the door's light on. ---- */

.band { position: relative; overflow: hidden; background: var(--plan-deep); }
.band-photo { object-position: 30% 60%; }
.band-wash {
  background: linear-gradient(270deg, rgba(14, 43, 46, 0.95) 0%, rgba(14, 43, 46, 0.9) 40%, rgba(14, 43, 46, 0.5) 70%,
    rgba(14, 43, 46, 0.2) 100%);
}
.band-body {
  position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 20px; text-align: right;
  padding-top: 112px; padding-bottom: 112px;
}
.band-body img { width: 64px; height: 64px; }
.band h2 { max-width: 14ch; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.02em; }
.band p { max-width: 40ch; color: var(--text-strong); font-size: 18px; }

/* ---- Made by Spira Studio: in Spira's own look (spirastud.io), its near-black, violet and chevrons. ---- */

.studio {
  --spira-violet: #7520ff;
  --spira-lavender: #ae8deb;
  position: relative;
  overflow: hidden;
  background:
    /* Eased, so the glow fades out without a visible edge. */
    radial-gradient(circle 900px at 84% 10%, rgba(117, 32, 255, 0.42), rgba(117, 32, 255, 0.3) 18%,
      rgba(117, 32, 255, 0.17) 36%, rgba(117, 32, 255, 0.08) 54%, rgba(117, 32, 255, 0.03) 72%, rgba(117, 32, 255, 0.008) 88%,
      rgba(117, 32, 255, 0) 100%),
    radial-gradient(circle 600px at 100% 100%, rgba(196, 64, 196, 0.16), rgba(196, 64, 196, 0.08) 35%,
      rgba(196, 64, 196, 0.025) 70%, rgba(196, 64, 196, 0) 100%),
    #0c0f14;
  color: #fff;
}
.studio-body {
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  padding-top: 104px; padding-bottom: 104px;
}
.studio-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 620px; }
.studio-tag {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--spira-lavender);
}
.studio-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spira-violet); box-shadow: 0 0 0 4px rgba(117, 32, 255, 0.25); }
.studio h2 { font-weight: 700; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -0.03em; }
.studio-copy > p:not(.studio-tag) { max-width: 52ch; color: rgba(255, 255, 255, 0.72); font-size: 17px; }
.studio-buttons { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.studio-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 30px; border-radius: 100px;
  background: var(--spira-violet); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.studio-btn:hover { background: #8a42ff; color: #fff; }
.studio-btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.studio-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.studio a:focus-visible { outline-color: var(--spira-lavender); }

/* Spira's chevrons: two white, the last one violet. */
.chevrons { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: square; stroke-linejoin: miter; }
.chevrons .lead { stroke: var(--spira-violet, #7520ff); }
.chevrons-small { width: 18px; height: 18px; }
.studio-mark { flex-shrink: 0; display: block; padding: 8px; border-radius: 12px; }
.studio-mark .chevrons { display: block; width: clamp(120px, 16vw, 200px); height: auto; }
.studio-mark:hover .chevrons .lead { stroke: #8a42ff; }

/* ---- Footer ---- */

.site-footer { background: var(--footer); padding-top: 40px; padding-bottom: 48px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.site-footer > .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.made-by { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-name { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.footer-name img { width: 32px; height: 32px; }
.made-by .by { font-size: 14px; color: var(--text-quiet); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.site-footer nav a { color: var(--text-quiet); font-size: 14px; padding: 12px 0; }
.site-footer nav a:hover { color: var(--wall); }
.small-print { width: 100%; font-size: 13px; color: var(--text-faint); }

/* ---- Phones ---- */

@media (max-width: 760px) {
  .wrap { padding-inline: 18px; }
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .hero-wash { background: rgba(14, 43, 46, 0.9); }
  .band-wash { background: rgba(14, 43, 46, 0.88); }
  .hero-body { padding-top: 40px; padding-bottom: 80px; }
  .features { padding-top: 80px; }
  .features > .wrap { gap: 88px; }
  .row { gap: 32px; }
  .studio-body { flex-direction: column-reverse; align-items: flex-start; gap: 32px; padding-top: 80px; padding-bottom: 80px; }
  .studio-mark .chevrons { width: 72px; }
}
