/* Muse Visit Journal — editorial Egypt museum guides */
:root {
  --ink: #1a2332;
  --ink-soft: #2d3a4f;
  --lapis: #1e3a5f;
  --lapis-deep: #0f2440;
  --gold: #b8954a;
  --gold-light: #d4b96e;
  --terracotta: #9e5a42;
  --parchment: #f3efe4;
  --paper: #faf8f3;
  --line: #ddd5c4;
  --muted: #6d7a8a;
  --font: 'Source Sans 3', system-ui, sans-serif;
  --serif: 'Lora', Georgia, serif;
  --max: 1140px;
  --read: 680px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lapis); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
a:hover { color: var(--terracotta); border-bottom-color: var(--gold-light); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.skip { position: absolute; top: -100px; left: 1rem; background: var(--lapis); color: #fff; padding: .5rem 1rem; z-index: 999; }
.skip:focus { top: 1rem; }

/* Header — museum placard bar */
.top { background: var(--parchment); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.top__row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; }
.brand { display: flex; align-items: baseline; gap: .75rem; color: var(--ink); border: none; }
.brand:hover { color: var(--ink); border: none; }
.brand__tag { font-size: .65rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); font-weight: 700; padding: .25rem .5rem; border: 1px solid var(--gold); }
.brand__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.menu { display: flex; gap: 1.75rem; list-style: none; }
.menu a { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); border: none; }
.menu a.is-here, .menu a:hover { color: var(--lapis); }
.burger { display: none; background: none; border: 1px solid var(--line); padding: .4rem .6rem; font-size: .75rem; cursor: pointer; }

