/* ============================================================
   Tarek Sharara — tareksharara.com
   Quiet editorial identity: paper, ink, one burgundy accent.
   Type is the hero: Cormorant Garamond (display) + Karla (body).
   ============================================================ */

:root {
  --paper: #F6F3ED;
  --paper-deep: #EFEBE2;
  --ink: #1C1B19;
  --burgundy: #7A2E2E;
  --burgundy-deep: #5E2222;
  --warm-gray: #8A8478;
  --hairline: rgba(28, 27, 25, 0.16);
  --hairline-soft: rgba(28, 27, 25, 0.09);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --site-max: 72rem;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1.15rem;
  max-width: var(--measure);
}

a {
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(122, 46, 46, 0.45);
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

a:hover {
  color: var(--burgundy-deep);
  text-decoration-color: var(--burgundy-deep);
}

::selection {
  background: var(--burgundy);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 20;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* ---------- shared devices ---------- */

.wrap {
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The thin burgundy rule — the site's recurring mark. */
.rule {
  display: block;
  width: 3.5rem;
  height: 2px;
  background: var(--burgundy);
  border: 0;
  margin: 0 0 1.1rem;
}

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin: 0 0 1rem;
}

.accent {
  color: var(--burgundy);
}

.muted {
  color: var(--warm-gray);
}

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

.site-header {
  border-bottom: 1px solid var(--hairline-soft);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.4rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark .accent {
  transition: color 140ms ease;
}

.wordmark:hover .accent {
  color: var(--burgundy-deep);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.6rem;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--burgundy);
}

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

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 9vw, 7rem);
}

.hero-mark {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-52%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16rem, 38vw, 34rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.045;
  user-select: none;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 46rem;
}

.hero h1 {
  font-size: clamp(3.4rem, 9.5vw, 7.25rem);
  font-weight: 500;
  line-height: 0.98;
  margin: 0 0 1.6rem;
}

.hero .lede {
  font-size: clamp(1.12rem, 1.8vw, 1.3rem);
  line-height: 1.66;
  max-width: 36em;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.fade-in {
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-in.delay-1 { animation-delay: 90ms; }
.fade-in.delay-2 { animation-delay: 180ms; }
.fade-in.delay-3 { animation-delay: 270ms; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 1rem 2rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--paper);
}

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

.btn-ghost:hover {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.text-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--burgundy);
  padding-bottom: 0.25rem;
}

.text-link:hover {
  color: var(--burgundy);
}

/* ---------- sections (asymmetric label / body grid) ---------- */

.section {
  border-top: 1px solid var(--hairline-soft);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr);
  gap: 2rem clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.section-label .eyebrow {
  margin-bottom: 0;
}

.section h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  margin-bottom: 1.4rem;
}

.section h3 {
  font-size: 1.6rem;
  margin: 2.4rem 0 0.6rem;
}

.section h3:first-child {
  margin-top: 0;
}

/* ---------- topics list ---------- */

.topics {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topics li {
  border-top: 1px solid var(--hairline);
  padding: 1.6rem 0 1.7rem;
}

.topics li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.topics h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 500;
  margin: 0 0 0.45rem;
}

.topics h3 .accent {
  font-style: italic;
}

.topics p {
  margin: 0;
  color: var(--ink);
  max-width: 56ch;
}

/* ---------- offer / definition blocks (speaking page) ---------- */

.offer {
  border-top: 1px solid var(--hairline);
  padding: 1.8rem 0;
}

.offer:last-of-type {
  border-bottom: 1px solid var(--hairline);
}

.offer h3 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
}

.offer p {
  margin-bottom: 0;
}

.offer p + p {
  margin-top: 0.9rem;
}

/* ---------- belief list ---------- */

.beliefs {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 58ch;
}

.beliefs li {
  position: relative;
  padding: 0 0 0 2.4rem;
  margin-bottom: 1.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.35;
}

.beliefs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 1.4rem;
  height: 2px;
  background: var(--burgundy);
}

/* ---------- essays (writing page) ---------- */

.essay {
  border-top: 1px solid var(--hairline);
  padding: clamp(2.2rem, 5vw, 3.5rem) 0;
}

.essay:last-of-type {
  border-bottom: 1px solid var(--hairline);
}

.essay .eyebrow {
  margin-bottom: 0.6rem;
}

.essay h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 1.3rem;
}

.essay-body p {
  max-width: 58ch;
}

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

.essay-body > p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3.3em;
  line-height: 0.78;
  float: left;
  padding: 0.08em 0.12em 0 0;
  color: var(--burgundy);
}

/* ---------- forms ---------- */

.form-grid {
  display: grid;
  gap: 1.6rem;
  max-width: 40rem;
}

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: #FCFAF6;
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 0.85rem 1rem;
  transition: border-color 140ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 9.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 1px 0 0 var(--burgundy);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C1B19' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}

.fine-print {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--warm-gray);
  max-width: 46em;
}

.contact-aside p {
  max-width: 30em;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 500;
}

/* ---------- closing CTA band ---------- */

.cta-band {
  border-top: 1px solid var(--hairline-soft);
  background: var(--paper-deep);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.cta-band h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  max-width: 14em;
  margin-bottom: 1.2rem;
}

.cta-band p {
  margin-bottom: 2rem;
}

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

.site-footer {
  border-top: 1px solid var(--hairline-soft);
  padding-block: 2.6rem 3rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem 2.5rem;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.footer-nav a:hover {
  color: var(--burgundy);
}

.footer-meta {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline-soft);
  color: var(--warm-gray);
  font-size: 0.82rem;
}

.footer-meta a {
  color: var(--warm-gray);
}

.footer-meta a:hover {
  color: var(--burgundy);
}

/* ---------- utility pages (404 / thanks) ---------- */

.statement-page {
  padding-block: clamp(5rem, 14vw, 10rem);
}

.statement-page h1 {
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 0.95;
  margin-bottom: 1.4rem;
}

.statement-page .lede {
  font-size: 1.15rem;
  margin-bottom: 2.4rem;
}

/* ---------- legal pages ---------- */

.legal h2 {
  font-size: 1.9rem;
  margin: 2.6rem 0 0.8rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal ul {
  max-width: var(--measure);
  padding-left: 1.2rem;
  margin: 0 0 1.15rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal-updated {
  color: var(--warm-gray);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

@media (max-width: 760px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .hero-mark {
    font-size: 15rem;
    right: -2rem;
    top: auto;
    bottom: -4rem;
    transform: none;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .fade-in {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
