/* Whizbang studio site — brand tokens from Brand/Whizbang (Warm Paper, Plum Ink, Mo Teal, Ember Coral) */
:root {
  --paper: #f6f1e7;
  --paper-deep: #ece4d4;
  --ink: #392333;
  --ink-soft: #66555e;
  --ink-faint: #98868d;
  --rule: rgba(57, 35, 51, .15);
  --teal: #157d75;
  --teal-deep: #0f5f59;
  --coral: #e4573f;
  --sage: #e5e9df;
  --font: "Avenir Next", "Avenir", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --shell: 1440px;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--teal); }
a:hover { color: var(--teal); }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; border-radius: 2px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 16px; }

/* top bar */
.top {
  max-width: var(--shell); margin: 0 auto; padding: 30px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.home { display: block; }
.wordmark { width: 160px; height: auto; }
.top nav { display: flex; gap: 32px; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 15px; }

/* hero */
.hero {
  max-width: var(--shell); margin: 0 auto; padding: 48px var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 24px;
  min-height: min(78vh, 720px);
  position: relative;
}
.hero-copy { padding-bottom: 96px; max-width: 640px; }
h1 {
  font-size: clamp(44px, 7vw, 104px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
}
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 34em; margin-top: 32px; color: var(--ink); }
.hero-links { margin-top: 28px; font-weight: 600; font-size: 17px; }
.hero-mo { position: relative; align-self: end; justify-self: end; width: 100%; }
.hero-mo img {
  width: 122%; max-width: none;
  margin-left: 0;
  margin-bottom: -5%;
  filter: drop-shadow(0 30px 40px rgba(57, 35, 51, .18));
}

/* apps */
.apps {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
}
.apps-head, .app-grid {
  max-width: var(--shell); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter);
}
.apps-head {
  padding-top: 88px; padding-bottom: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 72px; align-items: end;
}
h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; }
.apps-head p { max-width: 30em; color: var(--ink-soft); font-size: 17px; }

.app-grid {
  list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 96px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 40px;
}
.app { display: grid; gap: 6px; align-content: start; }
.icon {
  width: 104px; height: 104px; margin-bottom: 14px;
  border-radius: 22.37%;
  box-shadow: 0 1px 0 rgba(57,35,51,.06), 0 12px 24px -10px rgba(57,35,51,.35);
}
.app h3 { font-size: 24px; letter-spacing: -.02em; }
.line { font-size: 15.5px; color: var(--ink); }
.desc { font-size: 14.5px; color: var(--ink-soft); max-width: 26em; margin-top: 6px; }
.status { font-size: 13.5px; color: var(--ink-faint); margin-top: 10px; }
.status.available { color: var(--teal-deep); font-weight: 600; }
.status a { font-weight: 600; }

/* studio */
.studio {
  max-width: var(--shell); margin: 0 auto; padding: 96px var(--gutter) 112px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 72px;
  border-top: 1px solid var(--rule);
}
.studio-body { display: grid; gap: 20px; max-width: 34em; font-size: 18px; line-height: 1.6; }

/* footer */
footer {
  max-width: var(--shell); margin: 0 auto; padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-soft);
}

/* responsive */
@media (max-width: 1100px) {
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .top { padding-top: 22px; padding-bottom: 22px; }
  .wordmark { width: 128px; }
  .top nav { gap: 18px; }
  .top nav a { font-size: 14px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; gap: 0; }
  .hero-copy { padding-bottom: 24px; }
  .hero-mo { justify-self: center; width: min(92%, 420px); }
  .hero-mo img { width: 100%; margin: 0 0 -4% 0; }
  .apps-head, .studio { grid-template-columns: 1fr; gap: 16px; }
  .apps-head { padding-top: 56px; padding-bottom: 36px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; padding-bottom: 64px; }
  .icon { width: 84px; height: 84px; }
  .app h3 { font-size: 21px; }
  .studio { padding-top: 64px; padding-bottom: 72px; }
  .studio-body { font-size: 17px; }
}
@media (max-width: 440px) {
  .app-grid { grid-template-columns: 1fr; }
  .top nav a:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
