@font-face {
  font-family: "Libre Caslon Display";
  src: url("assets/fonts/libre-caslon-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0d2e27;
  --text: #f5f0e4;
  --muted: #a1b9ab;
  --rule: #59776b;
  font-family: Manrope, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
::selection { color: var(--background); background: #ddc79b; }

.page {
  width: min(1440px, calc(100% - 10.6vw));
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

header {
  padding-block: 52px 24px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  line-height: 1.3;
}

main {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 0;
}

.introduction {
  position: relative;
  z-index: 1;
  padding-block: 48px;
}

h1 {
  margin: 0;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(3.75rem, 9.3vw, 9rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.005em;
}

.description {
  max-width: 510px;
  margin: 42px 0 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.95vw, 1.875rem);
  line-height: 1.4;
  text-wrap: pretty;
}

.artwork {
  /* Fade only the image's outside edge into the page; keep the artwork untinted. */
  mask-image: radial-gradient(ellipse 64% 65% at 50% 49%, #000 65%, transparent 93%);
  pointer-events: none;
  transform: translate(-10px, -15px) scale(1.08);
}

.artwork img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(780px, calc(100svh - 240px));
  object-fit: contain;
  animation: settle 1.4s ease-out both;
}

footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--rule);
  padding-block: 28px 58px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact p, .copyright { margin: 0; }

.contact a {
  display: inline-block;
  padding-block: 3px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 160ms ease;
}

.contact a:hover { color: #ddc79b; }
.contact a:focus-visible {
  outline: 2px solid #ddc79b;
  outline-offset: 6px;
  border-radius: 1px;
}

@keyframes settle {
  from { opacity: 0; transform: translateY(18px) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@media (max-width: 760px) {
  .page { width: calc(100% - 48px); }
  header { padding-block: 30px 22px; }
  .wordmark { font-size: 0.875rem; }
  main { grid-template-columns: 1fr; gap: 0; padding-block: 0 24px; }
  .introduction { padding-block: 60px 0; }
  h1 { font-size: clamp(3.4rem, 12vw, 5.5rem); }
  .description { max-width: 400px; margin-top: 28px; font-size: 1.125rem; line-height: 1.55; }
  .artwork { width: min(100%, 400px); margin: 4px auto 0; transform: none; }
  .artwork img { max-height: 380px; }
  footer { padding-block: 24px 30px; gap: 24px; flex-wrap: wrap; }
  .copyright { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .artwork img { animation: none; }
  .contact a { transition: none; }
}
