/* =================================
   NENASIMON — RESPONSIVE PORTFOLIO
   Mobile-first
   ================================= */

:root {
  --paper: #F4EFE6;
  --ink: #1A1A1A;
  --rust: #C7511F;
  --olive: #5A6B3F;
  --wine: #702F38;
  --line: rgba(26, 26, 26, 0.22);
  --muted: rgba(26, 26, 26, 0.62);

  --max-width: 1180px;
  --gutter: 20px;
  --section-space: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

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

main,
.site-header,
.site-footer {
  width: calc(100% - (var(--gutter) * 2));
  max-width: var(--max-width);
  margin-inline: auto;
}

/* ---------- HEADER ---------- */

.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 16px;
}

.site-header nav a {
  font-size: 0.7rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
}

/* ---------- TYPE ---------- */

.eyebrow {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 0.68rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.42;
}

/* ---------- HERO ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 76px 0 92px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.9rem, 18vw, 7rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero-role {
  margin: 30px 0 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.hero-location {
  margin: 4px 0 0;
  color: var(--muted);
}

.hero-photo {
  display: flex;
  justify-content: flex-start;
}

.photo-placeholder {
  width: min(72vw, 300px);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- SECTIONS ---------- */

section {
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line);
}

.statement {
  max-width: 900px;
}

.statement h2,
.section-heading h2,
.about-section h2,
.press-section h2,
.contact-section h2 {
  font-size: clamp(2.55rem, 12vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.statement .lead {
  margin-top: 34px;
}

.statement p:not(.eyebrow),
.about-section p:not(.eyebrow) {
  max-width: 760px;
}

/* ---------- WORK SECTIONS ---------- */

.work-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
}

.section-heading {
  position: static;
}

.section-intro {
  max-width: 480px;
  margin: 24px 0 0;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
}

.work-grid h3 {
  margin-bottom: 15px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.work-grid p {
  max-width: 560px;
}

/* ---------- ACCORDION ---------- */

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 17px 32px 17px 0;
  font-size: 0.95rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 1.15rem;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

.details-content {
  padding: 0 0 20px;
  color: var(--muted);
}

.details-content p {
  margin-bottom: 14px;
}

.details-content p:last-child {
  margin-bottom: 0;
}

/* ---------- ABOUT ---------- */

.about-section {
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  background: rgba(90, 107, 63, 0.055);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin-top: 38px;
}

/* ---------- PRESS ---------- */

.press-list {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.press-list p {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.press-list span {
  display: inline-block;
  width: 58px;
  color: var(--muted);
  font-size: 0.8rem;
}

.small-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- CONTACT ---------- */

.contact-intro {
  max-width: 650px;
  margin-top: 28px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 32px;
  font-size: 1.15rem;
}

/* ---------- FOOTER ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer p {
  margin: 0;
}


/* =================================
   TABLET
   ================================= */

@media (min-width: 600px) {

  :root {
    --gutter: 34px;
    --section-space: 95px;
  }

  .site-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 30px;
  }

  .site-header nav {
    justify-content: flex-end;
    margin-top: 0;
  }

  .hero {
    padding-top: 105px;
    padding-bottom: 120px;
  }

  .hero h1 {
    font-size: clamp(5rem, 14vw, 8rem);
  }

  .work-grid,
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }

  .about-grid {
    gap: 70px;
  }

  .contact-links {
    font-size: 1.35rem;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}


/* =================================
   DESKTOP
   ================================= */

@media (min-width: 900px) {

  :root {
    --gutter: 50px;
    --section-space: 125px;
  }

  body {
    font-size: 17px;
  }

  .site-header {
    padding: 24px 0;
  }

  .site-header nav {
    gap: 14px 22px;
  }

  .site-header nav a {
    font-size: 0.72rem;
  }

  .hero {
    min-height: 76vh;
    grid-template-columns: 1.25fr 0.75fr;
    gap: clamp(50px, 8vw, 110px);
    align-items: center;
    padding-top: 120px;
    padding-bottom: 150px;
  }

  .hero h1 {
    font-size: clamp(6rem, 11vw, 10rem);
  }

  .hero-role {
    font-size: 1.35rem;
  }

  .hero-photo {
    justify-content: center;
  }

  .photo-placeholder {
    width: min(100%, 360px);
  }

  .statement .lead {
    margin-top: 42px;
    font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  }

  .work-section {
    grid-template-columns: 0.7fr 1.3fr;
    gap: clamp(50px, 8vw, 120px);
  }

  .section-heading {
    position: sticky;
    top: 30px;
    align-self: start;
  }

  .work-grid {
    gap: clamp(35px, 5vw, 70px);
  }

  .lead {
    font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  }

  .about-section {
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .contact-links {
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  }
}


/* =================================
   LARGE DESKTOP
   ================================= */

@media (min-width: 1200px) {

  :root {
    --gutter: 60px;
  }

  .hero h1 {
    font-size: 10rem;
  }
}