/* Home masthead */
.mast { padding: 4rem 0 3rem; background: var(--parchment); border-bottom: 1px solid var(--line); }
.mast__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: end; }
.mast__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .22em; color: var(--terracotta); font-weight: 700; margin-bottom: 1rem; }
.mast h1 { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; line-height: 1.08; color: var(--ink); margin-bottom: 1.25rem; }
.mast__lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 2rem; }
.mast__cta { display: inline-flex; align-items: center; gap: .5rem; background: var(--lapis); color: #fff; padding: .85rem 1.5rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: none; border-radius: var(--radius); }
.mast__cta:hover { background: var(--lapis-deep); color: #fff; border: none; }
.mast__img { border-radius: var(--radius); overflow: hidden; box-shadow: 12px 12px 0 var(--gold-light); }
.mast__img img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* Stats strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--paper); }
.strip__cell { padding: 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.strip__cell:last-child { border-right: none; }
.strip__num { font-family: var(--serif); font-size: 2rem; color: var(--lapis); display: block; }
.strip__lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* Bento guides grid */
.catalog { padding: 4.5rem 0; }
.catalog__head { margin-bottom: 2.5rem; max-width: 560px; }
.catalog__head h2 { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin-bottom: .75rem; }
.catalog__head p { color: var(--muted); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.tile { background: var(--paper); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s, transform .3s; }
.tile:hover { box-shadow: 0 12px 40px rgba(26,35,50,.1); transform: translateY(-3px); }
.tile--a { grid-column: span 7; display: grid; grid-template-columns: 1.2fr 1fr; }
.tile--b { grid-column: span 5; }
.tile--c { grid-column: span 4; }
.tile--d { grid-column: span 4; }
.tile--e { grid-column: span 4; }
.tile__img { overflow: hidden; }
.tile--a .tile__img { min-height: 280px; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; transition: transform .5s; }
.tile:hover .tile__img img { transform: scale(1.04); }
.tile__body { padding: 1.5rem; }
.tile__num { font-family: var(--serif); font-size: .85rem; color: var(--gold); font-weight: 600; margin-bottom: .35rem; }
.tile__cat { font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: var(--terracotta); font-weight: 700; }
.tile h3 { font-family: var(--serif); font-size: 1.2rem; margin: .4rem 0 .6rem; line-height: 1.25; font-weight: 600; }
.tile h3 a { color: var(--ink); border: none; }
.tile h3 a:hover { color: var(--lapis); }
.tile p { font-size: .88rem; color: var(--muted); margin-bottom: .75rem; }
.tile__meta { font-size: .74rem; color: var(--muted); }

/* Quote band */
.band { background: var(--lapis-deep); color: #fff; padding: 4rem 0; }
.band__inner { max-width: 720px; margin: 0 auto; text-align: center; padding: 0 1.5rem; }
.band blockquote { font-family: var(--serif); font-size: 1.45rem; font-style: italic; line-height: 1.55; color: var(--gold-light); margin-bottom: 1rem; }
.band cite { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; opacity: .7; font-style: normal; }

/* Tags */
.tags { padding: 3rem 0 4rem; }
.tags__list { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.tag { padding: .5rem 1rem; border: 1px solid var(--line); font-size: .82rem; color: var(--ink-soft); border-radius: 100px; }
.tag:hover { border-color: var(--gold); color: var(--lapis); }

/* Article */
.article { padding-bottom: 4rem; }
.article__banner { position: relative; height: 42vh; min-height: 300px; max-height: 480px; overflow: hidden; }
.article__banner img { width: 100%; height: 100%; object-fit: cover; }
.article__fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--paper) 0%, transparent 50%); }
.article__wrap { margin-top: -3.5rem; position: relative; z-index: 2; }
.crumb { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1.25rem; }
.art-head { max-width: var(--read); margin-bottom: 2.5rem; }
.art-head__cat { color: var(--terracotta); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.art-head h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.12; margin: .5rem 0 1rem; font-weight: 600; }
.art-head__meta { font-size: .84rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.art-grid { display: grid; grid-template-columns: 1fr 220px; gap: 3rem; align-items: start; }
.prose { max-width: var(--read); }
.prose .lead { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--ink-soft); line-height: 1.85; margin-bottom: 2rem; }
.prose h2 { font-family: var(--serif); font-size: 1.5rem; color: var(--lapis); margin: 2.5rem 0 1rem; font-weight: 600; }
.prose p { margin-bottom: 1.15rem; color: #3a4555; }
.prose ul { margin: 0 0 1.25rem 1.4rem; color: #3a4555; }
.prose li { margin-bottom: .45rem; }
.fig { margin: 2rem 0; border: 1px solid var(--line); }
.fig figcaption { padding: .8rem 1.1rem; font-size: .8rem; color: var(--muted); background: var(--parchment); border-top: 1px solid var(--line); }
.placard { background: var(--parchment); border-left: 3px solid var(--gold); padding: 1.35rem 1.5rem; margin: 2rem 0; }
.placard strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--terracotta); margin-bottom: .4rem; }
.placard p { margin: 0; font-size: .94rem; }
.sidebar { position: sticky; top: 5rem; border: 1px solid var(--line); padding: 1.25rem; background: var(--parchment); }
.sidebar h3 { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .9rem; }
.sidebar a { display: block; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.sidebar a:last-child { border-bottom: none; }
.sidebar a:hover { color: var(--lapis); }

/* Static pages */
.page { padding: 4rem 0 5rem; }
.page h1 { font-family: var(--serif); font-size: 2.4rem; margin-bottom: 1rem; font-weight: 600; }
.page h2 { font-family: var(--serif); font-size: 1.35rem; color: var(--lapis); margin: 2rem 0 .75rem; }
.page-lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 2rem; max-width: 600px; }
.page p { margin-bottom: 1rem; color: #3a4555; max-width: 640px; }
.page ul { margin: 0 0 1rem 1.4rem; }
.page-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.form { max-width: 480px; display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; }
.form input, .form textarea { padding: .8rem; border: 1px solid var(--line); font: inherit; background: #fff; }
.btn { display: inline-block; background: var(--lapis); color: #fff; padding: .8rem 1.4rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border: none; cursor: pointer; }
.btn:hover { background: var(--lapis-deep); color: #fff; }

/* Footer */
.foot { background: var(--ink); color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot strong { font-family: var(--serif); font-size: 1.2rem; color: #fff; display: block; margin-bottom: .5rem; }
.foot p { font-size: .86rem; opacity: .75; }
.foot small { font-size: .74rem; opacity: .45; display: block; margin-top: 1rem; }
.foot h4 { font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-light); margin-bottom: .8rem; }
.foot a { color: rgba(255,255,255,.7); border: none; font-size: .86rem; display: block; margin-bottom: .4rem; }
.foot a:hover { color: #fff; }
.foot__base { display: flex; justify-content: space-between; padding-top: 1.25rem; font-size: .74rem; opacity: .4; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 900px) {
  .mast__grid, .tile--a, .foot__grid, .page-2col, .art-grid { grid-template-columns: 1fr; }
  .tile--a, .tile--b, .tile--c, .tile--d, .tile--e { grid-column: span 12; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .burger { display: block; }
  .menu { display: none; position: fixed; inset: 0 0 0 30%; background: var(--parchment); flex-direction: column; padding: 5rem 1.5rem; z-index: 99; border-left: 1px solid var(--line); }
  .menu.is-open { display: flex; }
}
