/* Mitch and Morg — site styles. Palette sampled from the portrait. */

:root {
  --bg: #f3e4db;
  --bg-warm: #ead9ce;
  --cream: #fbf6f1;
  --ink: #1a1410;
  --ink-soft: #5c5148;
  --line: rgba(26, 20, 16, 0.14);
  --line-strong: rgba(26, 20, 16, 0.28);
  --black: #14110f;
  --shadow: 0 22px 50px rgba(40, 25, 15, 0.16);
  --font-serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --wide: 70rem;
  --radius: 1.35rem;
  --header-h: 4.25rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: none;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0.4rem;
}

.skip:focus {
  top: 0.75rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--space);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.logo em {
  font-style: italic;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
}

.site-nav a:hover {
  color: var(--ink-soft);
}

.nav-text {
  display: none;
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
}

.icon-link:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
}

.icon-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

/* Layout */

.wrap {
  width: min(100% - 2 * var(--space), var(--wide));
  margin-inline: auto;
}

/* Hero */

.hero {
  display: grid;
  gap: 2rem;
  padding: 2rem var(--space) 4.5rem;
  align-items: center;
}

.hero-copy {
  order: 2;
}

.hero-photo {
  order: 1;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(3.1rem, 12vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
}

.tagline {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 350;
  line-height: 1.4;
  color: var(--ink-soft);
  white-space: pre-line;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.btn-primary {
  background: var(--black);
  color: var(--cream);
  border-color: var(--black);
}

.btn-primary:hover {
  background: #2a231e;
  border-color: #2a231e;
}

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

.btn-ghost:hover {
  background: var(--cream);
}

.btn-light {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.btn-light:hover {
  background: #fff;
  border-color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: color-mix(in srgb, var(--cream) 45%, transparent);
}

.btn-outline-light:hover {
  background: color-mix(in srgb, var(--cream) 10%, transparent);
  border-color: var(--cream);
}

.hero-photo figure {
  margin: 0;
}

.hero-photo img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-warm);
}

/* About */

.about {
  padding: 4.5rem 0 5rem;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  gap: 1.5rem;
}

.about h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.about-body {
  margin: 0;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* What we make */

.make {
  padding: 0 0 5.5rem;
}

.make .eyebrow {
  margin-bottom: 1.5rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--cream);
  border-radius: 1.1rem;
}

.card-num {
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* Work with us */

.work {
  background: var(--black);
  color: var(--cream);
  padding: 4.5rem 0 5rem;
}

.work .eyebrow {
  color: color-mix(in srgb, var(--cream) 70%, transparent);
}

.work h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.work-body {
  margin: 0 0 1.8rem;
  max-width: 34rem;
  font-size: 1.12rem;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.work-email {
  display: inline-block;
  margin-top: 1.25rem;
  color: color-mix(in srgb, var(--cream) 75%, transparent);
  font-size: 0.95rem;
}

.work-email a {
  color: var(--cream);
}

/* Footer */

.site-footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* 404 */

.not-found {
  min-height: calc(100svh - var(--header-h) - 5rem);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem var(--space);
}

.not-found h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
}

.not-found p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

/* Breakpoints */

@media (min-width: 720px) {
  .nav-text {
    display: inline;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
    padding-top: 3.5rem;
    padding-bottom: 5.5rem;
    min-height: calc(100svh - var(--header-h));
  }

  .hero-copy {
    order: 1;
  }

  .hero-photo {
    order: 2;
  }

  .about-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

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

  .btn {
    transition: none;
  }
}
