﻿/* =============================================================================
 *  heritage.css — نظام التصميم الموصوف
 * -----------------------------------------------------------------------------
 *  يُحمَّل بعد base.css و themes.css، فيرسم الطابع النهائي فوق البنية.
 *  المقاس الأهم: الخطوط الثلاثة، وحدات السدّادو والجص المتكرّرة،
 *  الإطارات المزدوجة، التعتيم المتدرّج فوق الصور، الحواف الصغيرة،
 *  والتناوب بين الورق والرمل والأخضر والبني.
 * ============================================================================= */

/* ---------- ١) الخطوط الثلاثية والمقاسات الدقيقة ---------- */
body {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'rlig' 1, 'calt' 1, 'liga' 1, 'kern' 1;
  font-variant-ligatures: common-ligatures contextual;
}

h1, h2, h3, .u-display { font-family: var(--font-display); font-weight: 700; }

/* اسم العائلة: رقعة حقيقي لا صورة */
.brand-text,
.hero-title,
.hero-sub,
.footer-name,
.hero-founder,
.tree-node-name,
.news-title,
.poem-title {
  font-family: var(--font-head);
  letter-spacing: normal;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
  font-feature-settings: 'rlig' 1, 'calt' 1, 'liga' 1, 'kern' 1;
}

.brand-text { font-size: 23px; font-weight: 700; line-height: 1.5; }
.nav a { font-size: 12px; }
.nav a.active { font-weight: 600; }

.hero { min-height: 660px; }
.hero-title { font-size: clamp(52px, 6.4vw, 98px); font-weight: 700; line-height: 1.34; color: #fdf5e4; }
.hero-sub { font-family: var(--font-head); font-size: 25px; font-weight: 400; line-height: 1.75; color: var(--accent-3); }
.hero-desc { font-size: 13px; line-height: 2.1; }

.section-head h2 { font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1.9; }
.section-head p { font-size: 12px; line-height: 2; }

.tree-node.is-root .tree-node-name { font-size: 22px; font-weight: 700; }
.tree-node:not(.is-root) .tree-node-name { font-size: 17px; font-weight: 700; }

.poem-title { font-size: 26px; font-weight: 700; }
.poem-lines, .poem-preview { font-family: var(--font-display); line-height: 2; }
.poem-preview { font-size: 17px; }
.story-title { font-family: var(--font-display); font-size: 25px; font-weight: 700; }
.story-preview { font-size: 12px; line-height: 2.1; }
.ach-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.ach-text { font-size: 11px; }
.news-title { font-size: 32px; font-weight: 400; }


/* ---------- ٢) ملمس الخلفية: كريمية + تدرّج ذهبي + نجوم جص ---------- */
/* ملاحظة أداء: الخلفية المبلّطة تبقى من نجمة الجص البسيطة (مستطيلان).
   الشمسة الأندلسية (١٣٦ مسارًا) لا تُبلّط — ثقلها يعلّق الرسم. */
.page {
  background:
    radial-gradient(140% 60% at 50% 0%, rgba(210, 162, 79, .08), transparent 70%),
    var(--bg);
}
.page::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .05;
  background-image: var(--gypsum-star);
  background-repeat: repeat;
  background-size: 56px 56px;
}
.page > .site-header, .page > main, .page > .footer { position: relative; z-index: 1; }

/* خامة الصفحة — طبقة فوق الخلفية، تُخفى تمامًا إن لم يخترِ العميل خامة */
.page::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--page-tex);
  background-repeat: repeat;
  background-size: 420px 420px;
  opacity: var(--page-tex-opacity);
  mix-blend-mode: multiply;
}


/* ---------- ٣) الإطار الجانبي (السدّادو) — أكثر عنصر يثبت الهوية ---------- */
.page-rail {
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 45;
  width: var(--rail-w, 18px);
  background-image: var(--sadu-side);
  background-repeat: repeat-y;
  background-size: 46px 92px;
  pointer-events: none;
}
.page-rail::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: 0;
  width: 2px; background: var(--accent);
  opacity: .55;
  box-shadow: 0 0 12px rgba(179, 129, 61, .35);
}
.page-rail.is-end { inset-inline-start: auto; inset-inline-end: 0; }
.page-rail.is-end::after { inset-inline-end: auto; inset-inline-start: 0; }

