/* Shared look for every page: colors, fonts, buttons, top bar and footer. */

:root {
  --bg: #FFF7EC;
  --surface: #FFFFFF;
  --ink: #1A1410;
  --muted: #6B5F55;
  --line: #EADFD0;
  --line-strong: #D6C7B4;
  --edge: #1A1410;
  --tag: #F6EADB;
  --accent: #FF5A36;
  --on-accent: #1A1410;
  --btn-edge: #1A1410;
  --drop: #1A1410;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14100D;
    --surface: #1E1814;
    --ink: #F6EEE3;
    --muted: #B3A79A;
    --line: #2E2620;
    --line-strong: #4A3E35;
    --edge: #4A3E35;
    --tag: #2C241F;
    --accent: #FF6A47;
    --on-accent: #14100D;
    --btn-edge: #14100D;
    --drop: #000000;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #14100D;
  --surface: #1E1814;
  --ink: #F6EEE3;
  --muted: #B3A79A;
  --line: #2E2620;
  --line-strong: #4A3E35;
  --edge: #4A3E35;
  --tag: #2C241F;
  --accent: #FF6A47;
  --on-accent: #14100D;
  --btn-edge: #14100D;
  --drop: #000000;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.125em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
}

@media (min-width: 700px) {
  .wrap { padding-inline: 32px; }
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 750 16px/1.2 var(--font-body);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--btn-edge);
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font: 800 13px/1 var(--font-display);
  letter-spacing: 0.02em;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.eyebrow {
  margin: 0;
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 2px solid var(--btn-edge);
  border-radius: 14px;
  font: 750 17px/1.1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 0 var(--drop);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--drop); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--drop); }

.btn .ico { width: 16px; height: 16px; }

/* ---------- Home ---------- */

.hero {
  display: flex;
  min-height: min(620px, 72vh);
  min-height: min(620px, 72svh);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 44px);
  padding-block: clamp(32px, 8vw, 96px);
}

.hero-title {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero .btn { font-size: 19px; padding: 16px 26px; }

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 2px solid var(--line);
  scroll-margin-top: 16px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-note {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
}

/* ---------- Studios ---------- */

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

.studio {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 2px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
}

.studio-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.studio-logo {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  background: var(--tag);
  box-shadow: 0 0 0 2px var(--edge);
}

.studio-id {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.studio-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.studio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Company name with its LinkedIn link beside it (wraps under the name on narrow cards) */
.studio-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4.5px 6px;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.tag-link:hover { border-color: var(--edge); }

.tag-link .ico {
  width: 10px;
  height: 10px;
  margin: 0;
}

.tag-link .card-ico {
  width: 15px;
  height: 15px;
  margin: -2px 1px -2px 0;
}

.tag {
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--tag);
  color: var(--ink);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag.role {
  background: var(--accent);
  color: var(--on-accent);
}

.studio p {
  margin: 0;
  max-width: 62ch;
}

/* Key people in a studio: initials, name, role; each links to their LinkedIn profile */
.people {
  display: grid;
  gap: 8px;
}

.people-label {
  margin: 0;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.people-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.person:hover { border-color: var(--line-strong); }

.person-initials {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--tag);
  font: 700 10.5px/1 var(--font-mono);
  letter-spacing: 0.04em;
}

.person-photo {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tag);
  box-shadow: 0 0 0 1.5px var(--line);
}

/* With an odd number of people, the first (usually a founder) spans both columns */
.people-list > li:first-child:nth-last-child(odd) { grid-column: 1 / -1; }

.person-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.person-name { font: 650 14px/1.25 var(--font-body); }

.person-role {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--muted);
}

.person .card-ico {
  width: 15px;
  height: 15px;
  flex: none;
  margin: 0;
  color: var(--muted);
}

.studio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font: 600 12px/1 var(--font-mono);
  text-decoration: none;
  white-space: nowrap;
}
.store:hover {
  background: var(--accent);
  border-color: var(--btn-edge);
  color: var(--on-accent);
}

/* ---------- Designers ---------- */

.designers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.designer {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 20px 22px;
  border: 2px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.designer:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--accent);
}

.designer:hover .tag-link { border-color: var(--edge); }

.designer-photo {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tag);
  box-shadow: 0 0 0 2px var(--edge);
}

.designer-text {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.designer-name { font: 750 1.25rem/1.15 var(--font-body); }

.designer-role { color: var(--muted); }

@media (max-width: 760px) {
  .studios,
  .designers { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .studio { padding: 18px; }
  .people-list { grid-template-columns: 1fr; }
  .designer { flex-wrap: wrap; padding: 18px; }
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 24px 32px;
  border-top: 2px solid var(--line);
  font: 500 12px/1.5 var(--font-mono);
  color: var(--muted);
}

.footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .btn,
  .designer { transition: none; }
}
