/* Shawn-Holly — site styles
   White pages, black type. Anton echoes the titles on the collage works. */

:root {
  --bg: #fff;
  --fg: #000;
  --pad: clamp(16px, 3.4vw, 48px);
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --text: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --label: 12px;   /* nav, works intro and the Contact label share this size */
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }

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

/* ---------- Header ---------- */

.site-header { padding: var(--pad) var(--pad) 0; container-type: inline-size; }

.masthead {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
}
.masthead .nw { white-space: nowrap; }
.masthead a:hover { text-decoration: none; }

/* cqw = header content width. Desktop keeps the launch size (1/8.8 of the width);
   in Anton "SHAWN-HOLLY" is 5.15em wide, so on phones 1/5.2 fills the width. */
.home .masthead { font-size: 10.5vw; font-size: calc(100cqw / 8.8); }
.inner .masthead { font-size: clamp(34px, 5vw, 72px); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-nav .ig { display: inline-flex; align-items: center; }
.site-nav .ig svg { display: block; width: 16px; height: 16px; }
.site-nav .ig:hover, .site-nav .ig:focus-visible { opacity: .55; }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}

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

.hero { margin-top: clamp(20px, 3vw, 40px); }
.hero img { width: 100%; max-height: 100vh; object-fit: cover; }

.show { padding: clamp(20px, 2.5vw, 32px) var(--pad) clamp(56px, 8vw, 112px); }
.show-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.02;
  text-wrap: balance;
}
.show-where { margin: 10px 0 0; font-size: clamp(17px, 1.5vw, 21px); }

/* ---------- Selected works ---------- */

.works { padding: clamp(40px, 6vw, 88px) var(--pad) clamp(64px, 9vw, 128px); }

.intro {
  margin: 0 0 clamp(40px, 6vw, 88px);
  font-size: var(--label);
  line-height: 1.5;
}

.works-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(56px, 8vw, 120px) clamp(32px, 5vw, 80px);
}
.works-grid li { display: flex; justify-content: center; }
.works-grid img { width: var(--w, 100%); }   /* --w keeps every title at the same scale */

@media (min-width: 900px) {
  .works-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ---------- About ---------- */

.about {
  padding: clamp(40px, 6vw, 88px) var(--pad) clamp(64px, 9vw, 128px);
  display: grid;
  gap: clamp(32px, 5vw, 80px);
}

.about-text {
  max-width: 34em;
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.6;
}
.about-text p { margin: 0 0 1.1em; }

.contact { margin-top: 2.2em !important; }
.contact .label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact a { text-decoration: underline; text-underline-offset: .2em; }

@media (min-width: 900px) {
  .about { grid-template-columns: 1.1fr 1fr; align-items: start; }   /* image left, bio right */
}

/* ---------- Mobile ---------- */

@media (max-width: 699px) {
  .home .masthead { font-size: 17.5vw; font-size: calc(100cqw / 5.2); }
}