@media (min-width: 1200px) { .page { --rail-w: 34px; } }
@media (min-width: 1560px) { .page { --rail-w: 48px; } }
@media (max-width: 899px)  { .page { --rail-w: 12px; } }
@media (max-width: 560px)  { .page-rail { display: none; } }


/* ---------- ٤) فواصل الأقسام: أشرطة فوق بعضها ومربع ورقي مائل ---------- */
.divider {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2.2rem; width: min(320px, 80%);
}
.divider i { display: block; height: 14px; flex: 1 1 auto; }
.divider .d-top {
  background-image: var(--sadu-h);
  background-repeat: repeat-x;
  background-size: 80px 14px;
  opacity: .9;
}
.divider .d-mid {
  flex: 0 0 auto; width: 62px; height: 62px; margin-inline: -1px;
  background: var(--surface);
  border: 2px solid var(--accent);
  outline: 5px solid var(--surface-2);
  rotate: 45deg;
  display: grid; place-items: center;
}
.divider .d-mid span {
  rotate: -45deg; width: 26px; height: 26px;
  background-image: var(--sadu-diamond);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* شريط مسنّن رفيع أسفل الترويسة */
.site-header::after {
  content: ""; position: absolute; inset-block-end: -3px; inset-inline: 0;
  height: 9px; pointer-events: none;
  background-image: var(--triangles);
  background-repeat: repeat-x;
  background-size: 28px 9px;
  opacity: .55;
}

/* بنر مسنّن أعلى التذييل */
.footer {
  position: relative; overflow: hidden;
  background: var(--dark-bg);
  color: var(--dark-fg);
  border-block-start: none;
}
/* الشمسة الأندلسية مجنزلة من Openclipart (CC0) — نسخة واحدة خلف التذييل.
   لا تُستخدم كقناع متكرّر أبدًا: ١٣٦ مسارًا تثقل الرسم وتُعلّق الصفحة. */
.footer::after {
  content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  translate: -50% -50%;
  width: 320px; height: 320px; pointer-events: none;
  opacity: .1;
  background-image: var(--rosette);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: invert(1);
}
.footer::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 18px;
  background-image: var(--zigzag);
  background-repeat: repeat-x;
  background-size: 26px 18px;
  opacity: .9;
}
.footer-name { color: #fdf5e4; }
.footer-dua { color: var(--accent-3); }
.footer-copy { color: var(--muted); }


/* ---------- ٥) الزخرفة تحت العناوين: خط متدرّج ومجموعة معينات ---------- */
.section-head .orn {
  display: flex; align-items: center; gap: 8px;
  width: 168px; margin: 0.6rem auto 0.35rem;
}
.section-head .orn::before,
.section-head .orn::after {
  content: ""; flex: 1 1 auto; height: 1px;
}
.section-head .orn::before { background: linear-gradient(to left, transparent, var(--accent)); }
.section-head .orn::after { background: linear-gradient(to right, transparent, var(--accent)); }
.section-head .orn i {
  width: 76px; height: 12px; flex: 0 0 auto;
  background-image: var(--title-diamonds);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
/* المواصفة لا تضع خطًّا تحت عنوان القسم */
.section-head h2::after { display: none; }


/* ---------- ٦) الواجهة الرئيسية ---------- */
.hero-bg {
  background-size: cover;
  background-position: 42% 38%;
  background-repeat: no-repeat;
}
.hero::after { box-shadow: inset 0 0 160px rgba(14, 9, 4, .72); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  opacity: .14;
  background-image: var(--hero-cross);
  background-repeat: repeat;
  background-size: 64px 40px;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 28%, transparent 60%);
  mask-image: linear-gradient(270deg, #000 0%, #000 28%, transparent 60%);
}
.hero-inner {
  width: 58%; max-width: 730px; text-align: center;
  padding: 66px 34px 52px; margin-inline: 0 auto;
  animation: rise-in .9s ease both;
}
.hero-mark { filter: brightness(1.85) saturate(1.18); }
.hero-rule {
  background-image: var(--sadu-diamond);
  background-size: 44px 34px; background-repeat: repeat-x;
  height: 34px; border: 0;
}

/* الإطار الداخلي والزوايا الذهبية */
.hero-frame { position: absolute; inset: 16px; z-index: 3; pointer-events: none; }
.hero-frame .corner { position: absolute; width: 24px; height: 24px; border: 2px solid var(--accent-3); opacity: .85; }
.hero-frame .corner::after { content: ""; position: absolute; width: 6px; height: 6px; background: var(--accent-3); rotate: 45deg; }
.hero-frame .c-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.hero-frame .c-tr::after { top: 5px; right: 5px; }
.hero-frame .c-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hero-frame .c-tl::after { top: 5px; left: 5px; }
.hero-frame .c-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.hero-frame .c-br::after { bottom: 5px; right: 5px; }
.hero-frame .c-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.hero-frame .c-bl::after { bottom: 5px; left: 5px; }


/* ---------- ٧) الأزرار ---------- */
.btn-solid, .btn-hero, .primary-button {
  background-image: linear-gradient(180deg, var(--brand-2), var(--brand));
  border: 1px solid var(--bark);
  color: var(--surface);
  border-radius: 3px;
  min-height: 44px;
  padding: 10px 19px;
  font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 5px 14px rgba(143, 48, 39, .28);
}
.btn-solid:hover, .btn-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(143, 48, 39, .4);
  filter: brightness(1.06);
}
.btn-solid svg, .btn-hero svg { color: var(--accent-3); }
.btn-hero { min-height: 52px; font-size: 13px; padding-inline: 24px; }
.btn-ghost {
  border: 1px solid var(--line-2); background: transparent; color: var(--bark);
  border-radius: 3px; min-height: 38px; padding: 8px 14px; font-size: 11px;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--brand); }


