/* Matajer Dubai: shopfront awning + till receipt. Warm paper, aubergine ink, pomegranate and saffron. */
:root {
  --paper: #fbf5ea;
  --till: #fffdf8;
  --ink: #2b1b2e;
  --ink-2: #5e4f60;
  --pom: #b4253a;
  --pom-dark: #8f1a2c;
  --saffron: #e9a820;
  --cardamom: #4b6b3c;
  --line: #e4d8c4;
  --display: "Young Serif", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --till-font: "Courier Prime", ui-monospace, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.62 var(--body); overflow-wrap: break-word; }
a { color: var(--pom-dark); text-underline-offset: 2px; }
a:hover { color: var(--pom); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.16; letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.1rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.8rem); margin: 2.2rem 0 .7rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 5; }
.skip:focus { left: 0; }
.small { font-size: .88rem; color: var(--ink-2); }

/* Signature 1: the striped shop awning with a scalloped edge */
.awning {
  height: 32px;
  background: repeating-linear-gradient(90deg, var(--pom) 0 36px, var(--saffron) 36px 72px);
  -webkit-mask: radial-gradient(circle 18px at 18px 0, #000 97%, transparent) 0 14px / 36px 18px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% 14.5px no-repeat;
          mask: radial-gradient(circle 18px at 18px 0, #000 97%, transparent) 0 14px / 36px 18px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% 14.5px no-repeat;
}
.masthead { background: var(--paper); }
.masthead__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: inline-flex; align-items: baseline; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand__ar { font: 700 1.55rem/1 "Reem Kufi", var(--display); color: var(--pom); }
.brand__en { font: 400 1.25rem/1 var(--display); }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem .95rem; margin: 0; padding: 0; font-size: .95rem; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--saffron); color: var(--ink); }
.nav a[aria-current] { border-color: var(--pom); }
.independent { margin: 0; background: var(--ink); color: #f1e7d6; font-size: .82rem; line-height: 1.4; padding: .4rem 0; }
.independent .wrap { display: block; }

/* Signature 2: till receipts */
.receipt {
  position: relative; background: var(--till); font-family: var(--till-font); font-size: .95rem; line-height: 1.42;
  padding: 1.25rem 1.2rem 1.5rem; margin: 0 0 2rem; box-shadow: 0 1px 0 var(--line), 0 10px 22px -16px rgba(43, 27, 46, .5);
  --tooth: 9px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tooth)) 51% repeat-x, linear-gradient(#000 0 0) top / 100% 50% no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tooth)) 51% repeat-x, linear-gradient(#000 0 0) top / 100% 50% no-repeat;
}
.receipt__head { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .6rem; padding-bottom: .5rem; border-bottom: 2px dashed var(--ink); font-size: .9rem; }
.receipt ul { list-style: none; margin: 0; padding: 0; }
.receipt li { padding: .38rem 0; border-bottom: 1px dashed var(--line); }
.receipt li:last-child { border-bottom: 0; }
.tillrow { display: flex; justify-content: space-between; gap: .75rem; padding: .34rem 0; border-bottom: 1px dashed var(--line); }
.tillrow span:last-child { text-align: right; font-weight: 700; }
.tillrow span:first-child { flex: 1 1 52%; }
.till-total { display: flex; justify-content: space-between; gap: .75rem; margin: .6rem 0 0; padding-top: .55rem; border-top: 2px dashed var(--ink); font-weight: 700; }
.till-foot { margin: .7rem 0 0; font-size: .82rem; color: var(--ink-2); }

