:root {
  --paper: #f3eee4;
  --sheet: #fffaf3;
  --ink: #1c1612;
  --muted: #4a433c;
  --line: #e0d5c4;
  --wine: #6f2430;
  --wine-deep: #4a1520;
  --brass: #8d6a2f;
  --brass-soft: #e7d3a4;
  --stage: #12151b;
  --pine: #145248;
  --focus: #0c5f73;
  --header-h: 9.5rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 420px at 100% -10%, rgba(231, 211, 164, 0.55), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: "Outfit", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

html[lang="ar"] body {
  font-family: Tahoma, "Segoe UI", "Noto Naskh Arabic", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pine);
}

a:hover {
  color: var(--wine-deep);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: 0.75rem;
  transform: translateY(-140%);
  background: var(--wine-deep);
  color: #fffaf3;
  padding: 0.6rem 0.9rem;
  z-index: 20;
  border-radius: 8px;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.mast {
  background: rgba(243, 238, 228, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.mast-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.82rem;
}

.age {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 1.7rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--wine-deep);
  color: #fffaf3;
  font-size: 0.78rem;
}

.langs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.langs a {
  color: var(--ink);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.35rem;
  border-bottom: 2px solid transparent;
}

.langs a[aria-current="true"] {
  border-bottom-color: var(--wine);
  font-weight: 650;
}

.mast-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-bottom: 0.35rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  margin-inline-end: auto;
  min-height: 48px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--wine-deep);
}

.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.search {
  flex: 1 1 220px;
  display: flex;
  max-width: 420px;
  background: var(--sheet);
  border: 2px solid var(--brass);
  border-radius: 999px;
  overflow: hidden;
}

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  min-height: 48px;
  padding: 0 1rem;
  font: inherit;
  color: var(--ink);
  min-width: 0;
}

.search button {
  border: 0;
  background: var(--wine-deep);
  color: #fffaf3;
  font: inherit;
  font-weight: 600;
  padding: 0 1rem;
  min-height: 48px;
  cursor: pointer;
}

.search button:hover {
  background: var(--wine);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.1rem 0 0.65rem;
}

.menu a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
}

.menu a[aria-current="page"] {
  background: var(--wine-deep);
  color: #fffaf3;
}

.menu a:hover {
  background: var(--brass-soft);
  color: var(--ink);
}

.menu a[aria-current="page"]:hover {
  background: var(--wine);
  color: #fffaf3;
}

.crumbs {
  padding: 0.85rem 0 0;
  font-size: 0.92rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.crumbs li + li::before {
  content: "/";
  color: var(--brass);
}

.crumbs a {
  color: var(--pine);
}

.intro {
  display: grid;
  gap: 1.25rem;
  padding: 0.4rem 0 0.5rem;
}

.kicker {
  margin: 0 0 0.35rem;
  color: var(--wine);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 650;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .brand-name,
html[lang="ar"] .address-card strong {
  font-family: Tahoma, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.7rem);
  max-width: 16ch;
}

.lede {
  font-size: 1.12rem;
  margin-top: 0;
  max-width: 42rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 0.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.btn-primary {
  background: var(--wine-deep);
  color: #fffaf3;
}

.btn-primary:hover {
  background: var(--wine);
  color: #fffaf3;
}

.btn-ghost {
  background: transparent;
  color: var(--wine-deep);
  border-color: var(--brass);
}

.btn-ghost:hover {
  background: var(--brass-soft);
  color: var(--wine-deep);
}

.frame {
  margin: 0;
  background: #d9c7a4;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.frame.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shot {
  margin: 0;
}

.shot figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

article {
  padding-bottom: 1rem;
}

article p,
article li {
  max-width: 68ch;
}

h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  margin: 2.2rem 0 0.7rem;
}

h3 {
  font-size: 1.28rem;
  margin: 1.5rem 0 0.45rem;
}

h4 {
  font-size: 1.08rem;
  margin: 1.2rem 0 0.35rem;
}

.note {
  background: var(--sheet);
  border-inline-start: 4px solid var(--brass);
  padding: 0.95rem 1.05rem;
  margin: 1.3rem 0;
  max-width: 68ch;
  border-radius: 0 14px 14px 0;
}

html[dir="rtl"] .note {
  border-radius: 14px 0 0 14px;
}

.address-card {
  background: var(--stage);
  color: #f4efe6;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.2rem 0 1.4rem;
}

.address-card p {
  margin: 0;
}

.address-card strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 650;
  color: #f6e7c4;
  word-break: break-all;
}

.address-card .btn-primary {
  background: #f3eee4;
  color: var(--wine-deep);
}

.address-card .btn-primary:hover {
  background: #fff;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
  background: var(--sheet);
  border-radius: 16px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}

caption {
  text-align: start;
  font-weight: 650;
  padding: 0.9rem 1rem 0.2rem;
}

th,
td {
  text-align: start;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.92rem;
}

.byline {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.byline p {
  margin: 0.3rem 0;
}

.prose-figure {
  margin: 1.4rem 0;
  max-width: 46rem;
}

.site-footer {
  background: var(--stage);
  color: #f4efe6;
  margin-top: 3rem;
  padding: 2.4rem 0 1.2rem;
}

.foot-grid {
  display: grid;
  gap: 1.4rem;
}

.site-footer a {
  color: #f0e2c4;
}

.site-footer h2 {
  font-size: 1rem;
  margin: 0 0 0.55rem;
  font-family: "Outfit", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

html[lang="ar"] .site-footer h2 {
  font-family: Tahoma, sans-serif;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.28rem 0;
}

.legal {
  margin-top: 1.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(240, 226, 196, 0.25);
  color: #d9d0c4;
  font-size: 0.9rem;
}

.form {
  display: grid;
  gap: 0.8rem;
  max-width: 36rem;
}

.form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

.form input,
.form textarea {
  font: inherit;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
}

.form textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-error {
  color: var(--wine);
  margin: 0;
}

.results {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.results li {
  background: var(--sheet);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
}

.results a {
  font-weight: 650;
  font-size: 1.08rem;
}

.results p {
  margin: 0.3rem 0 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 800px) {
  .intro {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    min-height: 28rem;
  }

  h1 {
    max-width: 14ch;
  }

  .foot-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }

}

@media (max-width: 640px) {
  .age-rest {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .mast,
  .cta-row,
  .search,
  .site-footer {
    position: static;
  }

  .search,
  .cta-row,
  .langs {
    display: none;
  }

  body {
    background: white;
  }
}