/* ---------- ٨) النوافذ المنبثقة ---------- */
.modal {
  background: rgba(14, 10, 8, .72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fade-in .2s ease-out;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--accent);
  outline: 1px solid rgba(179, 129, 61, .32);
  outline-offset: -9px;
  border-radius: 4px;
  width: 560px;
  max-height: 92dvh;
  padding: 40px;
  animation: modal-in .3s ease-out;
}
.modal-box::before {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; height: 9px;
  background-image: var(--triangles);
  background-repeat: repeat-x;
  background-size: 28px 9px;
  pointer-events: none;
}
.modal-box.is-wide { width: 640px; }
.modal-box.is-form { width: 660px; }
.modal-box.is-slim { width: 460px; }
.modal-close {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #f1e7d5; color: var(--bark);
  display: grid; place-items: center; padding: 7px;
}
.modal-close:hover { background: var(--accent-3); color: var(--text); }

.form-heading { border-block-end: 1px solid var(--line); padding-block-end: 16px; margin-block-end: 22px; }
.form-heading h2 { font-family: var(--font-display); font-size: 28px; line-height: 1.7; font-weight: 400; }
.form-heading p { font-size: 11px; color: var(--muted); line-height: 2; margin-block-start: 6px; }
.field > span { font-size: 11px; color: #6f6047; font-weight: 500; }
.field input, .field textarea, .field select {
  border-radius: 3px; border: 1px solid var(--line); background: #fffdf8;
  font-size: 12px; padding: 10px 12px; color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(179, 129, 61, .16);
}
.field .hint { font-size: 9px; color: var(--muted); line-height: 1.8; }
select optgroup { font-weight: 700; color: var(--stone); background: var(--surface-2); }


/* ---------- ٩) الأقسام: الورق والرمل والأخضر والبني ---------- */
.section { padding-block: 70px; }
.section-head { margin-block-end: 2.2rem; }

/* الديوان: خلفية رملية متدرّجة */
#poetry { background: linear-gradient(180deg, #ecdfc4, #e6d8bc); }

/* القصص: خلفية عاجية */
#stories { background: var(--surface); }

/* الإنجازات: مساحة خضراء عميقة */
#achievements {
  background: var(--ach-bg);
  color: var(--ach-fg);
  position: relative; overflow: hidden;
}
#achievements::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 96px;
  background-image: var(--gypsum-arch);
  background-repeat: repeat-x;
  background-size: 96px 64px;
  opacity: .12;
  pointer-events: none;
}
#achievements .section-head h2, #achievements .section-head p { color: #f2ece0; }
#achievements .card { background: var(--surface); color: var(--text); }
#achievements .card::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 9px;
  background-image: var(--sadu-v);
  background-repeat: repeat-x;
  background-size: 22px 9px;
}

