/* Nouriye · site styles · v2026-10-23, rev. v2 (photography, About page)
   Wordmark A: Amiri (Arabic) + Cormorant Garamond (Latin display) + EB Garamond (Latin text).
   All fonts self-hosted (SIL Open Font License, see /assets/fonts/OFL-*.txt). */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Amiri";
  src: url("/assets/fonts/amiri-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC, U+00AB, U+00BB;
}
@font-face {
  font-family: "Amiri";
  src: url("/assets/fonts/amiri-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC, U+00AB, U+00BB;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/eb-garamond-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/eb-garamond-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/eb-garamond-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #23392B;        /* forest green */
  --ground: #F3EDE2;     /* parchment */
  --ground-2: #EAE1D1;   /* deeper parchment */
  --paper: #FBF8F2;      /* cards, inputs */
  --accent: #85591A;     /* tea amber, 5.2:1 on ground */
  --muted: #4A5A4F;      /* 6.3:1 on ground */
  --gold: #D9B57A;       /* accent on ink, 6.4:1 */
  --rule: rgba(35, 57, 43, 0.18);
  --rule-light: rgba(243, 237, 226, 0.28);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --measure: 38rem;
  --wide: 70rem;
  --section: clamp(3.5rem, 2rem + 6vw, 7rem);

  --latin-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --latin-text: "EB Garamond", "Amiri", Georgia, "Times New Roman", serif;
  --arabic: "Amiri", "EB Garamond", "Geeza Pro", "Times New Roman", serif;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--latin-text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body {
  font-family: var(--arabic);
  font-size: 1.25rem;
  line-height: 1.9;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--latin-display); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--arabic); font-weight: 700; line-height: 1.5; }
p { margin: 0 0 1em; text-wrap: pretty; }
.nowrap { white-space: nowrap; }
p:last-child { margin-bottom: 0; }

[lang="ar"] { letter-spacing: 0 !important; } /* never letter-space Arabic */
bdi { unicode-bidi: isolate; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--ground); padding: 0.6rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden, .hp-field {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.center { margin-inline: auto; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}
.lockup {
  display: inline-flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--ink); min-height: 44px;
}
.lockup__lat {
  font-family: var(--latin-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.22em; padding-left: 0.22em; text-transform: uppercase;
}
.lockup__bar { width: 1px; height: 1.4rem; background: var(--ink); opacity: 0.6; }
.lockup__ar { font-family: var(--arabic); font-weight: 700; font-size: 1.45rem; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 0 1.25rem; }
.site-nav a:not(.lang-switch) {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.25rem;
  font-size: 1.05rem; text-decoration: none; border-bottom: 1px solid transparent;
}
.site-nav a:not(.lang-switch):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }
html[lang="ar"] .site-nav a:not(.lang-switch) { font-size: 1.2rem; }
@media (max-width: 23.5rem) {
  .site-nav { gap: 0 0.5rem; }
  .lockup { gap: 0.5rem; }
  .lockup__lat { letter-spacing: 0.16em; padding-left: 0.16em; }
}
.lang-switch {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.5rem;
  font-size: 1.05rem; text-decoration: none; border-bottom: 1px solid transparent;
}
.lang-switch:hover { border-bottom-color: var(--accent); }
.lang-switch[lang="ar"] { font-family: var(--arabic); font-size: 1.2rem; }
.lang-switch[lang="en"] { font-family: var(--latin-text); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 1.5rem + 7vw, 7.5rem) clamp(3rem, 2rem + 4vw, 5.5rem); text-align: center; }
.eyebrow {
  margin: 0 0 1.75rem;
  font-family: var(--latin-text); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
html[lang="ar"] .eyebrow { font-family: var(--arabic); font-weight: 700; font-size: 1.1rem; text-transform: none; }

.mark { display: flex; flex-direction: column; align-items: center; margin: 0 0 2.25rem; }
.mark__ar {
  font-family: var(--arabic); font-weight: 700;
  font-size: clamp(4.25rem, 2.5rem + 9vw, 8.5rem); line-height: 1.3;
}
.mark__lat {
  font-family: var(--latin-display); font-weight: 600;
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 3.2rem); line-height: 1.1;
  letter-spacing: 0.2em; padding-left: 0.2em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.4rem);
  max-width: 22ch; margin: 0 auto 1.25rem;
}
html[lang="ar"] .hero h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); max-width: 24ch; }
.lead { max-width: 34rem; margin: 0 auto 2.25rem; font-size: 1.2rem; color: var(--muted); }
html[lang="ar"] .lead { font-size: 1.35rem; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.65rem 1.5rem;
  border: 1px solid var(--ink); border-radius: 2px;
  font: inherit; font-weight: 600; font-size: 1.05rem; letter-spacing: 0.03em;
  color: var(--ink); background: transparent; text-decoration: none; cursor: pointer;
}
html[lang="ar"] .btn { font-weight: 700; font-size: 1.15rem; letter-spacing: 0; }
.btn:hover { color: var(--ground); background: var(--ink); }
.btn--primary { background: var(--ink); color: var(--ground); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); border-top: 1px solid var(--rule); }
.section--alt { background: var(--ground-2); }
.section__title {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  margin-bottom: 1.5rem;
}
.section__title::before {
  content: ""; display: block; width: 2.5rem; height: 2px; background: var(--accent);
  margin-bottom: 1.25rem;
}
.center .section__title::before { margin-inline: auto; }
html[lang="ar"] .section__title { font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.6rem); }
.intro { color: var(--muted); font-size: 1.2rem; margin-bottom: 2.5rem; }
html[lang="ar"] .intro { font-size: 1.3rem; }

