/* ============================================================
   Turkish Escorts — A Companion Journal
   Editorial / printed-magazine aesthetic
   ============================================================ */

:root {
  --paper: #f5f0e8;
  --paper-deep: #efe8dc;
  --ink: #1a1a1a;
  --ink-soft: #4a453e;
  --oxblood: #8c2f39;
  --hairline: rgba(26, 26, 26, 0.28);
  --hairline-light: rgba(26, 26, 26, 0.14);
  --measure: 68ch;
  --display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper texture — pure CSS, no images */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(140, 47, 57, 0.025), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(26, 26, 26, 0.03), transparent 55%);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2.5rem) clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Rules ---------- */

.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.rule--double {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  height: 4px;
  background: transparent;
}

.rule--light {
  border-top: 1px solid var(--hairline-light);
  margin: clamp(1.25rem, 3vw, 1.75rem) 0;
}

/* ---------- Type utilities ---------- */

.kicker {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-variant-caps: small-caps;
  color: var(--oxblood);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 1.25rem;
  letter-spacing: 0.01em;
}

.section-lede {
  font-style: italic;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 2rem;
}

.text-link {
  color: var(--oxblood);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.text-link:hover {
  border-bottom-color: var(--oxblood);
}

.text-link:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
}

/* ---------- Masthead ---------- */

.masthead {
  text-align: center;
}

.masthead .rule {
  margin: 0.6rem 0;
}

.masthead__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0.25rem;
}

.masthead__edition {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.masthead__edition:last-child {
  text-align: right;
}

.masthead__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0;
  flex: 2 1 auto;
}

.masthead__tagline {
  font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--ink-soft);
  margin: 0.4rem 0 0.9rem;
  letter-spacing: 0.04em;
}

.masthead__dateline {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 2.2rem;
  padding: 0.15rem 0;
}

.nav__link {
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-variant-caps: small-caps;
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav__link:hover {
  color: var(--oxblood);
  border-bottom-color: var(--oxblood);
}

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

/* ---------- Cover ---------- */

.cover {
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.cover__headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.06;
  margin: 0.5rem auto 1.5rem;
  max-width: 20ch;
}

.cover__standfirst {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.65;
  max-width: 60ch;
  margin: 0 auto 1.75rem;
  text-align: left;
}

.dropcap {
  float: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 3.6em;
  line-height: 0.78;
  padding: 0.06em 0.12em 0 0;
  color: var(--oxblood);
}

.cover__cta {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-caps: small-caps;
}

/* ---------- City index ---------- */

.city__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.city__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0;
}

.city--featured .city__name {
  font-size: clamp(2rem, 5vw, 2.9rem);
}

.city__meta {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0;
  white-space: nowrap;
}

.city__intro {
  max-width: var(--measure);
  margin: 0.9rem 0 0.6rem;
}

.city__line {
  font-style: italic;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0.4rem 0 0;
}

.city__cta {
  margin: 0.5rem 0 0;
}

/* ---------- Profiles ---------- */

.profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: profile;
}

.profile {
  counter-increment: profile;
  position: relative;
  display: flex;
  gap: clamp(1.25rem, 4vw, 2.25rem);
  align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 2.25rem) 0;
  border-top: 1px solid var(--hairline-light);
}

.profile:first-child {
  border-top: 0;
  padding-top: 0.5rem;
}

.profile::before {
  content: "№ " counter(profile, decimal-leading-zero);
  position: absolute;
  top: clamp(1.5rem, 4vw, 2.25rem);
  right: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

/* Medallion — CSS portrait in an arch shape */
.medallion {
  flex: 0 0 auto;
  width: clamp(84px, 14vw, 120px);
  height: clamp(110px, 18vw, 156px);
  border-radius: 999px 999px 6px 6px; /* arch */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--paper);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--hairline-light);
}