/* الأخبار: خلفية بنية داكنة */
#news {
  background: var(--dark-bg);
  color: var(--dark-fg);
  position: relative; overflow: hidden;
}
#news::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .1;
  background-image: var(--sadu-cross);
  background-repeat: repeat;
  background-size: 64px 40px;
}
#news .section-head h2, #news .section-head p { color: var(--dark-fg); }
#news .card {
  background: rgba(253, 250, 242, .06);
  border-color: rgba(232, 201, 138, .28);
  color: var(--dark-fg);
}
#news .card h3,
#news .card p,
#news .card time,
#news .card span,
#news .card .card-tag { color: var(--dark-fg); }
#news .card .card-tag {
  background: rgba(232, 201, 138, .14);
  border-color: rgba(232, 201, 138, .35);
}
#news .card time { color: var(--accent-3); }


/* ---------- ١٠) بطاقات الديوان والقصص ---------- */
.poem-card, .story-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 28px 25px;
  position: relative; overflow: hidden;
  box-shadow: 0 10px 26px rgba(74, 56, 38, .1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.poem-card:hover, .story-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(74, 56, 38, .16); }
.poem-card::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 9px;
  background-image: var(--triangles);
  background-repeat: repeat-x; background-size: 28px 9px;
}
.story-card::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 9px;
  background-image: var(--zigzag);
  background-repeat: repeat-x; background-size: 26px 9px;
}
#poetry .grid-3 { grid-template-columns: repeat(3, 1fr); }
.story-preview {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ---------- ١١) الخط الزمني: عمودان بنسبة ١ : ١٫٦ ---------- */
#history .history-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 90px;
  align-items: start;
}
#history .history-photo { display: block; }
#history .timeline::before { background: var(--tree-line); }
#history .tl-year { font-family: var(--font-display); color: var(--accent); }