/* Story (home teaser) */
.story { max-width: var(--measure); }
.more { margin-top: 1.75rem; }
.more a { font-weight: 600; color: var(--accent); text-decoration-thickness: 1px; }
.more a:hover { color: var(--ink); }
html[lang="ar"] .more a { font-weight: 700; }
.story p { font-size: 1.2rem; }
html[lang="ar"] .story p { font-size: 1.35rem; }
.signature {
  margin-top: 2rem; font-family: var(--latin-display); font-style: italic; font-weight: 500;
  font-size: 1.45rem; color: var(--accent);
}
html[lang="ar"] .signature { font-family: var(--arabic); font-style: normal; font-weight: 700; font-size: 1.4rem; }

/* ---------- Photography ----------
   Plates run full-bleed with a caption under them, like plates in a book.
   Every caption says where and when the photograph was taken. */
.figure { margin: 0; }
.figure img, .plate img { width: 100%; height: auto; background: var(--ground-2); }
figcaption {
  margin-top: 0.65rem; font-style: italic; font-size: 0.98rem; line-height: 1.45; color: var(--muted);
}
html[lang="ar"] figcaption { font-style: normal; font-size: 1.05rem; }

.plate { margin: 0; border-top: 1px solid var(--rule); }
.plate img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 48rem) { .plate img { aspect-ratio: 2.2; max-height: 82vh; } }
.plate figcaption { margin-top: 0; padding-block: 0.8rem 1.1rem; }
.plate + .section { border-top: 0; }
.plate--ink { background: var(--ink); border-top: 0; }
.plate--ink figcaption { color: var(--ground); opacity: 0.85; }


.strip { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 47.99rem) {
  .strip {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    padding-bottom: 0.5rem; scrollbar-width: thin;
  }
  .strip .figure { scroll-snap-align: start; }
}
.strip:focus-visible { outline-offset: 6px; }
.strip-note { margin: 0.25rem 0 3rem; font-size: 0.98rem; color: var(--muted); }