/* Signature 3: the "checked" rubber stamp */
.stamp { display: inline-block; font: 700 .78rem/1 var(--till-font); text-transform: uppercase; letter-spacing: .1em; color: var(--pom); border: 2px solid var(--pom); border-radius: 3px; padding: .34rem .55rem; transform: rotate(-1.5deg); margin: .1rem 0 .6rem; }
.flag { display: inline-block; font: 700 .72rem/1.1 var(--till-font); text-transform: uppercase; letter-spacing: .05em; border: 1.5px solid currentColor; border-radius: 3px; padding: .2rem .4rem; white-space: nowrap; }
.flag--confirmed { color: var(--cardamom); }
.flag--month-only { color: #92660a; }
.flag--not-announced { color: var(--ink-2); }

/* Home */
.hero { padding-top: 2.2rem; padding-bottom: 1.4rem; }
.hero__grid { display: grid; gap: 1.8rem; align-items: start; }
.hero__ar { font: 700 clamp(3rem, 12vw, 5.6rem)/1 "Reem Kufi", var(--display); color: var(--pom); margin: 0 0 .7rem; text-align: left; }
.hero__gloss { font: 400 .95rem var(--till-font); color: var(--ink-2); margin: 0 0 1rem; }
.hero .lede { font-size: 1.14rem; max-width: 34em; }
.btnrow { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); padding: .58rem 1rem; text-decoration: none; font-weight: 600; border-radius: 3px; }
.btn:hover { background: var(--pom-dark); color: #fff; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.section { padding-top: 1.4rem; padding-bottom: 1.4rem; }
.section > h2:first-child { margin-top: .4rem; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.tasks a { display: block; background: var(--till); padding: .75rem .9rem; border-left: 4px solid var(--saffron); text-decoration: none; color: var(--ink); font-weight: 600; }
.tasks a:hover { border-left-color: var(--pom); color: var(--pom-dark); }
.hubs { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.hubs a { display: block; padding: .95rem 1rem; background: var(--ink); color: var(--paper); text-decoration: none; }
.hubs a:hover { background: var(--pom-dark); color: #fff; }
.hubs b { display: block; font: 400 1.22rem var(--display); margin-bottom: .2rem; }
.hubs span { font-size: .93rem; opacity: .92; }
.dates { list-style: none; margin: 0; padding: 0; font-family: var(--till-font); }
.dates li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.dates b { font-weight: 700; }

/* Lists and pages */
.page { padding-top: 1.6rem; padding-bottom: 2.5rem; }
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 44em; margin: 0 0 .8rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.list .t { font: 400 1.14rem/1.25 var(--display); text-decoration: none; color: var(--ink); }
.list .t:hover { color: var(--pom-dark); text-decoration: underline; }
.list p { margin: .25rem 0 0; color: var(--ink-2); font-size: .96rem; }
.list .d { font: 400 .8rem var(--till-font); color: var(--ink-2); }
.crumbs { font-size: .86rem; color: var(--ink-2); margin: 1.3rem 0 .7rem; }
.crumbs a { color: var(--ink-2); }

/* Article */
.article { padding-bottom: 2.5rem; }
.article__head { max-width: 52rem; margin-bottom: 1.5rem; }
.meta { font-size: .88rem; color: var(--ink-2); margin: 0; }
.layout { display: grid; gap: 1.5rem; }
.prose { min-width: 0; max-width: 42rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin-bottom: .34rem; }
.prose .receipt ul { margin: 0; }
.prose .receipt li { margin: 0; }
.tablewrap { overflow-x: auto; margin: 1.2rem 0; background: var(--till); box-shadow: 0 1px 0 var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; line-height: 1.38; }
th, td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px dashed var(--line); }
th { font: 700 .82rem/1.25 var(--till-font); text-transform: uppercase; letter-spacing: .03em; border-bottom: 2px dashed var(--ink); }
.faq details { background: var(--till); margin-bottom: .45rem; padding: .6rem .85rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: .5rem 0 .1rem; }
.note { font-size: .92rem; color: var(--ink-2); border-left: 3px solid var(--line); padding: .15rem 0 .15rem .8rem; margin: 1.4rem 0; }
.note--warn { color: var(--ink); border-left-color: var(--pom); background: #fbeae3; padding: .6rem .8rem; }
.sources { font-size: .92rem; padding-left: 1.3rem; }
.sources span { color: var(--ink-2); font-size: .82rem; white-space: nowrap; }
.aside { min-width: 0; }
.aside__box { background: var(--till); padding: 1rem; margin-bottom: 1rem; font-size: .93rem; line-height: 1.4; }
.aside__box h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.aside__box ol { list-style: none; margin: 0; padding: 0; }
.aside__box li { margin-bottom: .4rem; }
.aside__box--ink { background: var(--ink); color: var(--paper); }
.aside__box--ink a { color: var(--saffron); font-weight: 600; }
.aside__box--ink p { margin: 0 0 .5rem; }
.related { margin-top: 2rem; }

/* Footer */
.foot { background: var(--ink); color: #eadfcd; padding: 2rem 0 1rem; font-size: .92rem; line-height: 1.5; }
.foot a { color: #f7e7c2; }
.foot__grid { display: grid; gap: 1.3rem; }
.foot__brand { font: 400 1.25rem var(--display); margin: 0 0 .4rem; color: #fff; }
.foot__head { font-weight: 700; margin: 0 0 .4rem; color: #fff; }
.foot p { margin: 0 0 .5rem; }
.foot__links { list-style: none; margin: 0; padding: 0; }
.foot__links li { margin-bottom: .28rem; }
.foot__small { font-size: .8rem; opacity: .85; margin-top: 1.2rem; }

@media (min-width: 760px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; }
  .tasks { grid-template-columns: 1fr 1fr; }
  .hubs { grid-template-columns: repeat(3, 1fr); }
  .foot__grid { grid-template-columns: 1.4fr 1fr .8fr; gap: 2.4rem; }
}
@media (min-width: 980px) {
  .layout { grid-template-columns: minmax(0, 42rem) minmax(0, 17rem); gap: 3rem; justify-content: space-between; }
  .aside { position: sticky; top: 1rem; align-self: start; }
}
@media print { .awning, .aside, .foot, .nav { display: none; } }
