@font-face {
  font-family: "DM Sans";
  src: url("/assets/company-logos/patelzick-dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Sync Editorial";
  src: url("/assets/company-logos/sync-editorial.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Calendar Roboto";
  src: url("/assets/company-logos/calendarcleanse-roboto.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #20251e;
  --muted: #4e554c;
  --rule: #dce1da;
  --accent: #3d481f;
  --highlight: #eef15a;
  --headline-highlight: var(--highlight);
  --patelzick-suffix: #a52475;
  background: var(--paper);
  color: var(--ink);
  font: 100%/1.6 "DM Sans", system-ui, sans-serif;
  scroll-padding-top: 2rem;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151614;
  --ink: #fff5e8;
  --muted: #d2d6cb;
  --rule: #3b4237;
  --accent: var(--highlight);
  --headline-highlight: #1596a6;
  --patelzick-suffix: #ffc0e6;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p, h1, h2, h3, figure, ul { margin: 0; }

.page-width { width: min(70rem, 100% - 4rem); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 2; padding: .6rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.65rem;
  border-bottom: 1px solid var(--rule);
}

.site-header a { text-decoration: none; }
.wordmark { font-size: clamp(.85rem, 2vw, 1rem); font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.header-controls { display: flex; align-items: center; gap: .35rem; font-size: .875rem; }
.header-pages { display: flex; gap: .8rem; }
.site-header [aria-current="page"] { color: var(--accent); text-decoration: underline; }
.header-control { position: relative; display: grid; flex: none; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 999px; background: none; color: #20251e; cursor: pointer; }
.header-control::before { content: ""; position: absolute; inset: 6px 0; border: 1.5px solid #a9afa4; border-radius: inherit; background: #d7d9d1; box-shadow: inset 0 0 0 1px #ffffffe0; }
.header-control > svg { position: relative; }
.header-control:hover::before { background: var(--highlight); }
.header-control:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.header-control:disabled { cursor: default; }
.header-x { width: 60px; margin-left: .5rem; }
.header-x:hover { color: #20251e; }
.header-theme { width: 44px; }
.header-theme::before { inset-inline: 6px; }
.theme-icon--sun, [data-theme="dark"] .theme-icon--moon { display: none; }
[data-theme="dark"] .theme-icon--sun { display: block; }

.about-layout {
  display: grid;
  grid-template-columns: minmax(9.5rem, 14rem) minmax(0, 42rem);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: start;
  padding-block: clamp(3rem, 7vw, 6.35rem) 3.75rem;
}

.profile { position: sticky; top: 2rem; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: .65rem;
  background: var(--rule);
}

.profile-bio { max-width: 30rem; margin-top: 1.15rem; color: var(--muted); font-size: .9375rem; }

.about-audio {
  max-width: 22rem;
  margin-top: 1.35rem;
  padding: .85rem;
  border-radius: .65rem;
  background: #20251e;
  color: white;
}

.about-audio h2 { margin-bottom: .7rem; font-size: .875rem; letter-spacing: -.02em; }
.audio-heading, .audio-controls { display: flex; align-items: center; gap: .55rem; }
.audio-heading > div { min-width: 0; }
.audio-track { font-size: .78rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.audio-status { margin-top: .2rem; color: #cbd3c8; font-size: .72rem; line-height: 1.3; }
.audio-spectrum { display: block; width: 100%; height: 1.85rem; margin-block: .25rem; }
.about-audio button { display: grid; flex: none; place-items: center; padding: 0; font: inherit; cursor: pointer; }
.about-audio button:disabled { opacity: .5; cursor: default; }
.about-audio :focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; }
.about-audio .audio-play { width: 2.15rem; aspect-ratio: 1; border: 0; border-radius: 50%; background: var(--highlight); color: #20251e; font-size: .85rem; }
.about-audio .audio-prev, .about-audio .audio-next { width: 1.65rem; height: 1.75rem; border: 1px solid #707a6d; border-radius: .3rem; background: transparent; color: white; font-size: 1.2rem; line-height: 1; }
.audio-volume { width: min(45%, 5.5rem); min-width: 0; margin: 0 0 0 auto; accent-color: var(--highlight); cursor: pointer; }
.profile-socials { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.profile-socials a { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--rule); border-radius: 50%; }
.profile-socials a:hover { background: var(--highlight); color: #20251e; }
.profile-socials svg { display: block; width: .9rem; height: .9rem; }

.intro { padding-bottom: clamp(2.75rem, 7vw, 5.25rem); }
.intro h1 {
  font-size: clamp(2.85rem, 6.25vw, 5.35rem);
  line-height: 1.02;
  letter-spacing: -.075em;
  font-weight: 700;
  text-wrap: balance;
}

.intro h1 span {
  background: linear-gradient(transparent 77%, var(--headline-highlight) 77%, var(--headline-highlight) 94%, transparent 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.intro p { max-width: 33rem; margin-top: 1.5rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); }
.content-section { padding-top: 1.55rem; border-top: 1px solid var(--rule); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.2; letter-spacing: -.05em; }
.work-list { padding: 0; margin-top: .55rem; list-style: none; }
.work-list li { padding-block: 1.14rem; border-bottom: 1px solid var(--rule); }
.work-brand { display: flex; align-items: center; width: fit-content; min-height: 2.25rem; max-width: 100%; text-decoration: none; }
.work-brand:hover { opacity: .75; }
.work-brand img { display: block; width: 100%; height: auto; }
.work-brand--patelzick { font-size: 1.55rem; font-weight: 800; letter-spacing: -.041667em; line-height: 1.12; }
.work-brand--patelzick span { color: var(--patelzick-suffix); font-weight: 400; }
.work-brand--sync { font: 700 1.875rem/1.1 Arial, Helvetica, sans-serif; letter-spacing: -.06em; white-space: nowrap; }
.work-brand--sync i { margin-inline: .1em; font-family: "Sync Editorial", Georgia, serif; font-weight: 400; }
.work-brand--mdn { width: 11rem; }
[data-theme="dark"] .work-brand--mdn img { filter: invert(1); }
.work-brand--calendar { gap: .4em; font: 770 1.35rem/1 "Calendar Roboto", sans-serif; }
.work-brand--calendar img { width: 1.45rem; }
.work-brand--calendar span { background: linear-gradient(90deg, #0a60ab, #2f9bb7, #7ed957); background-clip: text; color: transparent; }
.work-brand--rootstoq, .work-brand--flightstoq { width: 10rem; }
.work-brand--photography { display: block; font: 800 1.875rem/1.2 Arial, Helvetica, sans-serif; letter-spacing: -.06em; white-space: nowrap; }
.work-brand--photography span { padding-inline: .067em; font-family: Georgia, serif; font-weight: 400; }
.work-list p { max-width: 37rem; margin-top: .4rem; color: var(--muted); }
.personal-note { margin-top: 1.35rem; color: var(--muted); }

.about-me-intro { padding-bottom: clamp(2rem, 5vw, 3rem); }
.about-me-copy + .about-me-copy { margin-top: 2rem; }
.about-me-copy p { max-width: 37rem; margin-top: .8rem; color: var(--muted); }
.about-me-copy p a {
  --link-highlight: var(--highlight);
  padding-block-end: .12em;
  padding-inline: .08em;
  background: linear-gradient(var(--link-highlight), var(--link-highlight)) left 94% / 100% .2em no-repeat;
  color: var(--ink);
  text-decoration: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.about-me-copy p a:hover { --link-highlight: #fcff89; }

.writing-intro { padding-bottom: 1.65rem; }
.writing-list { padding: 0; border-top: 1px solid var(--rule); list-style: none; }
.writing-list li { padding-block: 1.2rem; border-bottom: 1px solid var(--rule); }
.writing-list time { display: block; margin-bottom: .25rem; color: var(--muted); font-size: .85rem; }
.writing-list h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.writing-list a { text-decoration-thickness: 1px; }
.writing-list p { margin-top: .38rem; color: var(--muted); overflow-wrap: anywhere; }
.writing-empty { padding-top: 1.2rem; border-top: 1px solid var(--rule); color: var(--muted); }

.newsletter {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.55rem;
  border-top: 1px solid var(--rule);
}

.newsletter p { margin-top: .6rem; color: var(--muted); }
.signup { margin-top: .85rem; }
.signup iframe { display: block; max-width: 100%; border: 0; color-scheme: light; }

.about-footer { margin-top: 3.75rem; padding-top: 1.55rem; border-top: 1px solid var(--rule); }
.about-footer h2 { font-size: 1.25rem; letter-spacing: -.03em; }
.social-links { display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; margin-top: .85rem; padding: 0; list-style: none; }
.social-links a { font-size: .93rem; font-weight: 700; text-decoration-color: #a7b09f; }
.copyright { margin-top: 2.4rem; color: var(--muted); font-size: .8rem; }

@media (max-width: 62rem) {
  .wide-break { display: none; }
}

@media (max-width: 41rem) {
  .page-width { width: calc(100% - 2.5rem); }
  .site-header { min-height: 3.75rem; gap: .5rem; }
  .header-x { width: 48px; margin-left: .15rem; }
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: 1.85rem; padding-top: 1.85rem; }
  .profile { position: static; }
  .portrait img { width: 4.6rem; }
  .profile-bio { margin-top: .95rem; }
  .intro p { margin-top: 1.15rem; }
}

@media (max-width: 23rem) {
  .site-header { flex-wrap: wrap; row-gap: 0; padding-top: .35rem; }
  .header-controls { margin-inline-start: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}
