/**
 * Base layer: reset, typography, layout primitives, shared components.
 * Written entirely with logical properties, so RTL needs no separate stylesheet.
 */

*,*::before,*::after{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  /* The header is sticky, so anything scrolled to by an in-page link or by
     the browser following keyboard focus lands underneath it. WCAG 2.2 makes
     that a failure at AA (2.4.11 Focus Not Obscured). One line fixes both. */
  scroll-padding-block-start:var(--eg-header-clear);
}
body{
  margin:0;
  background:var(--eg-paper);
  color:var(--eg-ink);
  font-family:var(--eg-ui);
  font-weight:200;              /* lighter default reads more refined at this size */
  font-size:var(--eg-s-0);
  line-height:1.72;
  letter-spacing:.005em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  font-kerning:normal;
  font-variant-ligatures:common-ligatures;
}
img,svg,video{display:block; max-width:100%; height:auto}
a{color:inherit; text-decoration:none}
p{margin:0}
h1,h2,h3,h4,h5,h6{margin:0; font-weight:400; text-wrap:balance}
button{font:inherit; cursor:pointer}
:focus-visible{outline:2px solid var(--eg-teal); outline-offset:3px; border-radius:2px}
::selection{background:var(--eg-mist); color:var(--eg-ink)}

.eg-wrap{max-width:var(--eg-wrap); margin-inline:auto; padding-inline:var(--eg-space-4)}
.eg-measure{max-width:var(--eg-measure)}
.eg-sr{position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap}
.eg-skip{position:absolute; inset-inline-start:-9999px}
.eg-skip:focus{inset-inline-start:var(--eg-space-4); inset-block-start:var(--eg-space-4); z-index:200; background:var(--eg-card); padding:10px 16px; border:1px solid var(--eg-teal)}

/* ---- type roles ---- */
.eg-display{font-family:var(--eg-display); letter-spacing:.24em; text-transform:uppercase}
.eg-serif{font-family:var(--eg-serif)}
.eg-kick{font-family:var(--eg-mono); font-size:var(--eg-s--2); letter-spacing:.28em; text-transform:uppercase; color:var(--eg-ink-3)}
.eg-lede{text-wrap:pretty}

/* A hairline that draws in from the leading edge. Used on every quiet link. */
.eg-underline{
  background-image:linear-gradient(currentColor,currentColor);
  background-size:0% var(--eg-hair);
  background-position:0 100%;
  background-repeat:no-repeat;
  transition:background-size var(--eg-t) var(--eg-ease-out);
  padding-block-end:2px;
}
a:hover > .eg-underline, .eg-underline:hover{background-size:100% var(--eg-hair)}
.eg-kick--t{color:var(--eg-teal-ink)}
.eg-mono{font-family:var(--eg-mono); font-variant-numeric:tabular-nums}
.eg-small{font-size:var(--eg-s--1); color:var(--eg-ink-2); line-height:1.72}
.eg-lede{font-size:var(--eg-s-0); color:var(--eg-ink-2); line-height:1.85}

.eg-h1{font-family:var(--eg-serif); font-size:clamp(2.4rem,5.4vw,var(--eg-s-5)); line-height:.98; letter-spacing:-.018em}
.eg-h2{font-family:var(--eg-serif); font-size:clamp(1.8rem,3.6vw,var(--eg-s-3)); line-height:1.06; letter-spacing:-.014em}
.eg-h3{font-family:var(--eg-serif); font-size:var(--eg-s-1); line-height:1.2; letter-spacing:-.008em}
.eg-h1 em,.eg-h2 em{font-style:italic; color:var(--eg-teal-ink)}

/* ---- buttons ---- */
.eg-btn{
  position:relative; display:inline-block; overflow:hidden;
  border:1px solid var(--eg-teal); background:var(--eg-teal); color:var(--eg-white);
  padding:14px 32px; border-radius:2px;
  font-family:var(--eg-mono); font-size:var(--eg-s--2);
  letter-spacing:.22em; text-transform:uppercase; text-align:center;
  transition:background var(--eg-t) var(--eg-ease), border-color var(--eg-t) var(--eg-ease), color var(--eg-t) var(--eg-ease);
}
.eg-btn:hover{background:var(--eg-teal-deep); border-color:var(--eg-teal-deep)}
.eg-btn--ghost{background:transparent; color:var(--eg-ink); border-color:var(--eg-ink)}
.eg-btn--ghost:hover{background:var(--eg-ink); color:var(--eg-paper)}

