@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700;800&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --paper: #f6f0e4;
  --paper-deep: #ede2d0;
  --ink: #282b27;
  --muted: #6f6a5e;
  --brick: #a94f35;
  --brick-dark: #713726;
  --copper: #c18a48;
  --olive: #526049;
  --tile-blue: #315d70;
  --line: rgba(95, 68, 45, .2);
  --display: "Noto Kufi Arabic", Tahoma, sans-serif;
  --body: "Noto Naskh Arabic", "Traditional Arabic", serif;
  --page: min(1160px, calc(100% - 56px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background-color: var(--paper); background-image: url("/kairouan-pattern.svg"); background-repeat: repeat; background-size: 196px 196px; color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.8; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { color: #fffaf0; background: var(--brick); }

.skip-link { position: fixed; z-index: 20; inset-block-start: 12px; inset-inline-start: 12px; transform: translateY(-180%); padding: 8px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-family: var(--display); font-size: 13px; }
.skip-link:focus { transform: translateY(0); }
.site-header { width: var(--page); min-height: 88px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 47px; height: 47px; }
.brand-name { font-family: var(--display); font-size: 16px; font-weight: 500; letter-spacing: -.04em; }
.brand-name strong { color: var(--brick); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3.3vw, 44px); font-family: var(--display); font-size: 12px; font-weight: 600; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--brick); }
.main-nav .nav-contact { padding: 8px 19px; border: 1px solid var(--brick); border-radius: 999px; color: var(--brick); }
.main-nav .nav-contact:hover { background: var(--brick); color: #fff8ec; }
.kairouan-trim { height: 17px; border-block: 1px solid rgba(95,68,45,.19); background-color: var(--paper-deep); background-image: repeating-linear-gradient(45deg, transparent 0 5px, rgba(49,93,112,.88) 5px 8px, transparent 8px 16px), repeating-linear-gradient(-45deg, transparent 0 5px, rgba(193,138,72,.88) 5px 8px, transparent 8px 16px); background-size: 24px 17px; box-shadow: 0 2px 9px rgba(55,39,24,.08); }

.section-shell { width: var(--page); margin-inline: auto; }
.hero { min-height: 625px; padding-block: 48px 64px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(34px, 7vw, 96px); }
.hero-copy { padding-block: 22px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 17px; color: var(--brick); font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.eyebrow-rule { display: inline-block; width: 31px; height: 1px; background: currentColor; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.45; letter-spacing: -.055em; }
.hero h1 { max-width: 570px; font-size: clamp(42px, 5.8vw, 77px); }
.hero h1 span { color: var(--brick); }
.hero-slogan { margin: 9px 0 10px; color: var(--olive); font-family: var(--display); font-size: clamp(20px, 2.2vw, 27px); font-weight: 700; }
.hero-description { max-width: 400px; margin: 0; color: var(--muted); font-size: 20px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 31px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 10px 20px; border-radius: 4px 19px 4px 19px; font-family: var(--display); font-size: 12px; font-weight: 700; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brick); color: #fff9ed; box-shadow: 0 8px 18px rgba(113,55,38,.14); }
.button-primary:hover { background: var(--brick-dark); }
.button-primary svg { width: 17px; height: 17px; fill: currentColor; }
.text-link { display: inline-flex; gap: 9px; align-items: center; color: var(--brick-dark); font-family: var(--display); font-size: 12px; font-weight: 700; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(-4px); }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 38px; color: #877c69; font-size: 15px; }
.note-spark { color: var(--copper); font-size: 19px; }

.hero-art { position: relative; min-height: 492px; display: flex; align-items: center; justify-content: center; }
.arch-halo { position: absolute; z-index: 0; inset-inline-start: 5%; inset-block-start: 0; width: min(77%, 400px); height: 97%; border: 1px solid rgba(169,79,53,.28); border-radius: 48% 48% 8px 8px; background: repeating-linear-gradient(135deg, rgba(193,138,72,.055) 0 1px, transparent 1px 16px), radial-gradient(ellipse at 50% 46%, rgba(225,205,173,.55), rgba(237,226,208,.12) 68%, transparent 69%); }
.baker-photo { position: relative; z-index: 1; width: 68%; max-width: 345px; height: 440px; margin: 0 8% 0 0; overflow: hidden; border-radius: 48% 48% 5px 5px; background: var(--paper-deep); box-shadow: 0 22px 42px rgba(55,39,24,.18); }
.baker-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 51% 31%; }
.photo-frame::after { position: absolute; inset: 12px; border: 1px solid rgba(255,242,216,.7); border-radius: inherit; content: ""; pointer-events: none; }
.bread-peek { position: absolute; z-index: 2; inset-inline-start: 0; inset-block-end: 18px; width: 38%; max-width: 190px; margin: 0; padding: 8px 8px 6px; border: 1px solid rgba(193,138,72,.4); background: #f9f4e9; box-shadow: 0 14px 30px rgba(55,39,24,.16); transform: rotate(-3deg); }
.bread-peek img { width: 100%; height: 145px; object-fit: cover; object-position: center 55%; }
.bread-peek figcaption { padding-top: 4px; color: var(--brick-dark); text-align: center; font-family: var(--display); font-size: 10px; font-weight: 700; }
.tile-spark { position: absolute; z-index: 2; color: var(--copper); font-size: 27px; }
.tile-spark-one { inset-inline-end: 2%; inset-block-start: 18%; }
.tile-spark-two { inset-inline-end: 10%; inset-block-end: 9%; color: var(--olive); font-size: 19px; }

.ornament-band { width: min(530px, 70%); margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--copper); font-size: 17px; }
.ornament-band i { width: 100px; height: 1px; background: linear-gradient(90deg, transparent, rgba(193,138,72,.55), transparent); }

.bread-section { position: relative; padding-block: 96px 110px; display: grid; grid-template-columns: .85fr 1.05fr .42fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.section-heading { align-self: start; padding-top: 48px; }
.section-heading h2, .contact-section h2 { font-size: clamp(31px, 4vw, 48px); }
.section-heading h2 span, .contact-section h2 span { color: var(--brick); }
.section-heading > p:last-child { max-width: 340px; margin: 19px 0 0; color: var(--muted); font-size: 18px; }
.bread-portrait { margin: 0; padding: 13px 13px 11px; background: #fffaf1; box-shadow: 0 17px 42px rgba(55,39,24,.11); transform: rotate(1.5deg); }
.bread-image-mat { overflow: hidden; background: var(--paper-deep); }
.bread-portrait img { width: 100%; height: auto; }
.bread-portrait figcaption { display: flex; justify-content: center; align-items: center; gap: 9px; padding-top: 7px; color: var(--brick-dark); font-family: var(--display); font-size: 12px; font-weight: 700; }
.caption-mark { color: var(--copper); font-size: 17px; }
.bread-side-note { align-self: end; padding-bottom: 21px; color: var(--muted); }
.side-number { display: inline-grid; width: 33px; height: 33px; place-items: center; border: 1px solid rgba(169,79,53,.5); border-radius: 50%; color: var(--brick); font-family: var(--display); font-size: 12px; }
.bread-side-note p { margin: 17px 0; font-size: 17px; }
.side-rule { display: block; width: 54px; height: 1px; margin-block: 22px 12px; background: var(--copper); }
.side-kairouan { color: var(--olive); font-family: var(--display); font-size: 11px; font-weight: 700; }

.story-section { position: relative; min-height: 540px; margin-block: 0 93px; padding: clamp(38px, 7vw, 76px); display: grid; grid-template-columns: 1fr .65fr; align-items: center; gap: clamp(35px, 8vw, 105px); overflow: hidden; background: var(--brick-dark); color: #fff4e4; }
.story-section::before, .story-section::after { position: absolute; width: 310px; height: 310px; border: 1px solid rgba(235,199,144,.22); border-radius: 50%; content: ""; pointer-events: none; }
.story-section::before { inset-inline-start: -130px; inset-block-start: -175px; box-shadow: 0 0 0 15px rgba(235,199,144,.035), 0 0 0 30px rgba(235,199,144,.035); }
.story-section::after { inset-inline-end: 27%; inset-block-end: -250px; }
.story-copy { position: relative; z-index: 1; }
.eyebrow-light { color: #e7bd81; }
.story-copy h2 { font-size: clamp(35px, 4.4vw, 57px); }
.story-copy h2 span { color: #e8bf86; }
.story-copy > p:not(.eyebrow) { max-width: 490px; margin: 19px 0 24px; color: rgba(255,244,228,.8); font-size: 19px; }
.button-light { border: 1px solid rgba(255,244,228,.55); color: #fff4e4; }
.button-light:hover { background: rgba(255,244,228,.12); }
.poster-frame { position: relative; z-index: 1; width: min(100%, 310px); justify-self: center; margin: 0; padding: 10px 10px 7px; background: #fff8eb; box-shadow: 0 19px 45px rgba(0,0,0,.26); transform: rotate(-2deg); }
.poster-frame img { width: 100%; height: auto; }
.poster-frame figcaption { padding-top: 5px; color: var(--brick-dark); text-align: center; font-family: var(--display); font-size: 10px; font-weight: 700; }
.story-arch { position: absolute; inset-inline-end: 19px; inset-block-end: 21px; display: flex; align-items: center; gap: 8px; color: rgba(255,244,228,.43); font-family: var(--display); font-size: 9px; }
.story-arch i { width: 17px; height: 17px; border: 1px solid rgba(232,191,134,.5); border-radius: 50% 50% 2px 2px; }

.contact-section { position: relative; padding-block: 8px 98px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.contact-section h2 { margin: 0; }
.contact-action { display: flex; align-items: center; gap: 21px; }
.phone-number { direction: ltr; color: var(--brick-dark); font-family: var(--display); font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; letter-spacing: .04em; }
.address-link { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px 15px 4px 15px; background: rgba(255,250,241,.55); color: var(--brick-dark); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.address-link:hover { transform: translateY(-2px); border-color: var(--copper); background: #fffaf1; }
.address-link > svg { width: 23px; height: 23px; flex: 0 0 auto; fill: none; stroke: var(--brick); stroke-width: 1.7; }
.address-link > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.5; }
.address-link small { color: var(--muted); font-family: var(--display); font-size: 9px; }
.address-link strong { direction: ltr; font-family: var(--display); font-size: 12px; font-weight: 700; white-space: nowrap; }
.address-arrow { align-self: flex-start; color: var(--copper); font-family: var(--display); font-size: 13px; }
.contact-ornament { position: absolute; inset-inline-start: -3px; inset-block-start: 0; color: rgba(193,138,72,.55); font-size: 26px; }
.site-footer { min-height: 93px; padding: 18px max(28px, calc((100% - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand .brand-mark { width: 38px; height: 38px; }
.footer-brand .brand-name { font-size: 13px; }
.site-footer p { margin: 0; font-size: 15px; }
.site-footer > a:last-child { direction: ltr; color: var(--brick-dark); font-family: var(--display); font-size: 14px; font-weight: 700; }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }
@media (max-width: 820px) {
  :root { --page: min(640px, calc(100% - 40px)); }
  .site-header { min-height: 78px; }
  .brand-mark { width: 41px; height: 41px; }
  .brand-name { font-size: 14px; }
  .main-nav { gap: 14px; font-size: 10px; }
  .main-nav .nav-contact { padding: 6px 12px; }
  .hero { min-height: auto; grid-template-columns: 1fr 1fr; gap: 28px; padding-block: 47px 56px; }
  .hero-art { min-height: 430px; }
  .baker-photo { height: 370px; width: 75%; }
  .bread-peek { width: 43%; }
  .bread-peek img { height: 122px; }
  .bread-section { grid-template-columns: .8fr 1.2fr; gap: 27px; padding-block: 76px 82px; }
  .section-heading { padding-top: 8px; }
  .bread-side-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 0; }
  .bread-side-note p { margin: 0; }
  .side-rule, .side-kairouan { display: none; }
  .story-section { grid-template-columns: 1fr .65fr; gap: 28px; padding: 38px; }
  .poster-frame { width: min(100%, 260px); }
  .contact-section { padding-block-end: 76px; }
  .contact-action { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 560px) {
  :root { --page: calc(100% - 32px); }
  html { scroll-padding-top: 73px; }
  body { font-size: 17px; }
  .site-header { min-height: 70px; gap: 8px; }
  .kairouan-trim { height: 13px; background-size: 20px 13px; }
  .brand { gap: 7px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-name { font-size: 12px; }
  .main-nav { gap: 10px; font-size: 9px; }
  .main-nav a:nth-child(3) { display: none; }
  .main-nav .nav-contact { padding: 5px 9px; }
  .hero { grid-template-columns: 1fr; gap: 0; padding-block: 36px 44px; }
  .hero-copy { padding-block: 8px 20px; }
  .eyebrow { margin-bottom: 12px; font-size: 10px; }
  .hero h1 { max-width: 100%; font-size: clamp(39px, 12vw, 60px); }
  .hero-slogan { margin-top: 5px; font-size: 21px; }
  .hero-description { max-width: 100%; font-size: 18px; }
  .hero-actions { margin-top: 22px; gap: 19px; }
  .button { min-height: 46px; padding: 8px 15px; font-size: 11px; }
  .hero-note { margin-top: 18px; font-size: 14px; }
  .hero-art { min-height: 366px; width: 100%; }
  .arch-halo { inset-inline-start: 8%; width: 78%; height: 94%; }
  .baker-photo { width: 66%; height: 333px; margin-inline-start: 6%; }
  .bread-peek { inset-inline-start: 1%; inset-block-end: 8px; width: 38%; max-width: 156px; }
  .bread-peek img { height: 103px; }
  .tile-spark-one { inset-inline-end: 4%; inset-block-start: 9%; }
  .ornament-band { width: 73%; }
  .bread-section { grid-template-columns: 1fr; gap: 23px; padding-block: 61px 70px; }
  .section-heading { padding: 0; }
  .section-heading h2, .contact-section h2 { font-size: 33px; }
  .section-heading > p:last-child { margin-top: 10px; }
  .bread-portrait { width: 84%; justify-self: center; padding: 9px 9px 7px; }
  .bread-side-note { padding-inline: 5px; }
  .story-section { width: 100%; min-height: auto; grid-template-columns: 1fr; gap: 24px; margin-block-end: 64px; padding: 43px 26px 46px; }
  .story-copy h2 { font-size: 39px; }
  .story-copy > p:not(.eyebrow) { font-size: 17px; }
  .poster-frame { width: min(69%, 245px); }
  .story-arch { display: none; }
  .contact-section { align-items: flex-start; flex-direction: column; gap: 20px; padding-block: 0 61px; }
  .contact-action { flex-direction: row; align-items: center; gap: 16px; }
  .phone-number { font-size: 27px; }
  .address-link { max-width: 100%; }
  .site-footer { min-height: 76px; padding: 13px 16px; gap: 8px; }
  .footer-brand .brand-mark { width: 31px; height: 31px; }
  .footer-brand .brand-name { font-size: 10px; }
  .site-footer p { font-size: 12px; text-align: center; }
  .site-footer > a:last-child { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Antique Kairouan finish: carved borders, zellige accents, and warm patina. */
.site-header { border-bottom: 3px double rgba(49,93,112,.38); }
.main-nav .nav-contact { border: 3px double var(--copper); }
.eyebrow::after { content: "✧"; margin-inline-start: 2px; color: var(--copper); font-size: 15px; line-height: 1; }
.eyebrow-rule { width: 38px; height: 2px; background: repeating-linear-gradient(90deg, var(--tile-blue) 0 4px, transparent 4px 7px, var(--copper) 7px 10px, transparent 10px 14px); }
.baker-photo { box-shadow: 0 22px 42px rgba(55,39,24,.18), 0 0 0 3px #f6f0e4, 0 0 0 5px rgba(49,93,112,.48); }
.bread-peek { border: 2px double var(--copper); outline: 1px solid rgba(49,93,112,.68); outline-offset: 2px; }
.bread-portrait { border: 3px double var(--copper); outline: 1px solid rgba(49,93,112,.6); outline-offset: 4px; background: #f7efdf; }
.bread-image-mat { border: 1px solid rgba(49,93,112,.48); }
.side-number { border: 3px double rgba(169,79,53,.68); background: rgba(255,250,241,.72); }
.story-section { border: 5px double rgba(232,191,134,.7); background-color: var(--brick-dark); background-image: url("/kairouan-antique-night.svg"); background-size: 156px 156px; background-repeat: repeat; box-shadow: inset 0 0 0 5px rgba(232,191,134,.12), 0 17px 36px rgba(55,39,24,.13); }
.poster-frame { border: 2px double var(--copper); outline: 1px solid rgba(49,93,112,.7); outline-offset: 4px; }
.button { border: 1px solid rgba(193,138,72,.68); box-shadow: inset 0 0 0 2px rgba(245,223,184,.14); }
.button-primary { box-shadow: 0 8px 18px rgba(113,55,38,.14), inset 0 0 0 2px rgba(245,223,184,.28); }
.button-light { box-shadow: inset 0 0 0 2px rgba(245,223,184,.12); }
.contact-section { margin-block-end: 63px; padding: 24px 28px; border: 3px double rgba(49,93,112,.62); outline: 1px solid rgba(193,138,72,.55); outline-offset: -8px; background: rgba(255,250,241,.78); box-shadow: inset 0 0 0 6px rgba(193,138,72,.12); }
.address-link { border: 3px double rgba(49,93,112,.52); background: rgba(255,250,241,.78); box-shadow: inset 0 0 0 2px rgba(193,138,72,.13); }
.site-footer { border-top: 3px double rgba(49,93,112,.43); background: rgba(237,226,208,.77); }
@media (max-width: 560px) {
  .contact-section { margin-block: 0 52px; padding: 21px 18px 25px; }
  .bread-portrait { outline-offset: 3px; }
}

/* Full-bleed Kairouan ceramic: make the tile wall unmistakable while keeping copy readable. */
body { background-color: #d8c4a2; background-image: url("/manus-storage/async-images/IHljPB7kG2rBEsCum82dQZ/image-1.webp"); background-repeat: repeat; background-size: 430px 430px; background-position: center top; }
.site-header { width: 100%; margin-inline: 0; padding-inline: max(28px, calc((100% - 1160px) / 2)); border-top: 10px double var(--tile-blue); border-bottom: 3px double var(--copper); background: rgba(246,240,228,.97); box-shadow: 0 5px 14px rgba(40,32,23,.14); }
.hero, .bread-section, .contact-section { width: min(1100px, calc(100% - 80px)); border: 6px double var(--tile-blue); outline: 2px solid var(--copper); outline-offset: 4px; background: rgba(249,244,233,.94); box-shadow: 0 12px 30px rgba(40,32,23,.18), inset 0 0 0 4px rgba(193,138,72,.2); }
.hero { margin-block: 30px 43px; padding-inline: clamp(18px, 3vw, 34px); }
.bread-section { margin-block: 25px 68px; padding-inline: clamp(18px, 3vw, 34px); }
.baker-photo { border: 5px double var(--copper); }
.bread-peek { border: 4px double var(--tile-blue); background: #fff8e9; }
.bread-portrait { border: 6px double var(--tile-blue); outline: 2px solid var(--copper); outline-offset: 5px; background: #fff8e9; }
.bread-image-mat { border: 2px solid var(--copper); }
.poster-frame { border: 5px double var(--tile-blue); outline: 2px solid var(--copper); outline-offset: 4px; }
.story-section { border: 7px double #e5bf7c; background-color: var(--brick-dark); background-image: url("/kairouan-antique-night.svg"); background-size: 156px 156px; box-shadow: inset 0 0 0 5px rgba(232,191,134,.2), 0 18px 38px rgba(40,32,23,.24); }
.button-primary { background-color: var(--tile-blue); background-image: linear-gradient(135deg, rgba(255,255,255,.09), transparent 60%); border: 2px double #d7b776; box-shadow: 0 7px 17px rgba(34,60,69,.24), inset 0 0 0 2px rgba(245,223,184,.25); }
.button-primary:hover { background-color: var(--brick-dark); }
.address-link { border: 5px double var(--tile-blue); background: rgba(255,249,233,.97); box-shadow: inset 0 0 0 3px rgba(193,138,72,.2), 0 6px 16px rgba(40,32,23,.12); }
.contact-section { margin-block: 0 66px; }
.site-footer { border-top: 10px double var(--tile-blue); background: rgba(246,240,228,.98); box-shadow: 0 -5px 14px rgba(40,32,23,.1); }
@media (max-width: 820px) {
  .site-header { padding-inline: max(20px, calc((100% - 640px) / 2)); }
  .hero, .bread-section, .contact-section { width: calc(100% - 48px); }
}
@media (max-width: 560px) {
  .site-header { padding-inline: 16px; }
  .hero, .bread-section, .contact-section { width: calc(100% - 24px); border-width: 4px; outline-offset: 3px; }
  .hero { margin-block: 18px 32px; padding-inline: 14px; }
  .bread-section { margin-block: 22px 50px; padding-inline: 14px; }
  .contact-section { margin-block: 0 50px; padding-inline: 14px; }
  .story-section { border-width: 5px; }
}
