/*
 * Design: Studio (default). Warm cream paper, pastel sticker colors, thick outlines with offset
 * shadows, emoji section labels and the outline characters. Unlayered, so it overrides the
 * layered base styles. Raw colors live in the custom properties below and nowhere else.
 * See docs/design-system.md#designs.
 */

:root {
  color-scheme: light;

  --studio-yellow: #ffd84d;
  --studio-lilac: #c4b5fd;
  --studio-mint: #8fe3bd;
  --studio-peach: #ffc2ab;
  --studio-outline: #1d1b18;
  --studio-shadow: #1d1b18;
  --studio-dots: #e2d6c1;
  --color-bg: #f7f1e6;
  --color-bg-raised: #fffaf1;
  --color-ink: #1d1b18;
  --color-ink-muted: #5b554c;
  --color-ink-subtle: #8a8173;
  --color-line: #e6dccb;
  --color-line-strong: #1d1b18;
  --color-accent: #ff6b35;
  --color-accent-ink: #b8400f;
  --color-success: #1f9d61;
  --color-giant: #1d1b18;
  --color-selection: #ffd84d;
  --color-selection-ink: #1d1b18;
  --radius-l: 1.75rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --studio-yellow: #f2cf4a;
    --studio-lilac: #b3a2f5;
    --studio-mint: #7fd8b0;
    --studio-peach: #f6ad94;
    --studio-outline: #f4ecdd;
    --studio-shadow: #000;
    --studio-dots: #2e2a24;
    --color-bg: #191714;
    --color-bg-raised: #23201b;
    --color-ink: #f4ecdd;
    --color-ink-muted: #cfc4b2;
    --color-ink-subtle: #978c7b;
    --color-line: #36312a;
    --color-line-strong: #f4ecdd;
    --color-accent: #ff8a5c;
    --color-accent-ink: #ffa47f;
    --color-success: #4fd18f;
    --color-giant: #f4ecdd;
    --color-selection: #f2cf4a;
    --color-selection-ink: #191714;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --studio-yellow: #f2cf4a;
  --studio-lilac: #b3a2f5;
  --studio-mint: #7fd8b0;
  --studio-peach: #f6ad94;
  --studio-outline: #f4ecdd;
  --studio-shadow: #000;
  --studio-dots: #2e2a24;
  --color-bg: #191714;
  --color-bg-raised: #23201b;
  --color-ink: #f4ecdd;
  --color-ink-muted: #cfc4b2;
  --color-ink-subtle: #978c7b;
  --color-line: #36312a;
  --color-line-strong: #f4ecdd;
  --color-accent: #ff8a5c;
  --color-accent-ink: #ffa47f;
  --color-success: #4fd18f;
  --color-giant: #f4ecdd;
  --color-selection: #f2cf4a;
  --color-selection-ink: #191714;
}

body {
  background:
    radial-gradient(circle at 1px 1px, var(--studio-dots) 1px, transparent 0) 0 0 / 22px 22px,
    var(--color-bg);
}

/* Hero */
.hero__display {
  font-weight: 800;
  letter-spacing: -0.05em;
}

.hero__bullet {
  background: var(--color-accent);
  border-radius: 50%;
}

.rotator__word {
  padding-inline: 0.18em;
  color: #1d1b18;
  background: var(--studio-yellow);
  border-radius: 0.22em;
}

.icon-button {
  background: var(--color-bg-raised);
  border: 2px solid var(--studio-outline);
  box-shadow: 3px 3px 0 var(--studio-shadow);
}

.editor {
  --color-card-bg: #1d1b18;
  --color-card-ink: #f7f1e6;
  --color-card-ink-muted: #b9b0a1;
  --color-card-line: #3a352e;

  border: 3px solid var(--studio-outline);
  box-shadow: 10px 10px 0 var(--studio-shadow);
}

/* Section labels become pills with an emoji */
.section-label {
  place-self: start start;
  width: max-content;
  padding: 0.35em 0.9em;
  color: var(--color-bg);
  background: var(--color-ink);
  border-radius: 999px;
}

.section-label[data-emoji]::before {
  margin-inline-end: 0.45em;
  content: attr(data-emoji);
}

.section-title,
.about__statement,
.contact__title {
  font-weight: 800;
}

.giant-title {
  font-weight: 800;
  letter-spacing: -0.06em;
}

.giant-title::after {
  font-size: 0.4em;
  vertical-align: super;
  content: " ✨";
}

/* Metrics as colored stickers */
.metric {
  padding: 1.2rem;
  color: #1d1b18;
  background: var(--studio-yellow);
  border: 2px solid var(--studio-outline);
  border-radius: 1.4rem;
  box-shadow: 5px 5px 0 var(--studio-shadow);
}

.metrics > li:nth-child(2) .metric {
  background: var(--studio-lilac);
}

.metrics > li:nth-child(3) .metric {
  background: var(--studio-mint);
}

.metrics > li:nth-child(4) .metric {
  background: var(--studio-peach);
}

.metric__value {
  font-weight: 800;
  color: #1d1b18;
}

.metric__label {
  color: #3d3830;
}

/* Projects as pastel cards with dark product mocks */
.project {
  --color-card-ink: #1d1b18;
  --color-card-ink-muted: #4a443b;

  background: var(--studio-peach);
  border: 2px solid var(--studio-outline);
  box-shadow: 8px 8px 0 var(--studio-shadow);
}

.project[data-accent="cobalt"] {
  background: var(--studio-lilac);
}

.project[data-accent="moss"] {
  background: var(--studio-mint);
}

.project[data-accent="violet"] {
  background: var(--studio-yellow);
}

.project__title {
  font-weight: 800;
}

.project__index {
  color: #1d1b18;
}

