/* ---------------------------------------------------------------
   Prisyra Collectibles LLC
   Fraunces (display serif) + Karla (grotesque body)

   Fonts are self-hosted from /fonts — no third-party requests.
   Both are variable fonts under the SIL Open Font License 1.1,
   subset to Latin. See fonts/OFL.txt.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("fonts/karla-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette */
  --bg:      #16110F;  /* page background (warm near-black) */
  --surface: #241C19;  /* cards, section bands, subtle raised areas */
  --text:    #E8E1DC;  /* body text */
  --muted:   #9A8F89;  /* secondary text, captions, footer */
  --accent:  #E08CA0;  /* dusty rose */

  /* derived — hairlines, body copy tint, accent's pressed state */
  --rule:         #2F2622;
  --text-soft:    #C7BEB8;  /* body copy: sits below --text, above --muted */
  --accent-deep:  #C97A8E;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Karla", "Segoe UI", sans-serif;

  --measure: 68ch;
  --shell: 1120px;
  --gutter: clamp(1.5rem, 5vw, 3rem);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

a {
  color: var(--accent);
}

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

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--gutter);
}

.site-header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

/* wordmark: tracked-out caps so it reads as a mark, not a sentence */
.logo {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--muted);
}

.logo:hover,
.logo:focus {
  color: var(--text);
}

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
}

nav a {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover,
nav a:focus {
  color: var(--text);
}

nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ------------------------- layout / measure ------------------------ */

/* content column sits left inside a wide shell — the empty right side
   is the asymmetry, not an accident */
main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 6.5rem) var(--gutter) clamp(6rem, 12vw, 9rem);
  position: relative;
}

main > * {
  max-width: var(--measure);
  position: relative;
  z-index: 1;
}

/* ----------------------------- headings ---------------------------- */

h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 1.75rem;
  max-width: 16ch;
}

h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: clamp(3.5rem, 7vw, 5rem) 0 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  position: relative;
}

/* short accent tick riding on the hairline */
h2::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.5rem;
  height: 1px;
  background: var(--accent);
}

p {
  margin: 0 0 1.5rem;
  max-width: var(--measure);
  color: var(--text-soft);
}

/* inline links in body copy — specificity stays below .contact-email a */
p a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

p a:hover,
p a:focus {
  color: var(--text);
}

/* ------------------------------ hero ------------------------------- */
/* homepage is the only page with .tagline — no markup hooks needed */

main:has(.tagline) {
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(6rem, 14vw, 10rem);
  overflow: hidden;
}

/* the one texture: an oversized letterform, nearly invisible */
main:has(.tagline)::before {
  content: "P" / "";
  position: absolute;
  top: 50%;
  right: -0.08em;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(18rem, 42vw, 33rem);
  line-height: 0.75;
  color: var(--text);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

main:has(.tagline) h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 11ch;
  margin-bottom: 0;
}

main:has(.tagline) h1::before {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.tagline {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--text);
  max-width: 44ch;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

/* ----------------------------- button ------------------------------ */

.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  padding: 1.15rem 2.25rem;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.button:hover,
.button:focus {
  background: var(--accent-deep);
  color: var(--bg);
}

/* ------------------------------ card ------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: 0 3px 3px 0;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.card p:last-child {
  margin-bottom: 0;
}

/* contact is a three-block page — spacing tuned for About reads as empty here.
   .contact-email is unique to that page, so no markup hook is needed. */
main:has(.contact-email) {
  padding-top: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

main:has(.contact-email) .card {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* an email is a data string, not prose — sans reads cleaner and copies better */
.contact-email {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.contact-email a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.12em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email a:hover,
.contact-email a:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(2rem, 4vw, 2.75rem) var(--gutter);
  text-align: left;
}

.site-footer p {
  max-width: var(--shell);
  margin: 0 auto;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ----------------------------- responsive -------------------------- */

@media (max-width: 560px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  main:has(.tagline)::before {
    opacity: 0.03;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
