/* Pareil — pareil.art
   Editorial dark theme. Mark and work do the work. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Inter:wght@200;300;400&family=Noto+Sans:wght@400;500&display=swap');

:root {
  --bg: #0e0e0d;
  --bg-soft: #161614;
  --mark-bg: #f4f1ea;
  --ink: #e8e4dc;
  --ink-soft: #a8a39a;
  --ink-faint: #6b665e;
  --rule: #2a2826;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   LANDING PAGE — index.html
   ============================================ */

.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
  cursor: pointer;
}

.landing__inner {
  text-align: center;
  animation: fadeIn 1.4s ease-out;
}

.landing__mark {
  width: min(60vw, 360px);
  height: auto;
  display: block;
  margin: 0 auto;
  background: var(--mark-bg);
  padding: 0;
}

.landing__enter {
  margin-top: 3rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 400ms ease;
}

.landing:hover .landing__enter {
  color: var(--ink-soft);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================
   THANKS PAGE — thanks.html
   ============================================ */

.thanks {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}

.thanks__inner {
  text-align: center;
  animation: fadeIn 1.4s ease-out;
  max-width: 32ch;
}

.thanks__mark {
  width: 96px;
  height: auto;
  margin: 0 auto 3rem;
  background: var(--mark-bg);
  display: block;
}

.thanks__message {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.thanks__return {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 2px;
  transition: color 240ms ease, border-color 240ms ease;
}

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

/* ============================================
   WORKS PAGE — works.html
   ============================================ */

.works {
  max-width: 880px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
  animation: fadeIn 1.2s ease-out;
}

/* Header — small mark, name, single sentence */
.works__header {
  text-align: center;
  margin-bottom: 6rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--rule);
}

.works__mark {
  width: 72px;
  height: auto;
  margin: 0 auto 2.5rem;
  background: var(--mark-bg);
  display: block;
}

.works__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.works__statement {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* Reversed-P glyph (U+A7FC) — force a font that contains it */
.reversed-p {
  font-family: 'Noto Sans', 'Segoe UI Historic', 'Lucida Sans Unicode', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.05em;
  display: inline-block;
  line-height: 1;
  vertical-align: baseline;
}

/* Grid of works — single column, generous spacing */
.works__grid {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.work {
  text-align: center;
}

.work__image-wrap {
  display: block;
  background: var(--bg-soft);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.work__image {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 600ms ease;
}

.work__caption {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.work__caption-year {
  font-style: normal;
}

.work__medium {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Index — discreet list of works between grid and footer */
.works__index {
  margin-top: 7rem;
  padding-top: 4rem;
  border-top: 1px solid var(--rule);
}

.works__index-heading {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: 2.5rem;
}

.works__index-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;
  columns: 2;
  column-gap: 3rem;
}

.works__index-list li {
  break-inside: avoid;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.works__index-list a {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 200ms ease;
  display: inline-block;
}

.works__index-list a:hover {
  color: var(--ink);
}

.works__index-year {
  font-style: normal;
  color: var(--ink-faint);
  font-size: 0.85em;
  margin-left: 0.15em;
}

/* Smooth scroll when index links are clicked */
html {
  scroll-behavior: smooth;
}

/* Anchored figures need top offset so the title isn't tight against the viewport edge */
.work {
  scroll-margin-top: 2rem;
}

/* Footer */
.works__footer {
  margin-top: 7rem;
  padding-top: 4rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.works__footer p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.works__contact {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 1px;
  transition: border-color 240ms ease;
}

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

/* Mailing list signup — quiet, beneath the email */
.works__signup {
  margin-top: 3.5rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.works__signup-label {
  display: block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
  text-align: center;
}

.works__signup-row {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ink-faint);
  transition: border-color 240ms ease;
}

.works__signup-row:focus-within {
  border-bottom-color: var(--ink);
}

.works__signup-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.5rem 0;
  text-align: center;
}

.works__signup-input::placeholder {
  color: var(--ink-faint);
  font-style: italic;
}

.works__signup-button {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.5rem 0 0.5rem 1rem;
  cursor: pointer;
  transition: color 240ms ease;
}

.works__signup-button:hover {
  color: var(--ink);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
  .works {
    padding: 3rem 1rem 4rem;
  }
  .works__header {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
  }
  .works__title {
    font-size: 1.5rem;
  }
  .works__statement {
    font-size: 1rem;
  }
  .works__grid {
    gap: 4rem;
  }
  .works__index {
    margin-top: 5rem;
    padding-top: 3rem;
  }
  .works__index-list {
    columns: 1;
  }
  .works__footer {
    margin-top: 5rem;
    padding-top: 3rem;
  }
}
