/* ==========================================================================
   Unplugged Office
   Layout idea: a cream stage, big black serif headlines, one terracotta band
   for the mission, blue for every action, photos with generous radii.
   ========================================================================== */

:root {
  /* Color */
  --cream: #fdf6f3;
  --sand: #f5e9df;
  --ink: #16120f;
  --muted: #5a4f48;
  --line: #dcc9bb;
  --terracotta: #bf4a2b;
  --blue: #3770c2;
  --blue-dark: #2b5ba5;
  --white: #ffffff;
  --mark: #ffe7a3;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --radius-lg: 6px;
  --radius-md: 4px;
  --radius-sm: 3px;

  color-scheme: light;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */

[hidden] {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

.band :focus-visible {
  outline-color: var(--white);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(clamp(20px, 4vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(20px, 4vw, 40px), env(safe-area-inset-right, 0px));
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--sand {
  background: var(--sand);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2,
.h2 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
}

.lede {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 40rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--blue-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--small {
  min-height: 44px;
  padding: 10px 18px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand img {
  flex: none;
  width: 64px;
  height: 64px;
}

@media (max-width: 480px) {
  .brand {
    gap: 10px;
    font-size: 1.125rem;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 8px 30px;
}

.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.nav-toggle {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 899px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex-basis: 100%;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li:not(:last-child) a {
    display: block;
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .site-nav li:last-child {
    padding-top: 16px;
  }

  .site-nav .btn {
    display: flex;
    width: 100%;
  }
}

/* ---------- Hero ---------- */

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px);
}

.hero-copy {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.hero h1 {
  font-size: clamp(3.25rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.hero-copy .lede {
  color: var(--ink);
  font-size: 1.25rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}

.ticks li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--terracotta);
}

.hero-art {
  width: min(100%, 560px);
  margin-inline: auto;
}

.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }
}

/* ---------- Mission band ---------- */

.band {
  background: var(--terracotta);
  color: var(--white);
}

.band .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: clamp(56px, 8vw, 96px);
}

.band-copy {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.band h2 {
  font-size: clamp(2.75rem, 7vw, 5rem);
}

.band-copy p {
  font-size: 1.1875rem;
  max-width: 34rem;
}

.band-copy .kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.2;
}

.band-photo {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}

.band-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (min-width: 860px) {
  .band .wrap {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 72px;
  }

  .band-photo {
    margin-inline: 0 0;
    justify-self: end;
  }
}

/* ---------- Formats ---------- */

.cards {
  display: grid;
  gap: clamp(32px, 4vw, 48px) 32px;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.card-photo {
  margin: 0;
}

.card-photo img,
.ph {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 2px dashed #a8978a;
  background: var(--sand);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.card h3 {
  font-size: clamp(1.625rem, 3vw, 2rem);
  line-height: 1.1;
}

.card-line {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 4px 0;
}

.meta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--terracotta);
}

.card-body > p {
  max-width: 34rem;
}

.card-body strong {
  font-weight: 600;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: auto;
  padding-top: 8px;
}

.price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  white-space: nowrap;
}

.price small {
  margin-right: 6px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}

.banner-card {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--sand);
}

.banner-card .card-body {
  gap: 14px;
}

@media (min-width: 760px) {
  .banner-card {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
  }
}

.note {
  margin-top: 32px;
  max-width: 46rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 40px 32px;
  counter-reset: step;
}

@media (min-width: 600px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.steps li {
  display: grid;
  gap: 12px;
  align-content: start;
  counter-increment: step;
  min-width: 0;
}

.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: var(--terracotta);
}

.steps h3 {
  font-size: 1.5rem;
  line-height: 1.15;
}

.steps p {
  color: var(--muted);
}

.needs {
  display: grid;
  gap: 20px 32px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.needs h3 {
  font-size: 1.5rem;
}

.needs ul {
  display: grid;
  gap: 12px 32px;
}

.needs li {
  padding-left: 22px;
  position: relative;
}

.needs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

@media (min-width: 700px) {
  .needs ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .needs {
    grid-template-columns: 0.8fr 2.2fr;
    align-items: start;
  }
}

/* ---------- About ---------- */

.team-photo {
  margin: 0 0 clamp(32px, 5vw, 56px);
}

.team-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 38%;
  border-radius: var(--radius-lg);
}

.people {
  display: grid;
  gap: 40px clamp(32px, 5vw, 72px);
}

@media (min-width: 800px) {
  .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.person {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.person h3 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.role {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.person p:not(.role) {
  max-width: 36rem;
}

.person p + p {
  margin-top: 4px;
}

.people--small {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.people--small .person h3 {
  font-size: 1.75rem;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 52rem;
  border-top: 1.5px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-block: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1875rem, 2.4vw, 1.4375rem);
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat;
}

.faq .answer {
  display: grid;
  gap: 10px;
  max-width: 42rem;
  padding-bottom: 24px;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 72px;
  }
}

.form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  gap: 20px;
}

@media (min-width: 560px) {
  .form-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.field .opt {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
}

.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.form .btn {
  width: 100%;
  min-height: 52px;
  font-size: 1.0625rem;
}

.form-hint {
  font-size: 0.875rem;
  color: var(--muted);
}

.result {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 2px solid var(--blue);
  border-radius: var(--radius-md);
  background: var(--white);
}

.result h3 {
  font-size: 1.5rem;
}

.result textarea {
  width: 100%;
  min-height: 220px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.copy-status {
  min-height: 1.5em;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.person-card {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--sand);
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-md);
}

.person-card h3 {
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
}

.contact-lines {
  display: grid;
  gap: 8px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-lines a {
  text-underline-offset: 4px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  display: inline-block;
  padding-block: 8px;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 46rem;
  padding-block: clamp(40px, 7vw, 80px);
}

.legal h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  margin-bottom: 32px;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.legal p,
.legal ul {
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 22px;
  list-style: disc;
}

.legal li {
  margin-bottom: 6px;
}

.fill {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--mark);
  color: var(--ink);
}

.draft-note {
  margin-bottom: 32px;
  padding: 16px 20px;
  border: 2px dashed var(--terracotta);
  border-radius: var(--radius-md);
  background: var(--sand);
  font-size: 0.9375rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  padding-block: 8px;
  font-weight: 600;
}

/* ---------- Contact photos and direct contact ---------- */

.contact-photos {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

@media (min-width: 960px) {
  .contact-photos {
    grid-template-columns: 1fr;
  }
}

.direct {
  margin-top: clamp(64px, 9vw, 112px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
}

.direct .h2 {
  max-width: 14ch;
}

.direct-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}

.direct-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-lg);
}

.direct-copy {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.direct-copy h3 {
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
}

@media (min-width: 860px) {
  .direct-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
  }
}

@media (min-width: 760px) {
  .banner-card--flip {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .banner-card--flip .card-photo {
    order: 2;
  }
}

/* ---------- Person photos ---------- */

.person-photos {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 8px;
}

.person-photos img,
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.person-photos img:first-child {
  aspect-ratio: 3 / 4;
  object-position: 50% 55%;
}

.person-photos img:last-child {
  aspect-ratio: 3 / 4;
  object-position: 40% 50%;
}

.person-photo {
  margin: 0;
}

.people--small {
  display: block;
}

.jana {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 800px) {
  .jana {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
  }
}

.person-photos--landscape img { aspect-ratio: 3 / 4; }
.person-photos--landscape img:first-child { object-position: 50% 50%; }
.person-photos--landscape img:last-child { object-position: 86% 50%; }

/* ==========================================================================
   Blue edition: electric-blue lines, spec tables and photo captions.
   Fonts stay Second Verse (Fraunces + Instrument Sans).
   ========================================================================== */
:root {
  --line: #071cf5;
  --blue: #071cf5;
  --blue-dark: #0414c4;
}
.faq { border-top-width: 2px; }
.eyebrow { letter-spacing: 0.32em; }

.spec {
  margin: 0;
  border: 1px solid #071cf5;
  font-size: 0.9375rem;
}
.spec > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); }
.spec > div + div { border-top: 1px solid #071cf5; }
.spec dt {
  display: flex;
  align-items: center;
  padding: 7px 11px;
  border-right: 1px solid #071cf5;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.spec dd { margin: 0; padding: 7px 11px; font-weight: 600; }

.card-photo--cap { position: relative; }
.cap {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #fff;
  font-size: 0.8125rem;
  font-style: italic;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

/* Team: names and bios first, photos underneath, lined up across both columns */
.people:not(.people--small) .person {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.people:not(.people--small) .person-photos {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 16px;
}

/* Direct contact: Jana's photo on the right, leaning towards the text */
@media (min-width: 860px) {
  .direct-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .direct-grid img {
    order: 2;
  }
}

.jana .person-photo img {
  aspect-ratio: 4 / 5;
  object-position: 50% 72%;
}