.medallion--1 { background: linear-gradient(160deg, #a0522d 0%, #8c2f39 70%, #6e242d 100%); }
.medallion--2 { background: linear-gradient(160deg, #b08d57 0%, #8c6a3f 60%, #5f4a2c 100%); }
.medallion--3 { background: linear-gradient(160deg, #7d5a50 0%, #5d4037 65%, #3e2a23 100%); }
.medallion--4 { background: linear-gradient(160deg, #9c6644 0%, #7f4f24 60%, #5a3a1e 100%); }
.medallion--5 { background: linear-gradient(160deg, #a44a3f 0%, #8c2f39 55%, #4f1a20 100%); }
.medallion--6 { background: linear-gradient(160deg, #8a817c 0%, #6b6055 60%, #453d34 100%); }
.medallion--7 { background: linear-gradient(160deg, #96604a 0%, #77452f 60%, #4e2c1d 100%); }
.medallion--8 { background: linear-gradient(160deg, #b5651d 0%, #8c4a1a 60%, #5c3012 100%); }
.medallion--9 { background: linear-gradient(160deg, #5e503f 0%, #3f372e 60%, #262019 100%); }

.profile__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  margin: 0;
  line-height: 1.15;
}

.profile__age {
  font-size: 0.65em;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  margin-left: 0.35rem;
}

.profile__district {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-variant-caps: small-caps;
  color: var(--oxblood);
  margin: 0.3rem 0 0.7rem;
}

.profile__desc {
  max-width: var(--measure);
  margin: 0 0 0.7rem;
}

.profile__cta {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-caps: small-caps;
}

/* ---------- Journal essays ---------- */

.essay__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.35rem;
  max-width: 34ch;
}

.essay__excerpt {
  font-style: italic;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 0.5rem;
}

.essay__cta {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-caps: small-caps;
}

/* ---------- Etiquette ---------- */

.etiquette__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.etiquette__list li {
  padding: 0.85rem 0 0.85rem 1.6rem;
  border-top: 1px solid var(--hairline-light);
  position: relative;
}

.etiquette__list li:first-child {
  border-top: 0;
}

.etiquette__list li::before {
  content: "—";
  position: absolute;
  left: 0.2rem;
  color: var(--oxblood);
}

.etiquette__list strong {
  font-variant-caps: small-caps;
  letter-spacing: 0.08em;
}

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

.colophon {
  text-align: center;
  margin-top: clamp(2rem, 6vw, 4rem);
}

.colophon__brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  margin: 1.5rem 0 0.5rem;
}

.colophon__line {
  font-style: italic;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto 1.25rem;
}

.colophon__notice,
.colophon__disclaimer {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 auto 0.9rem;
}

.colophon__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.8rem;
  margin: 1.4rem 0 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant-caps: small-caps;
}

.colophon__fine {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}

/* ---------- Age gate ---------- */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: auto;
}

.age-gate[hidden] {
  display: none;
}

.age-gate__panel {
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.age-gate__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-variant-caps: small-caps;
  color: var(--oxblood);
  margin: 0 0 0.9rem;
}

.age-gate__panel .rule {
  margin: 0.9rem 0;
}

.age-gate__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 5.5vw, 2.3rem);
  line-height: 1.15;
  margin: 0.4rem 0 0.9rem;
}

.age-gate__text {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.btn {
  font-family: var(--body);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-variant-caps: small-caps;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn--solid {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--paper);
}

.btn--solid:hover {
  background: #6e242d;
  border-color: #6e242d;
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

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

.age-gate__blocked {
  color: var(--oxblood);
  font-weight: 500;
  margin: 1.2rem 0 0;
}

.age-gate__fine {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

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

@media (max-width: 640px) {
  .masthead__row {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .masthead__edition:last-child {
    text-align: center;
  }

  .profile {
    flex-direction: column;
    gap: 1rem;
  }

  .profile::before {
    position: static;
    order: -1;
    align-self: flex-end;
  }

  .medallion {
    align-self: center;
  }
}

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

  .text-link,
  .nav__link,
  .btn {
    transition: none;
  }
}
