/* Patina, patina-live.com */

:root {
  --cream: #f2ede3;
  --ink: #17140f;
  --ink-muted: #4a4438;
  --leather: #6e4526;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Helvetica, Arial, sans-serif;
  --ease: 300ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Focus states ---------- */

:focus-visible {
  outline: 2px solid var(--leather);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Top-right nav ---------- */

.top-nav {
  position: absolute;
  top: 1.75rem;
  right: 2rem;
  display: flex;
  gap: 1.75rem;
  z-index: 10;
}

.top-nav a {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), color var(--ease);
}

.top-nav a:hover {
  border-bottom-color: var(--leather);
  color: var(--leather);
}

.top-nav a[aria-current="page"] {
  color: var(--ink-muted);
  pointer-events: none;
}

/* ---------- Small wordmark (inner pages) ---------- */

.brand {
  position: absolute;
  top: 1.4rem;
  left: 2rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  transition: letter-spacing var(--ease);
  z-index: 10;
}

.brand:hover {
  letter-spacing: 0.06em;
}

/* ---------- Landing hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0.01em;
  background: none;
  border: none;
  cursor: pointer;
  transition: letter-spacing var(--ease), color var(--ease);
}

.wordmark:hover {
  letter-spacing: 0.045em;
}

.tagline {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

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

.about-reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 450ms ease, opacity 450ms ease;
  opacity: 0;
  width: 100%;
  max-width: 44rem;
}

.about-reveal.open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.about-inner {
  overflow: hidden;
}

.about-content {
  padding-top: 3rem;
}

.about-copy {
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 34rem;
  margin: 0 auto;
}

.about-photos {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.about-photos figure {
  flex: 1 1 0;
  max-width: 17rem;
}

.about-photos img {
  width: 100%;
  height: auto;
  display: block;
  /* elliptical % radius stays circular for the 694:1514 image and clips the
     screenshot's baked-in dark corner arcs at any rendered size */
  border-radius: 15% / 6.9%;
  box-shadow: 0 12px 32px rgba(23, 20, 15, 0.14);
  transition: transform var(--ease), box-shadow var(--ease);
}

.about-photos figure:first-child img {
  transform: rotate(-2.5deg);
}

.about-photos figure:last-child img {
  transform: rotate(2.5deg);
}

.about-photos figure:hover img {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(23, 20, 15, 0.2);
}

.about-photos figcaption {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.about-close {
  margin-top: 2.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}

.about-close:hover {
  color: var(--leather);
  border-bottom-color: var(--leather);
}

/* ---------- Inner pages (contact / launch) ---------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
}

.page h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.15;
}

.page .lede {
  margin-top: 1.5rem;
  max-width: 30rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */

.contact-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.contact-list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 20, 15, 0.25);
  padding-bottom: 1px;
  transition: color var(--ease), border-color var(--ease);
}

.contact-list a:hover {
  color: var(--leather);
  border-bottom-color: var(--leather);
}

/* ---------- Launch form ---------- */

.invite-form {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.6rem;
  width: 100%;
  max-width: 26rem;
}

.invite-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(23, 20, 15, 0.35);
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
}

.invite-form input[type="email"]::placeholder {
  color: var(--ink-muted);
  opacity: 0.7;
}

.invite-form input[type="email"]:focus-visible {
  outline: 2px solid var(--leather);
  outline-offset: 2px;
}

.invite-form button {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease);
}

.invite-form button:hover {
  background: var(--leather);
}

.form-success {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.form-error {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--leather);
}

.invite-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .top-nav {
    top: 1.25rem;
    right: 1.25rem;
    gap: 1.1rem;
  }

  .top-nav a {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .brand {
    top: 0.95rem;
    left: 1.25rem;
    font-size: 1.2rem;
  }

  .about-photos {
    flex-direction: column;
    align-items: center;
  }

  .about-photos figure {
    max-width: 20rem;
    width: 100%;
  }

  .invite-form {
    flex-direction: column;
  }

  .invite-form button {
    padding: 0.8rem 1.5rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
