/* Personal site — one page, no build step. */
:root {
  --paper: #f3efe6;
  --ink: #141210;
  --muted: #5a534b;
  --accent: #c24e1d;
  --accent-text: #9a3810;
  --accent-on-dark: #ffb184;
  --panel: #171512;
  --panel-copy: #f3efe6;
  --max: 44rem;
  --case-max: 52rem;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0.2rem 0 1rem;
  font-size: clamp(2rem, 6vw, 3.35rem);
}

.case h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 1.15rem;
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  color: var(--panel-copy);
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
}

a:hover {
  color: var(--accent);
}

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

.case :focus-visible {
  outline-color: var(--panel-copy);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-bar {
  display: none;
}

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

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

.hero {
  padding: 4.5rem 0 3.25rem;
}

.hero-inner {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.hero-photo {
  margin: 0;
  width: 100%;
  justify-self: start;
  align-self: start;
  min-width: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.hero-copy .kicker {
  margin-top: 0;
}

.hero-action {
  margin: 1.35rem 0 0;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  border-radius: 0.3rem;
}

.mail-btn:hover {
  background: var(--accent);
  color: var(--paper);
}

.case {
  width: min(var(--case-max), calc(100% - 2rem));
  margin-inline: auto;
  background: var(--panel);
  color: var(--panel-copy);
  padding: 2rem 1.6rem;
  border-radius: 1.1rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--panel-copy) 70%, transparent);
}

.case-grid p {
  font-size: 1.05rem;
  color: #d8d2c8;
}

.case-grid p:last-child {
  margin-top: 0.35rem;
  padding-top: 1rem;
  /* border-top: 1px solid rgba(243, 239, 230, 0.16); */
  color: var(--panel-copy);
}

.case-grid-solution {
  font-style: italic;
  color: var(--accent-on-dark);
}

/* .case-grid > .case-grid-solution:last-child {
  margin-top: 0.35rem;
  padding-top: 1rem;
  /* border-top: 1px solid rgba(243, 239, 230, 0.16); */
} */

.section-label {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.work,
.reach {
  padding: 3.25rem 0 1rem;
}

.roles,
.links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.roles li {
  padding: 0.7rem 0;
  border-top: 1px solid rgba(20, 18, 16, 0.14);
}

.role {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--ink);
}

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

.school {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.35rem;
  padding: 0.35rem 0 0;
}

.quiet-link {
  color: var(--muted);
  font-weight: 500;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(20, 18, 16, 0.28);
}

.quiet-link:hover {
  color: var(--accent);
}

.reach {
  padding-bottom: 5.5rem;
}

@media (min-width: 720px) {
  .site-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 2.75rem;
    padding: 0 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid rgba(20, 18, 16, 0.1);
    font-size: 0.9rem;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, visibility 0.2s ease;
  }

  body.is-scrolled .site-bar {
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .site-bar-name,
  .site-bar-mail {
    text-decoration: none;
  }

  .site-bar-name {
    font-weight: 600;
  }

  .site-bar-mail {
    color: var(--muted);
  }

  .site-bar-mail:hover {
    color: var(--accent);
  }

  .hero {
    padding-top: 6.5rem;
    padding-bottom: 4rem;
  }

  .hero.wrap {
    width: min(54rem, calc(100% - 2.5rem));
    overflow: visible;
  }

  .hero-inner {
    grid-template-columns: 1fr 12rem;
    gap: 1.75rem 0.75rem;
    align-items: end;
  }

  .hero-photo {
    width: 17.5rem;
    justify-self: start;
    margin-bottom: -0.6rem;
    transform: translateX(-2.6rem);
  }

  .case {
    width: min(var(--case-max), calc(100% - 2.5rem));
    padding: 2.6rem 2.4rem;
  }

  .case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
    margin-bottom: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(243, 239, 230, 0.16);

  }

  .case-grid p:last-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .work,
  .reach {
    padding-top: 4rem;
  }

  .reach {
    padding-bottom: 6.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
