/* SCHKOLNICK — one stylesheet.
   Phone first. Neutral chrome; the photographs carry the color.
   No frameworks. */

:root {
  --bg: #f3f3f1;
  --ink: #161616;
  --muted: #5c5c5c;
  --line: #e4e4e2;
  --bar: 3.25rem;
  --font: "Instrument Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.45;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 0.9rem;
  z-index: 40;
  border-radius: 8px;
}
.skip:focus { transform: none; top: 0.4rem; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Slim bar. The wordmark is always fully visible. */
.dock {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 0.5rem;
  min-height: calc(var(--bar) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 0.75rem 0 0.85rem;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mark,
.mark a {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}
h1.mark {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}
.mark a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.nav-links {
  display: none;
  flex: 1 0 100%;
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem;
  flex-direction: column;
}
.nav-links.is-open { display: flex; }
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.15rem;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
}
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.22em; }

@media (min-width: 860px) {
  .dock {
    flex-wrap: nowrap;
    padding-left: 1.1rem;
    padding-right: 0.6rem;
  }
  .nav-toggle { display: none; }
  .nav-links,
  .nav-links.is-open {
    display: flex;
    flex: 0 1 auto;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    margin-left: auto;
  }
  .nav-links a { padding: 0 0.85rem; font-size: 1rem; }
  .mark, .mark a, h1.mark { font-size: 1.35rem; }
}

/* Home: one full-screen photograph, then an even grid. */
body.home .dock {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 0;
  padding-top: calc(0.4rem + env(safe-area-inset-top));
  padding-bottom: 0.4rem;
  background: transparent;
  border-bottom: 0;
  color: #fff;
  pointer-events: none;
}
body.home .nav-toggle,
body.home .nav-links { pointer-events: auto; }
body.home .nav-toggle {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 999px;
}
body.home .dock:has(.nav-links.is-open) {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  pointer-events: auto;
}
body.home .dock:has(.nav-links.is-open) .nav-toggle {
  background: transparent;
}
body.home .nav-links a { color: var(--ink); }

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 28rem;
  background: #1a1a1a;
  color: #fff;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 70% center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(16, 16, 16, 0.62) 0%,
    rgba(16, 16, 16, 0.22) 28%,
    rgba(16, 16, 16, 0.06) 48%,
    rgba(16, 16, 16, 0) 68%
  );
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.25rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom));
  pointer-events: none;
}
.hero-copy h1 {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.9;
  white-space: nowrap;
  font-size: min(8.25rem, 16svh, calc((100vw - 2.4rem) / 6.35));
}
.hero-copy p {
  margin-top: 0.55rem;
  max-width: 100%;
  font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
}
.cell {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e3e3e1;
  color: inherit;
  text-decoration: none;
}
.cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cell figcaption,
.cell .cap {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  max-width: calc(100% - 0.9rem);
  padding: 0.3rem 0.5rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.2;
  opacity: 0;
}
@media (hover: hover) {
  .cell:hover figcaption,
  .cell:hover .cap,
  .cell:focus-visible figcaption,
  .cell:focus-visible .cap { opacity: 1; }
}

@media (min-width: 800px) {
  .work {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 20px;
  }
}
@media (min-width: 1100px) {
  .work {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 24px;
  }
  .hero-copy { padding-left: 2rem; padding-right: 2rem; padding-bottom: 2.2rem; }
}

@media (min-width: 860px) {
  body.home .nav-links {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
    padding: 0 0.25rem;
  }
  body.home .nav-links a {
    color: var(--ink);
    min-height: 44px;
  }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  justify-content: space-between;
  padding: 0.6rem 0.9rem calc(0.8rem + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

/* Inner pages */
.page-hero { padding: 0.85rem 0.9rem 0.4rem; }
.kicker {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-title {
  font-size: clamp(2.4rem, 12vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  overflow-wrap: anywhere;
}
.intro {
  margin: 0.8rem 0.9rem 0.4rem;
  max-width: 38rem;
  color: var(--ink);
}
.paper { background: transparent; }

.people { padding-bottom: 1.5rem; }
.person { scroll-margin-top: 4.5rem; }
.bleed { background: #d9d9d6; overflow: hidden; }
.bleed img { width: 100%; height: 100%; object-fit: cover; }
.person .bleed { height: 72vw; min-height: 16rem; max-height: 88vh; }
.person:nth-child(3n+2) .bleed { height: 56vw; }
.sheet {
  padding: 0.9rem 0.9rem 1.3rem;
  max-width: 42rem;
}
.person:nth-child(even) .sheet { margin-left: auto; }
.person h2,
.pablo-sheet h2,
.other-mails h2,
.form-card h2 {
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.role {
  margin: 0.35rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.aka { color: var(--muted); margin-top: 0.2rem; }
.bio { font-size: 1.05rem; }
.outlink,
.mail {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin: 0.45rem 1rem 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-underline-offset: 0.18em;
}

@media (min-width: 900px) {
  .person .bleed { height: 68vh; width: 88%; }
  .person:nth-child(even) .bleed { margin-left: auto; width: 76%; }
  .person:nth-child(3n) .bleed { width: 100%; height: 54vh; }
  .sheet { padding-left: 1.4rem; padding-right: 1.4rem; }
}

.contact-layout { padding-bottom: 1.5rem; }
.pablo-photo { height: min(70vh, 36rem); min-height: 16rem; }
.pablo-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.pablo-sheet,
.other-mails,
.form-card {
  padding: 0.95rem 0.9rem 1.1rem;
  max-width: 40rem;
}
.other-mails { margin-top: 0.4rem; }
.form-card { margin-top: 0.2rem; }
.plain-mails { list-style: none; }
.plain-mails li { margin: 0.35rem 0; }
.plain-mails a { overflow-wrap: anywhere; }
.form-note { margin: 0.45rem 0 0.7rem; color: var(--muted); font-size: 1rem; }
.form-note a { color: var(--ink); }
form { display: grid; gap: 0.75rem; }
label { display: grid; gap: 0.3rem; font-size: 0.95rem; font-weight: 600; }
input, textarea {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 16px;
}
textarea { min-height: 8rem; resize: vertical; }
.send {
  justify-self: start;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