.project .tags > li {
  color: #1d1b18;
  background: #fffaf1;
  border: 1.5px solid #1d1b18;
}

.project__visual {
  overflow: hidden;
  background: #1d1b18;
  border: 2px solid #1d1b18;
  border-radius: 1.2rem;
}

/* Capabilities as cards, AI card highlighted */
.service {
  padding: 1.4rem;
  background: var(--color-bg-raised);
  border: 2px solid var(--studio-outline);
  border-radius: 1.4rem;
  box-shadow: 5px 5px 0 var(--studio-shadow);
}

.service--ai {
  color: #1d1b18;
  background: var(--studio-lilac);
}

.service--ai .service__body {
  color: #3d3830;
}

.service--ai .service__title::after {
  margin-inline-start: 0.4em;
  content: "✨";
}

.tags > li {
  border-width: 1.5px;
  border-color: var(--studio-outline);
}

.button {
  font-weight: 700;
  border: 2px solid var(--studio-outline);
  box-shadow: 4px 4px 0 var(--studio-shadow);
}

.contact__title-accent {
  color: var(--color-accent);
}

.avatar {
  color: #1d1b18;
  background: var(--studio-yellow);
  border: 2px solid var(--studio-outline);
  box-shadow: 3px 3px 0 var(--studio-shadow);
}

/* Characters and the components they hold */
.ui-card,
.ui-bubble {
  border-color: var(--studio-outline);
  box-shadow: 4px 4px 0 var(--studio-shadow);
}

.ui-card {
  background: var(--color-bg-raised);
}

.ui-bubble {
  background: var(--studio-yellow);
  color: #1d1b18;
}

.ui-bubble__button {
  color: #fffaf1;
  background: #1d1b18;
}

.ui-card__button {
  color: #1d1b18;
  background: var(--studio-mint);
  border: 1.5px solid var(--studio-outline);
}

.lift__fill {
  fill: var(--color-bg);
}

.design-switcher__panel {
  border: 2px solid var(--studio-outline);
  box-shadow: 6px 6px 0 var(--studio-shadow);
}

.service--ai .service__index {
  color: #1d1b18;
}

/* Side projects and reviews as sticker cards */
.side-project,
.review {
  background: var(--color-bg-raised);
  border: 2px solid var(--studio-outline);
  box-shadow: 6px 6px 0 var(--studio-shadow);
}

.side-project--sample {
  border-style: dashed;
}

.side-project__media {
  border-block-end: 2px solid var(--studio-outline);
}

.review--featured {
  color: #1d1b18;
  background: var(--studio-yellow);
}

.review--featured .review__role {
  color: #4a443b;
}

.review--featured .review__author {
  border-color: #1d1b18;
}

.review__relation {
  color: #1d1b18;
  border: 1.5px solid var(--studio-outline);
}

.review[data-relation="manager"] .review__relation {
  background: var(--studio-peach);
}

.review[data-relation="lead"] .review__relation {
  background: var(--studio-lilac);
}

.review[data-relation="teammate"] .review__relation {
  background: var(--studio-mint);
}

.review[data-relation="product"] .review__relation,
.review[data-relation="colleague"] .review__relation {
  background: var(--studio-yellow);
}

.review--featured .review__relation {
  background: #fffaf1;
}

.review__photo {
  border: 2px solid var(--studio-outline);
  box-shadow: 2px 2px 0 var(--studio-shadow);
}

/* Hero layout: headline left, an ID badge right */

@media (width >= 64rem) {
  .hero > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 32rem);
    gap: var(--space-xl);
    align-items: center;
  }

  .hero__top {
    flex-direction: column;
    align-items: flex-start;
    margin-block-end: 0;
  }

  .lift--hero {
    inset-inline-end: 0;
  }
}

.hero-card {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: 2.25rem 1.75rem 1.75rem;
  background: var(--color-bg-raised);
  border: 3px solid var(--studio-outline);
  border-radius: 1.75rem;
  box-shadow: 10px 10px 0 var(--studio-shadow);
  transform: rotate(-1.5deg);
}

.hero-card__clip {
  position: absolute;
  inset-block-start: -0.9rem;
  inset-inline-start: 50%;
  width: 4.5rem;
  height: 1.5rem;
  background: var(--studio-lilac);
  border: 2px solid var(--studio-outline);
  border-radius: 0.6rem;
  transform: translateX(-50%);
}

.hero-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-card__photo {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: #1d1b18;
  background: var(--studio-yellow);
  border: 2px solid var(--studio-outline);
  border-radius: 1.1rem;
  box-shadow: 3px 3px 0 var(--studio-shadow);
}

.hero-card__name {
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-card__role {
  margin-block-start: 0.3rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--color-ink-muted);
}

.hero-card__sticker {
  margin-inline-start: auto;
  padding: 0.35em 0.85em;
  font-size: var(--step--1);
  font-weight: 700;
  color: #1d1b18;
  background: var(--studio-mint);
  border: 2px solid var(--studio-outline);
  border-radius: 999px;
  transform: rotate(5deg);
}

.hero-card__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
  border-block: 2px dashed var(--color-line);
}

.hero-card__facts dt {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--color-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card__facts dd {
  margin: 0;
  font-weight: 600;
}

.hero-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
}

.hero-card__stack > li {
  padding: 0.25em 0.8em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  color: #1d1b18;
  background: var(--studio-yellow);
  border: 2px solid var(--studio-outline);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--studio-shadow);
  transition: transform var(--duration-fast) var(--ease-out);
}

.hero-card__stack > li:nth-child(3n + 2) {
  background: var(--studio-lilac);
}

.hero-card__stack > li:nth-child(3n) {
  background: var(--studio-peach);
}

.hero-card__stack > li:hover {
  transform: translateY(-3px) rotate(-3deg);
}