/* ---------- ١٢) شجرة العائلة ---------- */
.tree-scroll {
  background:
    radial-gradient(rgba(228, 216, 189, .55) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--surface);
}
.tree-node {
  width: 149px;
  background: #fffdf8;
  border-radius: 7px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(74, 56, 38, .08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tree-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(74, 56, 38, .16);
  border-color: var(--accent);
}
.tree-node.is-root {
  width: 174px !important;
  background: linear-gradient(180deg, var(--stone), var(--bark));
  border: 1px solid var(--accent);
  color: var(--accent-4);
}
.tree-node-photo {
  width: 62px; height: 76px;
  border-radius: 31px 31px 10px 10px;
}
.tree-node-photo::after { border-radius: 27px 27px 6px 6px; }
.tree-node.is-root .tree-node-name { color: var(--accent-4); }
.tree-node.is-root::after {
  content: "الجد المؤسس"; position: absolute; inset-block-start: -13px; inset-inline-start: 50%;
  translate: -50% 0;
  padding: 2px 10px; border-radius: 2px;
  background: var(--accent); color: #2a1c05;
  font-size: 9px; font-weight: 600;
}
.tree-links path { stroke: var(--tree-line); }


/* ---------- ١٣) الهيدر ---------- */
.site-header { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-inner { min-height: 97px; }
.nav a.active { color: var(--brand); }
.nav a.active::after {
  content: ""; position: absolute; inset-block-end: -7px; inset-inline-start: calc(50% - 3px);
  width: 6px; height: 6px; rotate: 45deg;
  background: var(--accent-2); box-shadow: 0 0 0 2px var(--surface);
}


/* ---------- ١٤) شريط إحصائي واختصارات الأقسام ---------- */
.statbar {
  background: var(--stone); color: #f0e3ca;
  padding: 7px 16px 15px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 22px;
  font-size: 11px; position: relative;
}
.statbar b { color: var(--accent-3); font-weight: 600; }
.statbar::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 11px;
  background-image: var(--triangles); background-repeat: repeat-x; background-size: 28px 11px;
}

.quick-links {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1216px; margin: 42px auto 0; padding-inline: clamp(1rem, 4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
}
.quick-link {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px; min-height: 92px;
  border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: background .2s ease;
}
.quick-link:nth-child(3n) { border-inline-end: 0; }
.quick-link:nth-last-child(-n+3) { border-block-end: 0; }
.quick-link:hover { background: var(--surface-2); }
.quick-link .ql-icon {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 3px;
  color: var(--brand);
}
.quick-link .ql-icon svg { width: 22px; height: 22px; }
.quick-link strong { display: block; font-family: var(--font-display); font-size: 17px; }
.quick-link small { font-size: 10px; color: var(--muted); line-height: 1.7; }
.quick-link .ql-arrow { margin-inline-start: auto; color: var(--accent); flex: 0 0 auto; }


/* ---------- ١٥) شريط المجلس التراثي ---------- */
.heritage-strip { position: relative; margin-block: 8px; overflow: hidden; background: var(--stone); }
.heritage-strip-photo { position: relative; isolation: isolate; }
.heritage-strip-photo img { display: block; width: 100%; height: clamp(300px, 38vw, 460px); object-fit: cover; }
.heritage-strip-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(270deg, rgba(20, 13, 6, .95), rgba(20, 13, 6, .78) 30%, rgba(20, 13, 6, .3) 62%, rgba(20, 13, 6, .05));
}
.heritage-strip-copy {
  position: absolute; inset-block: 0; inset-inline-start: 0; z-index: 2;
  width: min(600px, 54%);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 44px clamp(28px, 5vw, 72px);
  text-align: right;
}
.heritage-strip-eyebrow {
  font-size: 10px; letter-spacing: 1.6px; font-weight: 600; color: var(--accent-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.heritage-strip-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.heritage-strip-copy h2 { font-family: var(--font-head); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.6; color: #fdf5e4; }
.heritage-strip-copy p { font-size: 12px; line-height: 2.1; color: #e2d3b6; }


/* ---------- ١٦) الحركات ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}


/* ---------- ١٧) قواعد الجوال ---------- */
@media (max-width: 1000px) {
  #poetry .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .quick-link:nth-child(3n) { border-inline-end: 1px solid var(--line); }
  .quick-link:nth-child(2n) { border-inline-end: 0; }
  .quick-link:nth-last-child(-n+3) { border-block-end: 1px solid var(--line); }
  .quick-link:nth-last-child(-n+2) { border-block-end: 0; }
  #history .history-grid { grid-template-columns: 1fr; gap: 34px; }
  #history .history-photo { display: none; }
}

@media (max-width: 760px) {
  .section { padding-block: 48px; }
  .section-head h2 { font-size: 30px; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-inner { width: 100%; max-width: none; padding: 40px 20px 48px; }
  .hero-bg { height: 58%; top: auto; bottom: 0; background-position: 42% 100%; }
  .hero-frame { display: none; }
  .hero-title { font-size: clamp(58px, 20vw, 92px); }
  .hero-sub { font-size: 20px; }
  .hero-desc { font-size: 12px; }
  .hero::before {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 68%);
    mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 68%);
  }
  .modal-box { width: 100% !important; padding: 40px 22px 26px; }
  .quick-links { grid-template-columns: 1fr; }
  .quick-link { border-inline-end: 0 !important; border-block-end: 1px solid var(--line) !important; min-height: 80px; }
  .quick-link:last-child { border-block-end: 0 !important; }
  #poetry .grid-3, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .heritage-strip-copy {
    position: static; width: 100%; padding: 26px 22px 30px;
    background: rgba(26, 18, 10, .95); text-align: center; align-items: center;
  }
  .heritage-strip-eyebrow::before { display: none; }
  .news-title { font-size: 26px; }
  .divider .d-mid { width: 48px; height: 48px; }
  .divider .d-mid span { width: 20px; height: 20px; }
}

@media print {
  .page-rail, .divider, .site-header::after, .footer::before,
  .section-head .orn, .hero-frame { display: none !important; }
}