/* Egypt Visits Atlas — ledger-style place writing */
:root {
  --indigo: #1a2744;
  --indigo-mid: #2c3f63;
  --sand: #d4c4a8;
  --sand-light: #ebe3d4;
  --rust: #a64b33;
  --parchment: #f7f3eb;
  --ink: #242a33;
  --muted: #6b7280;
  --rule: #d8d0c4;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --max: 1100px;
  --read: 650px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--parchment); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo-mid); text-decoration: none; border-bottom: 1px solid var(--sand); }
a:hover { color: var(--rust); border-color: var(--rust); }

.box { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Top bar */
.ledger-top { background: var(--indigo); color: #fff; padding: .45rem 0; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.header { background: var(--parchment); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; gap: 1rem; }
.brand { display: flex; flex-direction: column; }
.brand__small { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rust); font-weight: 700; }
.brand__name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--indigo); line-height: 1.1; }
.navlist { display: flex; gap: 1.5rem; list-style: none; }
.navlist a { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: none; }
.navlist a.here, .navlist a:hover { color: var(--indigo); }
.menu-btn { display: none; background: var(--sand-light); border: 1px solid var(--rule); padding: .4rem .65rem; font-size: .72rem; font-weight: 700; cursor: pointer; }

/* Hero ledger */
.spread { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.spread__copy { padding: 3.5rem 2.5rem 3.5rem 0; display: flex; flex-direction: column; justify-content: center; }
.coord { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rust); font-weight: 700; margin-bottom: .85rem; }
.spread h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.06; font-weight: 600; color: var(--indigo); margin-bottom: 1rem; }
.spread__lead { color: var(--muted); font-size: 1.02rem; margin-bottom: 1.5rem; max-width: 440px; }
.spread__cta { display: inline-block; background: var(--rust); color: #fff; padding: .75rem 1.35rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: none; }
.spread__cta:hover { background: var(--indigo); color: #fff; }
.spread__photo { position: relative; min-height: 360px; }
.spread__photo img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.spread__stamp { position: absolute; bottom: 1.5rem; left: 1.5rem; background: var(--parchment); border: 2px solid var(--indigo); padding: .5rem .85rem; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--indigo); }

/* Registry */
.registry { padding: 3.5rem 0 4.5rem; }
.registry__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 2rem; padding-bottom: .75rem; border-bottom: 2px solid var(--indigo); }
.registry__head h2 { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; }
.registry__head span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.entries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.entry { background: #fff; border: 1px solid var(--rule); display: grid; grid-template-columns: 110px 1fr; overflow: hidden; transition: box-shadow .25s; }
.entry:hover { box-shadow: 0 8px 30px rgba(26,39,68,.08); }
.entry--full { grid-column: span 2; grid-template-columns: 220px 1fr; }
.entry__img { overflow: hidden; }
.entry__img img { width: 100%; height: 100%; min-height: 130px; object-fit: cover; }
.entry__body { padding: 1.15rem 1.25rem; }
.entry__ref { font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); }
.entry__loc { font-size: .72rem; color: var(--muted); margin: .2rem 0 .4rem; }
.entry h3 { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; margin-bottom: .35rem; line-height: 1.25; }
.entry h3 a { color: var(--indigo); border: none; }
.entry h3 a:hover { color: var(--rust); }
.entry p { font-size: .84rem; color: var(--muted); }

/* Quote strip */
.strip { background: var(--sand-light); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 2.5rem 0; text-align: center; }
.strip p { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--indigo); max-width: 600px; margin: 0 auto; line-height: 1.5; }

/* Article */
.record { padding-bottom: 4rem; }
.record__banner { height: 34vh; min-height: 220px; max-height: 360px; overflow: hidden; }
.record__banner img { width: 100%; height: 100%; object-fit: cover; }
.record__content { padding-top: 2rem; }
.breadcrumb { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; }
.record-head { max-width: var(--read); margin-bottom: 2rem; }
.record-head__ref { font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.record-head h1 { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.1; margin: .35rem 0 .5rem; font-weight: 600; }
.record-head__meta { font-size: .8rem; color: var(--muted); }
.record-grid { display: grid; grid-template-columns: 1fr 190px; gap: 2.5rem; }
.text { max-width: var(--read); }
.text .lede { font-family: var(--serif); font-size: 1.18rem; font-style: italic; color: var(--indigo-mid); margin-bottom: 1.5rem; line-height: 1.75; }
.text h2 { font-family: var(--serif); font-size: 1.35rem; color: var(--indigo); margin: 2rem 0 .65rem; font-weight: 600; }
.text p { margin-bottom: 1rem; color: #3a4048; }
.text ul { margin: 0 0 1rem 1.2rem; color: #3a4048; }
.text li { margin-bottom: .35rem; }
.margin-note { background: var(--sand-light); border-left: 3px solid var(--rust); padding: 1rem 1.15rem; margin: 1.5rem 0; }
.margin-note strong { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--rust); margin-bottom: .3rem; }
.margin-note p { margin: 0; font-size: .9rem; }
.links { position: sticky; top: 4.5rem; border: 1px solid var(--rule); padding: 1rem; background: #fff; }
.links h3 { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .65rem; }
.links a { display: block; font-size: .82rem; font-weight: 600; color: var(--indigo); border: none; padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.links a:last-child { border-bottom: none; }

/* Static */
.sheet { padding: 3.5rem 0 4.5rem; }
.sheet h1 { font-family: var(--serif); font-size: 2.2rem; margin-bottom: .75rem; }
.sheet-lead { color: var(--muted); margin-bottom: 2rem; max-width: 540px; }
.sheet h2 { font-family: var(--serif); font-size: 1.25rem; color: var(--indigo); margin: 1.5rem 0 .5rem; }
.sheet p { margin-bottom: .85rem; max-width: 580px; color: #3a4048; }
.sheet ul { margin: 0 0 1rem 1.2rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.form-grid { display: grid; gap: .9rem; max-width: 400px; }
.form-grid label { display: grid; gap: .25rem; font-size: .82rem; font-weight: 600; }
.form-grid input, .form-grid textarea { padding: .7rem; border: 1px solid var(--rule); font: inherit; background: #fff; }
.submit { background: var(--indigo); color: #fff; border: none; padding: .7rem 1.2rem; font-weight: 700; font-size: .78rem; text-transform: uppercase; cursor: pointer; }

/* Footer */
.base { background: var(--indigo); color: rgba(255,255,255,.75); padding: 2.75rem 0 1rem; margin-top: 2rem; }
.base__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.base strong { font-family: var(--serif); font-size: 1.15rem; color: #fff; display: block; margin-bottom: .4rem; }
.base p { font-size: .84rem; opacity: .75; }
.base h4 { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sand); margin-bottom: .55rem; }
.base a { color: rgba(255,255,255,.7); font-size: .84rem; display: block; margin-bottom: .3rem; border: none; }
.base a:hover { color: #fff; }
.base__end { display: flex; justify-content: space-between; padding-top: 1rem; font-size: .7rem; opacity: .45; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 860px) {
  .spread, .entries, .entry, .entry--full, .record-grid, .base__grid, .two { grid-template-columns: 1fr; }
  .entry, .entry--full { display: block; }
  .spread__copy { padding: 2.5rem 0; }
}
@media (max-width: 768px) {
  .menu-btn { display: block; }
  .navlist { display: none; position: fixed; inset: 0 0 0 28%; background: var(--parchment); flex-direction: column; padding: 4.5rem 1.25rem; z-index: 40; border-left: 1px solid var(--rule); }
  .navlist.show { display: flex; }
}
