/* denisestroud.com — one stylesheet for every page. Tokens first. */

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-300-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2");
}

:root {
  --bg: #f3f3f3;
  --bg-essay: #e3e3e3;
  --ink: #000;
  --rule: #c7c7c7;
  --story: #eea302;
  --product: #ff3b25;
  --about: #80d8da;
  --focus: #1a5fb4;

  --font-head: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito Sans", Avenir, "Avenir Next", "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 66rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
}

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

h1,
h2 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
}
h1 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 2.625rem);
}
h2 {
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.625rem);
}
@media (max-width: 52rem) {
  h1 br {
    display: none;
  }
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--gutter);
  top: 0.5rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

/* ---- Site chrome ------------------------------------------------------ */

.site-nav {
  padding: 1.25rem var(--gutter) 0;
}
.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: calc(var(--measure) - 2 * var(--gutter));
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) 3rem;
}

.site-footer {
  margin: 0 var(--gutter);
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
}

/* ---- Home ------------------------------------------------------------- */

.hero {
  display: grid;
  gap: 2.5rem 3.5rem;
  align-items: center;
  justify-items: center;
  min-height: 60vh;
}
@media (min-width: 52rem) {
  .hero {
    grid-template-columns: min(30rem, 40vw) auto;
    justify-content: center;
    justify-items: start;
  }
  .hero .bubbles {
    flex-wrap: nowrap;
  }
}
.hero__portrait {
  width: min(30rem, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}
.hero h1 {
  font-size: clamp(3.5rem, 2rem + 6vw, 6.25rem);
  line-height: 1.12;
  margin-bottom: 2rem;
}
.hero__tagline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.15;
  max-width: 24ch;
  margin-bottom: 0.5rem;
}
.hero__intro {
  max-width: 24rem;
}

.bubbles {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.bubbles a {
  display: grid;
  place-items: center;
  width: 8.75rem;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.375rem;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.bubbles a:hover {
  transform: scale(1.05);
}
.bubbles .story {
  background: var(--story);
}
.bubbles .product {
  background: var(--product);
}
.bubbles .about {
  background: var(--about);
}
@media (max-width: 30rem) {
  .bubbles a {
    width: 6rem;
    font-size: 1.1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bubbles a {
    transition: none;
  }
}

/* ---- Entries (Product, Story) ---------------------------------------- */

.entries {
  margin-top: 2.5rem;
}
.entry {
  display: grid;
  gap: 1.25rem 4rem;
  align-items: start;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
@media (min-width: 52rem) {
  .entry {
    grid-template-columns: minmax(0, 24rem) minmax(0, 30.625rem);
    justify-content: space-between;
  }
}
.entry__media img {
  width: 100%;
  aspect-ratio: 490 / 331;
  object-fit: cover;
}
.entry__media a {
  display: block;
}

/* ---- About (flyer + résumé images) ----------------------------------- */

.sheets {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}
.sheets a {
  display: block;
  width: min(35.3rem, 100%);
}
.sheets img {
  width: 100%;
  background: #fff;
}

/* ---- Essay (Blood Lines) --------------------------------------------- */

.page--essay {
  background: var(--bg-essay);
}
.essay {
  max-width: 57rem;
  margin: 0 auto;
}
.essay h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.essay p {
  line-height: 2.2;
  text-indent: 2.5em;
  margin-bottom: 0.25rem;
}
.essay p.no-indent {
  text-indent: 0;
}
.essay hr {
  border: 0;
  margin: 1.5rem 0;
  text-align: center;
}
.essay hr::after {
  content: "*****";
  letter-spacing: 0.1em;
}
.essay-figure {
  margin: 1.5rem auto;
  width: min(19.75rem, 100%);
  text-align: center;
}
.essay-figure figcaption {
  margin-top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