/* ---- header ---- */
.eg-band{
  background:var(--eg-teal-deep); color:#DCEAEA; text-align:center;
  padding:8px 14px; font-family:var(--eg-mono); font-size:var(--eg-s--2);
  letter-spacing:.18em; text-transform:uppercase;
}
.eg-header{position:sticky; inset-block-start:0; z-index:60; background:rgba(247,245,239,.94); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-block-end:1px solid var(--eg-rule)}

/*
 * Brand, navigation and the small utilities on one line, each on one line.
 *
 * Every label wrapped: "ABOUT / US", "ONLINE / STORE", "BAG / (0)", and the
 * brand name broke over two lines, because six tracked uppercase items, three
 * pills and the name were squeezed into 1220px. Labels are now shorter (see the
 * menu), set smaller with less tracking, and never wrap; the navigation sits
 * in the centre column; and the header hands over to the menu button before
 * the row can crowd again.
 */
.eg-header__in{display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:var(--eg-space-4); min-block-size:76px; padding-block:10px}
.eg-brand{display:inline-flex; align-items:center; gap:14px; justify-self:start; white-space:nowrap}
.eg-brand__mark{display:block; block-size:40px; inline-size:auto; flex:none}
.eg-brand__name{font-family:"Italiana", "EB Garamond", serif; font-size:1.12rem; letter-spacing:.3em; text-transform:uppercase; color:var(--eg-ink); line-height:1}
/* The name is the wordmark, in Latin on both sites: the brand face and its tracking stay on /ar/. */
:root:lang(ar) .eg-brand__name{letter-spacing:.3em!important}

.eg-nav{justify-self:center}
.eg-nav ul{display:flex; gap:clamp(22px,2.6vw,40px); list-style:none; margin:0; padding:0}
.eg-nav a{
  /* 24px minimum target, WCAG 2.2 AA 2.5.8; the extra height sits above the
     text so the underline stays close to it. */
  position:relative; display:inline-flex; align-items:flex-end; white-space:nowrap;
  min-block-size:28px; padding-block-end:6px;
  font-size:.72rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--eg-ink-2); transition:color var(--eg-t-fast) var(--eg-ease);
}
.eg-nav a::after{
  content:""; position:absolute; inset-inline:0; inset-block-end:0; margin-inline:auto;
  inline-size:0; block-size:var(--eg-hair); background:var(--eg-teal);
  transition:inline-size var(--eg-t) var(--eg-ease-out);
}
.eg-nav a:hover{color:var(--eg-ink)}
.eg-nav a:hover::after, .eg-nav :is(.current-menu-item, .current_page_item, .current-page-ancestor, .current-menu-parent) > a::after{inline-size:100%}
.eg-nav :is(.current-menu-item, .current_page_item, .current-page-ancestor, .current-menu-parent) > a{color:var(--eg-ink)}

.eg-util{display:flex; align-items:center; justify-content:flex-end; gap:clamp(14px,1.8vw,26px); justify-self:end; white-space:nowrap}
.eg-util__link{font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--eg-ink-2); min-block-size:28px; display:inline-flex; align-items:center; transition:color var(--eg-t-fast) var(--eg-ease)}
.eg-util__link:hover{color:var(--eg-teal-ink)}
.eg-util__link.eg-pill--lang{font-family:var(--eg-ui); letter-spacing:.02em; text-transform:none; font-size:.8rem; unicode-bidi:isolate}
.eg-util__bag{
  display:inline-flex; align-items:center; gap:9px; min-block-size:36px; padding:4px 5px 4px 14px;
  border:1px solid var(--eg-rule-2); border-radius:999px;
  font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--eg-ink);
  transition:border-color var(--eg-t-fast) var(--eg-ease);
}
[dir="rtl"] .eg-util__bag{padding:4px 14px 4px 5px}
.eg-util__bag:hover{border-color:var(--eg-teal)}
.eg-util__count{
  display:inline-grid; place-items:center; min-inline-size:26px; block-size:26px; padding-inline:6px; border-radius:999px;
  background:var(--eg-teal-deep); color:var(--eg-paper); font-family:var(--eg-mono); font-size:.7rem; letter-spacing:0;
}

