/* ROC Literary v2 — book-cover graphic language married to the prior site's
   side-by-side layout, Fraunces serif, italic emphasis, and faded B&W imagery */

:root {
  --cream: #f4ede1;
  --cream-deep: #ece3d2;
  --navy: #0F0F12;
  --navy-ink: #000000;
  --orange: #E0A93B;
  --photo-tint: #5C3A52;
  --photo-tint-opacity: 0.45;
  --photo-tint-mode: multiply;
  --photo-contrast: 0.8;
  --photo-brightness: 1.35;
  --photo-opacity: 0.85;
  --ink: #1a1a1a;
  --rule: rgba(26, 26, 26, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.7rem, 1.4vw, 1rem);
  line-height: 0;
  color: var(--navy);
}

.brand__mark {
  display: block;
  height: clamp(48px, 5vw, 60px);
  width: auto;
}

.brand__wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

.cta {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cream);
  background: var(--navy);
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--navy);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
  white-space: nowrap;
}

.cta:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-1px);
}

/* ---------- Sections (shared) ---------- */

main { display: block; }

.section {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.section--hero {
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.section--cta {
  display: block;
  text-align: left;
  border-top: 1px solid var(--rule);
}

.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--orange);
  margin: 0 0 1.5rem;
}

.display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.25rem, 5.6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--navy-ink);
  margin: 0;
  max-width: 16ch;
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--orange);
}

.display--md {
  font-size: clamp(1.875rem, 4vw, 3rem);
  max-width: 22ch;
  margin-bottom: 2rem;
}

.prose {
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  line-height: 1.6;
  max-width: 56ch;
  color: var(--ink);
  margin: 0 0 1.25em;
}

.prose:last-child { margin-bottom: 0; }

/* ---------- Images + scrim ---------- */

.section__image {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream-deep);
}

.section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter:
    grayscale(1)
    contrast(var(--photo-contrast, 1.0))
    brightness(var(--photo-brightness, 1.0));
  opacity: var(--photo-opacity, 0.92);
  transition: opacity 0.4s ease;
}

.section__image .scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* light cream wash, just enough to harmonize with the page */
  background:
    radial-gradient(ellipse at center, rgba(244, 237, 225, 0.05) 0%, rgba(244, 237, 225, 0.18) 80%),
    linear-gradient(180deg, rgba(30, 58, 140, 0.02), rgba(30, 58, 140, 0.05));
}

/* Photo tint overlay — defaults are invisible so the live site is unchanged.
   Variant pages override --photo-tint and --photo-tint-opacity to enable. */
.section__image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--photo-tint, transparent);
  mix-blend-mode: var(--photo-tint-mode, multiply);
  opacity: var(--photo-tint-opacity, 0);
}

/* About section: image is on the left, text on the right */
.section--about .section__image { order: 1; }
.section--about .section__text  { order: 2; }

/* ---------- Hero shapes (dialed back) ---------- */

.shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  display: block;
  opacity: 0.5;
  overflow: hidden;
}

.shape::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.45' numOctaves='2' stitchTiles='stitch' seed='5'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/></svg>");
  background-size: 320px 320px;
  mix-blend-mode: overlay;
  opacity: 0.85;
}

.shape::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.012 0.6' numOctaves='3' stitchTiles='stitch' seed='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
  background-size: 600px 600px;
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.shape-1 {
  --rot-base: -22deg;
  width: 140px;
  height: 70px;
  background: var(--orange);
  top: 6%;
  left: 42%;
  transform: translateY(var(--ty, 0px)) rotate(var(--rot-base)) rotate(var(--rot-drift, 0deg));
}

.shape-2 {
  --rot-base: 18deg;
  width: 28px;
  height: 180px;
  background: transparent;
  border: 3px solid var(--navy);
  top: 10%;
  left: 2%;
  transform: translateY(var(--ty, 0px)) rotate(var(--rot-base)) rotate(var(--rot-drift, 0deg));
}

.shape-3 {
  --rot-base: 12deg;
  width: 110px;
  height: 56px;
  background: var(--orange);
  bottom: 8%;
  left: 36%;
  transform: translateY(var(--ty, 0px)) rotate(var(--rot-base)) rotate(var(--rot-drift, 0deg));
}

.shape-4 {
  --rot-base: -16deg;
  width: 120px;
  height: 60px;
  background: var(--orange);
  top: 14%;
  right: 8%;
  transform: translateY(var(--ty, 0px)) rotate(var(--rot-base)) rotate(var(--rot-drift, 0deg));
}

.shape-5 {
  --rot-base: 12deg;
  width: 26px;
  height: 170px;
  background: transparent;
  border: 3px solid var(--navy);
  top: 18%;
  right: 26%;
  transform: translateY(var(--ty, 0px)) rotate(var(--rot-base)) rotate(var(--rot-drift, 0deg));
}

/* Outlined navy shapes have transparent interiors — skip the paper texture
   overlays since there's nothing for the blend modes to tint. */
.shape-2::before, .shape-2::after,
.shape-5::before, .shape-5::after {
  content: none;
}

.shape-6 {
  --rot-base: 22deg;
  width: 95px;
  height: 46px;
  background: var(--orange);
  bottom: 16%;
  right: 14%;
  transform: translateY(var(--ty, 0px)) rotate(var(--rot-base)) rotate(var(--rot-drift, 0deg));
}

.section--cta {
  min-height: clamp(22rem, 38vh, 32rem);
}

.section--cta .eyebrow,
.section--cta .display,
.section--cta .cta-email {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .shape { --ty: 0px !important; --rot-drift: 0deg !important; }
}

.section--hero .section__text,
.section--hero .section__image {
  position: relative;
  z-index: 1;
}

/* ---------- CTA ---------- */

.cta-email {
  display: inline-block;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  color: var(--orange);
  border-bottom: 1px solid var(--orange);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cta-email:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.footer__mark { color: var(--navy); display: block; }
.footer__mark svg { width: 32px; height: auto; display: block; }
.footer__copy { font-family: "Inter", sans-serif; }

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

@media (max-width: 820px) {
  .section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .section--about .section__image { order: 2; }
  .section--about .section__text  { order: 1; }
  .section__image { aspect-ratio: 4 / 3; }
  .display { max-width: 20ch; }
}

@media (max-width: 480px) {
  .brand__wordmark { display: none; }
}