.formats { display: grid; gap: 1.25rem; margin-top: 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.formats .note { grid-column: 1 / -1; margin: 0; }
.formats img { aspect-ratio: 1; object-fit: cover; }
@media (min-width: 56rem) {
  .formats { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap: 1.5rem; align-items: end; }
  .formats .note { grid-column: auto; align-self: center; padding-inline-end: 1.5rem; }
}

/* Our Standard */
.standard { list-style: none; margin: 0; padding: 0; counter-reset: pillar; max-width: 52rem; }
.standard li {
  counter-increment: pillar;
  display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 0 1rem;
  padding-block: 1.5rem; border-top: 1px solid var(--rule);
}
.standard li:last-child { border-bottom: 1px solid var(--rule); }
.standard li::before {
  content: counter(pillar, decimal-leading-zero);
  font-family: var(--latin-display); font-weight: 600; font-size: 1.9rem; line-height: 1.1;
  color: var(--accent);
}
.standard h3 { font-family: var(--latin-text); font-size: 1.25rem; margin-bottom: 0.35rem; }
html[lang="ar"] .standard h3 { font-size: 1.35rem; }
.standard p { color: var(--ink); }

/* Selection */
.teas { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .teas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tea {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
  padding: 1.75rem 1.5rem; display: flex; flex-direction: column;
}
.tea__name {
  font-family: var(--latin-display); font-size: clamp(1.75rem, 1.45rem + 0.7vw, 2.05rem); line-height: 1.15; margin-bottom: 0.75rem;
}
.tea__ar { font-family: var(--arabic); font-weight: 700; font-size: 2rem; color: var(--accent); }
.tea__lat { font-family: var(--latin-display); font-weight: 600; font-size: 1.8rem; color: var(--accent); }
html[lang="ar"] .tea__name { font-family: var(--arabic); font-size: clamp(1.45rem, 1.3rem + 0.5vw, 1.7rem); line-height: 1.6; }
.tea__gloss { font-style: italic; color: var(--muted); margin-bottom: 1rem; }
.tea__kind { font-weight: 600; margin-bottom: 0.35rem; }
html[lang="ar"] .tea__kind { font-weight: 700; }
.tea__desc { color: var(--muted); }
.tea__facts { margin: 1.25rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.tea__facts div + div { margin-top: 0.85rem; }
.tea__facts dt {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
html[lang="ar"] .tea__facts dt { font-size: 1rem; font-weight: 700; text-transform: none; }
.tea__facts dd { margin: 0.15rem 0 0; }
.note { margin-top: 2rem; color: var(--muted); max-width: 46rem; }
.formats .note { font-size: 1.2rem; }
html[lang="ar"] .formats .note { font-size: 1.3rem; }

/* Audiences */
.audiences { display: grid; gap: 2rem 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .audiences { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.audience h3 { font-family: var(--latin-display); font-size: 1.7rem; margin-bottom: 0.6rem; }
html[lang="ar"] .audience h3 { font-family: var(--arabic); font-size: 1.5rem; }

/* Tasting (dark) */
.section--ink { background: var(--ink); color: var(--ground); border-top: 0; }
.section--ink a { color: var(--ground); }
.section--ink a:hover { color: var(--gold); }
.section--ink .section__title::before { background: var(--gold); }
.section--ink .intro { color: var(--ground); opacity: 0.92; }
.section--ink :focus-visible { outline-color: var(--gold); }
.tasting { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .tasting { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }

.in-person { margin-top: 2.5rem; max-width: 30rem; }
.in-person h3 { margin-bottom: 0.75rem; font-family: var(--latin-text); font-size: 1.15rem; color: var(--gold); }
html[lang="ar"] .in-person h3 { font-family: var(--arabic); font-size: 1.3rem; }
.in-person ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-light); }
.in-person li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.15rem 1.5rem;
  padding-block: 0.75rem; border-bottom: 1px solid var(--rule-light);
}
.in-person .when { opacity: 0.85; }

.form { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .full { grid-column: 1 / -1; }
}
.field label { display: block; margin-bottom: 0.35rem; font-weight: 600; font-size: 1rem; }
html[lang="ar"] .field label { font-weight: 700; font-size: 1.1rem; }
.optional { font-weight: 400; opacity: 0.85; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.6rem 0.8rem;
  font: inherit; font-size: 1rem; line-height: 1.4;
  color: var(--ink); background: var(--paper);
  border: 1px solid transparent; border-radius: 2px;
}
html[lang="ar"] .field input, html[lang="ar"] .field select, html[lang="ar"] .field textarea { font-size: 1.1rem; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.form .btn--light { background: var(--ground); color: var(--ink); border-color: var(--ground); justify-self: start; }
.form .btn--light:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.form-note { font-size: 0.95rem; opacity: 0.9; margin: 0; }

/* Contact */
.contact__line { font-family: var(--latin-display); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); margin-bottom: 1.25rem; }
html[lang="ar"] .contact__line { font-family: var(--arabic); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 2rem; }
.contact__list li { display: flex; align-items: center; min-height: 44px; }
.contact__list a { display: inline-flex; min-height: 44px; align-items: center; gap: 0.4em; }

/* Footer */
.site-footer {
  padding-block: 2.5rem 6rem; border-top: 1px solid var(--rule);
  font-size: 0.95rem; color: var(--muted); text-align: center;
}
.site-footer p { margin: 0 0 0.5rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; }
.footer-links a, .footer-links span { color: var(--muted); display: inline-flex; min-height: 44px; align-items: center; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; inset-inline-end: 1rem; inset-block-end: 1rem; z-index: 20;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px; padding: 0.6rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: var(--ground); text-decoration: none;
  font-weight: 600; box-shadow: 0 6px 20px rgba(35, 57, 43, 0.28);
}
.wa-float:hover { background: var(--accent); color: var(--paper); }
.wa-float svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 47.99rem) {
  .wa-float { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .wa-float svg { width: 1.45rem; height: 1.45rem; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
html[lang="ar"] .wa-float { font-weight: 700; }

/* ---------- About ---------- */
.page-intro { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.page-intro h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.2rem); line-height: 1.08; max-width: 16ch; margin-bottom: 1.75rem;
}
html[lang="ar"] .page-intro h1 { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.6rem); line-height: 1.4; }
.standfirst { max-width: 40rem; margin-bottom: 1.25rem; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); line-height: 1.5; }
html[lang="ar"] .standfirst { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.8rem); line-height: 1.8; }
.intro-note { max-width: 40rem; color: var(--muted); font-style: italic; }
html[lang="ar"] .intro-note { font-style: normal; }

.about-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); padding-bottom: var(--section); }
.about-text p { font-size: 1.2rem; }
html[lang="ar"] .about-text p { font-size: 1.35rem; }
.about-figure img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 56rem) {
  .about-grid { grid-template-columns: minmax(0, var(--measure)) minmax(0, 22rem); justify-content: space-between; gap: 4.5rem; align-items: start; }
  .about-text { grid-column: 1; grid-row: 1; }
  .about-figure { grid-column: 2; grid-row: 1; position: sticky; top: 2rem; }
  .about-figure img { aspect-ratio: 2 / 3; }
}

.signoff-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
.signoff-figure { max-width: 20rem; }
.signoff-figure img { aspect-ratio: 4 / 5; object-fit: cover; }
.signoff .signature { margin: 0 0 2.75rem; }
.actions--start { justify-content: flex-start; }
@media (min-width: 48rem) {
  .signoff-grid { grid-template-columns: minmax(0, 20rem) minmax(0, 34rem); gap: 4.5rem; align-items: center; }
}

/* Simple pages (legal, thanks, 404) */
.page { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.page h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); margin-bottom: 1.5rem; }
.page h2 { font-family: var(--latin-text); font-size: 1.25rem; margin: 2.25rem 0 0.6rem; }
html[lang="ar"] .page h2 { font-family: var(--arabic); font-size: 1.35rem; }
.page address { font-style: normal; margin-bottom: 1em; }
.page .small { font-size: 0.95rem; color: var(--muted); }
.page hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

@media print {
  .wa-float, .skip-link, .plate { display: none; }
  .section--ink { background: none; color: var(--ink); }
}