/* The row stops fitting before 1180px; the menu button takes over there. */
@media (max-width:1180px){
  .eg-nav{display:none}
  .eg-header__in{grid-template-columns:auto 1fr auto}
  .eg-menu{justify-self:end}
}

/* ---- mobile menu ----
   A native <details> disclosure: no JavaScript, correct expanded state
   announced for free, and keyboard operation that cannot drift out of sync
   with the visual state the way a hand-rolled button and panel can. */
.eg-menu{display:none}
.eg-burger{
  display:flex; align-items:center; gap:9px; cursor:pointer;
  list-style:none; padding:8px 12px 8px 10px;
  border:1px solid var(--eg-rule-2); border-radius:999px;
  font-family:var(--eg-ui); font-size:var(--eg-s--2); letter-spacing:.12em;
  text-transform:uppercase; color:var(--eg-ink-2);
  min-block-size:40px;
}
.eg-burger::-webkit-details-marker{display:none}
.eg-burger::marker{content:""}
.eg-burger:hover{border-color:var(--eg-teal); color:var(--eg-teal-ink)}

/* Two rules that become an X. The third line is the ::after. */
.eg-burger__bars{position:relative; inline-size:16px; block-size:10px; flex:none}
.eg-burger__bars::before,
.eg-burger__bars::after{
  content:""; position:absolute; inset-inline:0; block-size:var(--eg-hair);
  background:currentColor;
  transition:transform var(--eg-t-fast) var(--eg-ease), inset-block-start var(--eg-t-fast) var(--eg-ease);
}
.eg-burger__bars::before{inset-block-start:0}
.eg-burger__bars::after{inset-block-start:9px}
.eg-menu[open] .eg-burger__bars::before{inset-block-start:4px; transform:rotate(45deg)}
.eg-menu[open] .eg-burger__bars::after{inset-block-start:4px; transform:rotate(-45deg)}
.eg-menu[open] .eg-burger{border-color:var(--eg-teal); color:var(--eg-teal-ink)}

.eg-menu__panel{
  position:absolute; inset-inline:0; inset-block-start:100%;
  background:var(--eg-paper); border-block-end:1px solid var(--eg-rule);
  box-shadow:0 18px 40px -24px rgba(22,22,25,.4);
  padding:var(--eg-space-3) var(--eg-space-4) var(--eg-space-4);
  max-block-size:calc(100dvh - 100%); overflow-y:auto;
}
.eg-menu__nav ul{list-style:none; margin:0; padding:0}
.eg-menu__nav a{
  display:flex; align-items:center; min-block-size:48px;
  border-block-end:1px solid var(--eg-rule);
  font-family:var(--eg-serif); font-size:var(--eg-s-1); letter-spacing:-.01em;
  color:var(--eg-ink);
}
.eg-menu__nav li:last-child a{border-block-end:0}
.eg-menu__nav .current-menu-item > a{color:var(--eg-teal-ink)}
.eg-menu__meta{
  display:flex; flex-wrap:wrap; gap:var(--eg-space-3);
  margin-block-start:var(--eg-space-3); padding-block-start:var(--eg-space-3);
  border-block-start:1px solid var(--eg-rule);
}
.eg-menu__meta a{
  font-family:var(--eg-mono); font-size:var(--eg-s--1); color:var(--eg-teal-ink);
  min-block-size:44px; display:flex; align-items:center;
  unicode-bidi:isolate;
}

/* The language switcher, in the menu panel. Its own script and direction, so
   "العربية" sits right-to-left inside an English header and the reverse. */
