@font-face {
  font-family: "Parclo Serif";
  src: url("../fonts/ParcloSerifStudent-BlackItalic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Departure Mono";
  src: url("../fonts/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  color-scheme: dark;
  min-height: 100%;
  background: #18181b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100%;
  background: #18181b;
  color: #e5e7eb;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.work-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 48% 18%, rgba(255,255,255,0.026), transparent 25rem),
    radial-gradient(circle at 70% 52%, rgba(255,255,255,0.018), transparent 34rem),
    #18181b;
}

.work-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: soft-light;
}

.topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1136px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 46px;
}

.brand {
  justify-self: start;
  color: #ffbf00;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #e5e7eb;
  font-size: 16px;
}

.topnav a {
  opacity: 0.88;
  transition: color 160ms ease, opacity 160ms ease;
}

.topnav a:hover {
  color: #ffbf00;
  opacity: 1;
}

.quick-actions {
  justify-self: end;
  display: flex;
  gap: 8px;
}

.quick-actions button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
  color: #f4f4f5;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.work-shell {
  position: relative;
  z-index: 1;
  width: min(1136px, calc(100vw - 48px));
  margin: 0 auto;
  padding-bottom: 56px;
}

.hero {
  padding: 14px 0 34px;
}

.hero h1 {
  margin: 0;
  font-family: "Parclo Serif", Georgia, serif;
  font-size: clamp(4.1rem, 7vw, 5.35rem);
  font-style: italic;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #f4f4f5;
}

.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #a1a1aa;
  font-size: clamp(1.28rem, 2vw, 1.58rem);
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.work-section {
  width: min(760px, 100%);
  margin: 36px auto 0;
}

.work-section--previous {
  margin-top: 56px;
  padding-top: 42px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.work-section h2 {
  margin: 0 0 24px;
  font-family: "Departure Mono", ui-monospace, monospace;
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.work-list {
  display: grid;
  gap: 4px;
}

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.18);
  transition: background-color 240ms ease;
}

.work-card:hover {
  background: rgba(31, 41, 55, 0.44);
}

.work-card.is-open {
  background: rgba(39, 39, 42, 0.82);
}

.work-card__button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 96px;
  padding: 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.logo-tile {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  margin-right: 16px;
  border-radius: 8px;
  font-family: "Departure Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(39, 39, 42, 0.82);
}

.logo-tile--gold { background: #ffe8a3; }
.logo-tile--mint { background: #bcefd0; }
.logo-tile--rose { background: #ffc2c2; }
.logo-tile--lavender { background: #ddd0ff; }
.logo-tile--blue { background: #bfe1ff; }

.work-card__copy {
  display: grid;
  min-width: 0;
}

.work-card__title {
  overflow: hidden;
  color: #f4f4f5;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card__role {
  margin-top: 3px;
  color: #a1a1aa;
  font-size: 15px;
  line-height: 1.3;
}

.chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-left: auto;
  color: #8b8b91;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 260ms ease;
}

.work-card.is-open .chevron {
  transform: rotate(180deg);
}

.work-card__details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-top: 1px solid transparent;
  transition: max-height 300ms ease, opacity 220ms ease, border-color 240ms ease;
}

.work-card.is-open .work-card__details {
  max-height: 220px;
  opacity: 1;
  border-color: rgba(255,255,255,0.11);
}

.work-card__details p {
  margin: 0;
  padding: 18px 16px 0;
  color: #d4d4d8;
  font-size: 15px;
  line-height: 1.55;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 16px 18px;
  padding-bottom: 3px;
  color: #ffbf00;
  font-family: "Departure Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-link span {
  transition: transform 180ms ease;
}

.detail-link:hover span {
  transform: translate(2px, -2px);
}

.work-footer {
  position: relative;
  z-index: 1;
  width: min(1136px, calc(100vw - 48px));
  margin: 64px auto 0;
  padding: 34px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: #a1a1aa;
  text-align: center;
}

.footer-line {
  position: absolute;
  top: -28px;
  left: 27%;
  display: flex;
  gap: 3px;
  font-family: "Departure Mono", ui-monospace, monospace;
  font-size: 11px;
  color: #d4d4d8;
  opacity: 0.74;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
  color: #f4f4f5;
  font-weight: 700;
}

.work-footer p {
  margin: 0;
  font-size: 15px;
}

.work-footer a {
  color: inherit;
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr auto;
    row-gap: 18px;
    padding-top: 22px;
  }

  .topnav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 15px;
  }

  .hero {
    padding-top: 10px;
  }

  .work-card__title {
    font-size: 16px;
  }

  .work-card__role,
  .work-card__details p {
    font-size: 14px;
  }
}
