/* Mapys Art World — one stylesheet for the whole site.
   Design: white ground, near-black text, Instrument Serif for display,
   Archivo for navigation, captions and body. */

:root {
  --ink: #111111;
  --body: #3d3d3d;
  --muted: #6b6b6b;
  --rule: #e2e0dc;
  --line: #c9c6c0;
  --ground: #ffffff;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --gutter: 88px;
  --band: 96px;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

figure, dl { margin: 0; }

a { color: var(--ink); }
a:hover { color: var(--muted); }
a img { transition: opacity 0.2s ease; }
a:hover img { opacity: 0.82; }

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

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 56px 0 0;
}

.wordmark {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 36px;
  align-items: baseline;
}

.site-nav a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] { color: var(--ink); }

/* ---------- shared type ---------- */

.label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.label-dark { color: var(--ink); }

.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 72px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}

.work-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.meta {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.prose { color: var(--body); }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

.band {
  margin-top: var(--band);
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

.band-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.btn {
  display: inline-block;
  align-self: flex-start;
  padding: 13px 27px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--body);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- works page ---------- */

.hero {
  display: flex;
  gap: 80px;
  align-items: flex-end;
  margin: 56px 0 0;
}

.hero-image { flex: 0 1 auto; min-width: 0; }
.hero-image img { max-height: 760px; width: auto; }

.hero-caption {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 8px;
  max-width: 440px;
}

.hero-caption .work-title { font-size: 46px; }

.note {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.text-link {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  align-self: flex-start;
}

.grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 56px;
}

.card { display: flex; flex-direction: column; }

.card a {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.card-image {
  height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.card-image img { max-height: 100%; width: auto; }

.card .work-title { font-size: 18px; }
.card .meta { font-size: 12px; }
.card-text { display: flex; flex-direction: column; gap: 5px; }
.card-sketch {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- single work ---------- */

.work {
  margin-top: 40px;
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.work-image { flex: 0 1 760px; min-width: 0; }
.work-image img { max-height: 860px; width: auto; }

.work-detail {
  flex: 0 0 440px;
  display: flex;
  flex-direction: column;
}

.work-detail .work-title { font-size: 44px; }
.work-detail .prose { margin-top: 32px; }
.work-detail .note { margin-top: 26px; }

.back-link {
  display: inline-block;
  margin-top: 48px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.specs {
  margin-top: 36px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec { display: flex; gap: 20px; align-items: baseline; }

.spec dt {
  width: 108px;
  flex-shrink: 0;
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec dd { margin: 0; font-size: 14px; line-height: 1.6; }

.work-detail .btn { margin-top: 32px; }

.coda {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
}

.pager {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.pager a {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
}

/* ---------- about ---------- */

.about-top {
  margin-top: 76px;
  display: flex;
  gap: 88px;
  align-items: flex-start;
}

.portrait { flex: 0 0 480px; display: flex; flex-direction: column; gap: 14px; }
.portrait .meta { font-size: 12px; }

.about-intro { flex: 1 1 auto; min-width: 0; max-width: 700px; }

.statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 31px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin: 22px 0 0;
}

.about-intro h2 { margin: 40px 0 16px; }

.series-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 12px 0 0;
}

.two-col {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  row-gap: 34px;
  align-items: start;
}

.two-col h3 { margin: 0 0 14px; }
.two-col h3 + p { margin-top: 0; }
.two-col .sub { margin-top: 34px; }

.pair { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.pair-row { display: flex; gap: 20px; align-items: baseline; }
.pair-name {
  width: 96px;
  flex-shrink: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}
.pair-row span:last-child { font-size: 14.5px; line-height: 1.7; color: var(--body); }

.pull {
  margin: 56px 0 0;
  max-width: 920px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.55;
  color: var(--ink);
}

.cv {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 40px;
  align-items: start;
}

.cv section { display: flex; flex-direction: column; gap: 16px; }
.cv h3 { margin: 0 0 4px; }
.cv-row { display: flex; gap: 16px; align-items: baseline; }
.cv-year { width: 58px; flex-shrink: 0; font-size: 12.5px; color: var(--muted); }
.cv-row span:last-child { font-size: 14px; line-height: 1.6; }

/* ---------- contact ---------- */

.contact {
  margin-top: 56px;
  display: flex;
  gap: 88px;
  align-items: flex-start;
}

.contact-details { flex: 0 0 520px; display: flex; flex-direction: column; gap: 36px; }
.contact-details section { display: flex; flex-direction: column; gap: 12px; }
.contact-details p { margin: 0; font-size: 14.5px; line-height: 1.7; }

.email {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}

.signup {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 560px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.signup h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
}

.signup p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--body); }

.signup form { display: flex; flex-direction: column; gap: 14px; }

.signup label {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }

.field input {
  flex: 1 1 220px;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 0;
}

.field .btn { height: 48px; padding: 0 28px; align-self: auto; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 96px;
  padding: 72px 0 64px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.site-footer a { color: var(--muted); text-decoration: none; }
.social { display: flex; gap: 24px; align-items: baseline; }

/* ---------- breakpoints ---------- */

@media (max-width: 1180px) {
  :root { --gutter: 48px; --band: 80px; }
  .hero { gap: 48px; }
  .work { gap: 48px; }
  .work-detail { flex-basis: 380px; }
  .about-top { gap: 56px; }
  .portrait { flex-basis: 400px; }
  .contact { gap: 56px; }
  .contact-details { flex-basis: 440px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; --band: 64px; }

  .site-header { padding-top: 32px; flex-wrap: wrap; }
  .wordmark { font-size: 23px; }
  .site-nav { gap: 22px; }
  .site-nav a { font-size: 11px; letter-spacing: 0.14em; }

  .page-title { font-size: 46px; }

  .hero { flex-direction: column; align-items: stretch; gap: 24px; margin-top: 36px; }
  .hero-image img { max-height: none; width: 100%; }
  .hero-caption { max-width: none; padding-bottom: 0; gap: 14px; }
  .hero-caption .work-title { font-size: 32px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 40px; }
  .card-image { height: 220px; }

  .work { flex-direction: column; gap: 28px; margin-top: 28px; }
  .work-image { flex-basis: auto; width: 100%; }
  .work-image img { max-height: none; width: 100%; }
  .work-detail { flex-basis: auto; width: 100%; }
  .work-detail .work-title { font-size: 32px; }
  .pager { margin-top: 64px; }

  .about-top { flex-direction: column; gap: 32px; margin-top: 40px; }
  .portrait { flex-basis: auto; width: 100%; max-width: 420px; }
  .about-intro { max-width: none; }
  .statement { font-size: 25px; }
  .series-title { font-size: 34px; }
  .two-col { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .pull { font-size: 20px; margin-top: 40px; }
  .cv { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }

  .contact { flex-direction: column; gap: 40px; margin-top: 36px; }
  .contact-details { flex-basis: auto; width: 100%; }
  .signup { max-width: none; width: 100%; }
  .email { font-size: 24px; }

  .site-footer { margin-top: 64px; padding: 40px 0 40px; flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
  }
  .card-image {
    height: auto;
    align-items: flex-start;
    justify-content: center;
  }
  .card-image img {
    width: 75%;
    max-height: none;
  }
  .card-text {
    width: 75%;
    margin-inline: auto;
  }
  .spec dt { width: 92px; }
}