.eg-menu__lang{margin-block-start:var(--eg-space-2)}
.eg-menu__lang-link{
  display:flex; align-items:center; min-block-size:44px;
  font-family:var(--eg-mono); font-size:var(--eg-s--1);
  color:var(--eg-teal-ink); unicode-bidi:isolate;
}
.eg-menu__lang-link:hover{color:var(--eg-teal-deep)}

.eg-menu__account{margin:var(--eg-space-3) 0 0}
.eg-menu__account a{
  display:flex; align-items:center; min-block-size:44px;
  font-family:var(--eg-mono); font-size:var(--eg-s--2); letter-spacing:.14em;
  text-transform:uppercase; color:var(--eg-ink-2);
}

@media (max-width:1180px){ .eg-menu{display:block} }

/* The header carried brand, menu, bag and account on one row: 479px of
   content in a 375px viewport. Account moves into the menu panel and the
   remaining three are tightened until they fit. */
@media (max-width:620px){
  .eg-header__in{gap:var(--eg-space-2)}
  .eg-brand{gap:9px}
  .eg-brand__mark{block-size:32px}
  .eg-brand__name, :root:lang(ar) .eg-brand__name{font-size:.86rem; letter-spacing:.16em!important}
  /* Both pills move into the menu panel here; three in a row do not fit. */
  .eg-pill--account, .eg-pill--lang{display:none}
  .eg-burger{padding-inline:9px 11px; gap:7px}
}
@media (max-width:380px){
  .eg-burger__label{position:absolute; inline-size:1px; block-size:1px; overflow:hidden; clip-path:inset(50%)}
  .eg-burger{padding-inline:11px}
}
@media (prefers-reduced-motion: reduce){
  .eg-burger__bars::before, .eg-burger__bars::after{transition:none}
}

/* ---- footer ---- */
/* Deep teal rather than ink. The house owns the colour already — it carries the
   announcement band and every moment band — and a neutral near-black read as a
   generic page end rather than as this brand closing the page. The muted greys
   that went with ink do not survive the move: #7E8A85 measured 2.62:1 on teal,
   so the two quiet tones are re-picked from the same family as the ground. */
.eg-footer{background:var(--eg-teal-deep); color:#DCEAEA; margin-block-start:var(--eg-space-7); padding-block:var(--eg-space-6) var(--eg-footer-pad-end); font-size:var(--eg-s--1)}
.eg-footer__cols{display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:var(--eg-space-5)}
@media (max-width:820px){ .eg-footer__cols{grid-template-columns:1fr 1fr} }
.eg-footer h2{font-family:var(--eg-mono); font-size:var(--eg-s--2); letter-spacing:.2em; text-transform:uppercase; color:#A6C7CB; margin-block-end:var(--eg-space-3)}
.eg-footer a{display:block; padding-block:3px; color:#DCEAEA}
.eg-footer a:hover{color:var(--eg-white)}
.eg-footer ul{list-style:none; margin:0; padding:0}
.eg-footer__mark{font-family:var(--eg-display); font-size:var(--eg-s-1); letter-spacing:.24em; text-transform:uppercase; color:var(--eg-white); margin-block-end:var(--eg-space-3)}

/* The provenance line under the lockup. Was an inline style on the element. */
.eg-footer__note{max-width:32ch; color:#A6C7CB; line-height:1.8}

/* The legal strip: quieter than the columns above it, and horizontal, because
   these are links a customer looks for rather than reads. */
.eg-footer__legal{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:var(--eg-space-3) var(--eg-space-5);
  margin-block-start:var(--eg-space-6);
  padding-block-start:var(--eg-space-4);
  border-block-start:1px solid rgba(220,234,234,.22);
}
.eg-footer__legal ul{display:flex; flex-wrap:wrap; gap:var(--eg-space-3) var(--eg-space-4)}
.eg-footer__legal a{color:#A6C7CB; font-size:var(--eg-s--2)}
.eg-footer__legal a:hover{color:var(--eg-white)}
.eg-footer__rights{margin:0; color:#A6C7CB; font-size:var(--eg-s--2)}
@media (max-width:620px){ .eg-footer__legal{justify-content:flex-start} }

/* ---- sections ---- */
.eg-section{padding-block:var(--eg-space-8); border-block-end:var(--eg-hair) solid var(--eg-rule)}
@media (max-width:820px){ .eg-section{padding-block:var(--eg-space-7)} }
.eg-section__head{display:grid; gap:var(--eg-space-3); margin-block-end:var(--eg-space-5); max-width:60ch}

/* ---- photographic grain, used behind every image well ---- */
.eg-grain{position:relative; overflow:hidden; background:var(--eg-linen)}
.eg-grain::after{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.3;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='110' height='110' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

/* ---- OEKO-TEX seal ---- */
.eg-seal{
  display:inline-flex; align-items:center; justify-content:center; flex:none;
  inline-size:46px; block-size:46px; background:var(--eg-ink); color:var(--eg-white);
  border-radius:40% 8% 40% 40%; font-size:9.5px; line-height:1.1; font-weight:500; text-align:center;
}
.eg-seal--sm{inline-size:34px; block-size:34px; font-size:7px}

/* Scroll reveal. The class is only added by JS when motion is welcome, so
   there is no flash-of-hidden-content for anyone who opts out or has JS off. */
.eg-reveal{opacity:0; transform:translateY(18px); transition:opacity var(--eg-t-slow) var(--eg-ease-out), transform var(--eg-t-slow) var(--eg-ease-out)}
.eg-reveal.is-in{opacity:1; transform:none}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.01ms!important; transition-duration:.01ms!important}
  .eg-reveal{opacity:1; transform:none}
}

/* ---- long-form content ---- */
.eg-entry{font-size:var(--eg-s-0); line-height:1.85; color:var(--eg-ink-2)}
.eg-entry > * + *{margin-block-start:var(--eg-space-4)}
.eg-entry h2{font-family:var(--eg-serif); font-size:var(--eg-s-2); color:var(--eg-ink); margin-block-start:var(--eg-space-6)}
.eg-entry h3{font-family:var(--eg-serif); font-size:var(--eg-s-1); color:var(--eg-ink); margin-block-start:var(--eg-space-5)}
/* The prose-link treatment is for links in a sentence. An Elementor button is
   not one: it carries its own solid background, and this rule outranked
   Elementor's own `.elementor-button{color:#fff}` — which painted the label
   teal on a teal button, 1.49:1, on the About page. Excluding it hands the
   colour back to whoever styled the button, rather than guessing a new one. */
.eg-entry a:not(.elementor-button){color:var(--eg-teal-ink); text-decoration:underline; text-underline-offset:3px}

.eg-entry ul,.eg-entry ol{padding-inline-start:var(--eg-space-4)}
.eg-entry li + li{margin-block-start:var(--eg-space-1)}
.eg-entry blockquote{border-inline-start:2px solid var(--eg-teal); padding-inline-start:var(--eg-space-4); font-family:var(--eg-serif); font-style:italic; font-size:var(--eg-s-1)}
.eg-entry img{margin-block:var(--eg-space-4)}
.eg-entry table{inline-size:100%; border-collapse:collapse; font-size:var(--eg-s--1)}
.eg-entry th,.eg-entry td{text-align:start; padding:10px 14px; border-block-end:1px solid var(--eg-rule)}

/* ---- search form ---- */
.eg-search{display:flex; gap:var(--eg-space-2)}
.eg-search input{flex:1; font:inherit; font-size:var(--eg-s--1); padding:11px 13px; border:1px solid var(--eg-rule-2); background:var(--eg-white); border-radius:2px; color:var(--eg-ink)}

/*
 * Arabic is a joined script. Letter-spacing pulls the letters of a word apart
 * and breaks the joins, so every tracked label on /ar/ — the mono kickers,
 * buttons, form labels — read as a row of isolated characters. Tracking is a
 * Latin convention; Arabic gets none, and no uppercase transform either.
 */
:root:lang(ar) body, :root:lang(ar) body *, :root:lang(ar) body *::before, :root:lang(ar) body *::after{letter-spacing:0!important}
:root:lang(ar) :is(.eg-kick, .eg-btn, .eg-display){text-transform:none}
