/* Famili Passages — magazine-style Egypt family place writing */
:root {
  --night: #1b2a41;
  --night-soft: #2a3d5c;
  --ochre: #c9a227;
  --ochre-pale: #e8d5a3;
  --clay: #b86b4a;
  --mint: #eef4f1;
  --paper: #faf9f6;
  --rule: #ddd8ce;
  --text: #2a2f36;
  --soft: #5c6570;
  --serif: 'Literata', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --w: 1080px;
  --read: 640px;
}

*, *::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.72; color: var(--text); background: var(--paper); }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--night-soft); text-decoration: underline; text-decoration-color: var(--ochre-pale); text-underline-offset: 3px; }
a:hover { color: var(--clay); }

.frame { max-width: var(--w); margin: 0 auto; padding: 0 1.35rem; }

/* Header — ruled line magazine */
.site-head { border-bottom: 3px double var(--night); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.site-head__row { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; gap: 1rem; }
.masthead { text-align: left; }
.masthead__kicker { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.masthead__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--night); line-height: 1.2; }
.site-nav { display: flex; gap: 1.4rem; list-style: none; }
.site-nav a { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--soft); }
.site-nav a.active, .site-nav a:hover { color: var(--night); }
.nav-toggle { display: none; border: 1px solid var(--rule); background: var(--mint); padding: .35rem .65rem; font-size: .72rem; font-weight: 700; cursor: pointer; }

/* Cover */
.cover { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 420px; border-bottom: 1px solid var(--rule); }
.cover__text { padding: 3.5rem 2rem 3rem 0; display: flex; flex-direction: column; justify-content: center; }
.cover__issue { font-size: .68rem; text-transform: uppercase; letter-spacing: .2em; color: var(--ochre); font-weight: 700; margin-bottom: 1rem; }
.cover h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.08; font-weight: 600; color: var(--night); margin-bottom: 1rem; }
.cover__deck { font-size: 1.05rem; color: var(--soft); max-width: 420px; margin-bottom: 1.5rem; }
.cover__go { display: inline-block; background: var(--night); color: #fff; padding: .7rem 1.25rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.cover__go:hover { background: var(--night-soft); color: #fff; }
.cover__visual { background: var(--mint); position: relative; overflow: hidden; }
.cover__visual img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.cover__visual::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ochre); z-index: 2; }

/* Index list */
.index { padding: 3.5rem 0 4rem; }
.index__rule { border-top: 1px solid var(--night); padding-top: .65rem; margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: baseline; }
.index__rule h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.index__rule span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--soft); }
.passages { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--rule); }
.passage { display: grid; grid-template-columns: 72px 200px 1fr; gap: 1.5rem; align-items: center; padding: 1.35rem 0; border-bottom: 1px solid var(--rule); transition: background .2s; }
.passage:hover { background: var(--mint); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }
.passage__no { font-family: var(--serif); font-size: 1.75rem; color: var(--ochre); font-weight: 600; line-height: 1; }
.passage__thumb { border-radius: 2px; overflow: hidden; aspect-ratio: 4/3; }
.passage__thumb img { width: 100%; height: 100%; object-fit: cover; }
.passage__tag { font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: var(--clay); font-weight: 700; }
.passage h3 { font-family: var(--serif); font-size: 1.15rem; margin: .25rem 0 .35rem; font-weight: 600; }
.passage h3 a { color: var(--night); text-decoration: none; }
.passage h3 a:hover { color: var(--clay); }
.passage p { font-size: .86rem; color: var(--soft); }
.passage__len { font-size: .7rem; color: var(--soft); margin-top: .35rem; }

/* Pull */
.pull { background: var(--night); color: #fff; padding: 3rem 0; text-align: center; }
.pull p { font-family: var(--serif); font-size: 1.35rem; max-width: 560px; margin: 0 auto; line-height: 1.55; font-weight: 500; }
.pull small { display: block; margin-top: 1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; opacity: .55; }

/* Article */
.story { padding-bottom: 4rem; }
.story-hero { height: 36vh; min-height: 240px; max-height: 380px; overflow: hidden; }
.story-hero img { width: 100%; height: 100%; object-fit: cover; }
.story-body { padding-top: 2rem; }
.story-path { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--soft); margin-bottom: 1rem; }
.story-title { max-width: var(--read); margin-bottom: 1.75rem; }
.story-title__label { font-size: .65rem; text-transform: uppercase; letter-spacing: .14em; color: var(--clay); font-weight: 700; }
.story-title h1 { font-family: var(--serif); font-size: clamp(1.75rem, 3.5vw, 2.45rem); line-height: 1.12; margin: .4rem 0 .5rem; font-weight: 600; }
.story-title__meta { font-size: .8rem; color: var(--soft); }
.story-cols { display: grid; grid-template-columns: 1fr 180px; gap: 2.5rem; }
.body { max-width: var(--read); }
.body .drop { font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--night-soft); margin-bottom: 1.5rem; line-height: 1.8; }
.body h2 { font-family: var(--serif); font-size: 1.3rem; color: var(--night); margin: 2rem 0 .65rem; font-weight: 600; }
.body p { margin-bottom: 1rem; color: #3d444c; }
.body ul { margin: 0 0 1rem 1.2rem; color: #3d444c; }
.body li { margin-bottom: .35rem; }
.callout { border: 1px solid var(--rule); border-left: 4px solid var(--ochre); padding: 1rem 1.15rem; margin: 1.5rem 0; background: var(--mint); }
.callout strong { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--clay); margin-bottom: .3rem; }
.callout p { margin: 0; font-size: .9rem; }
.more { position: sticky; top: 4.5rem; border-top: 2px solid var(--night); padding-top: .75rem; }
.more h3 { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--soft); margin-bottom: .65rem; }
.more a { display: block; font-size: .82rem; font-weight: 600; color: var(--night); text-decoration: none; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.more a:hover { color: var(--clay); }

/* Static */
.static { padding: 3.5rem 0 4.5rem; }
.static h1 { font-family: var(--serif); font-size: 2.1rem; margin-bottom: .75rem; }
.static-lead { color: var(--soft); margin-bottom: 2rem; max-width: 520px; }
.static h2 { font-family: var(--serif); font-size: 1.2rem; margin: 1.5rem 0 .5rem; color: var(--night); }
.static p { margin-bottom: .85rem; max-width: 580px; color: #3d444c; }
.static ul { margin: 0 0 1rem 1.2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.field { display: grid; gap: .9rem; max-width: 420px; }
.field label { display: grid; gap: .25rem; font-size: .82rem; font-weight: 600; }
.field input, .field textarea { padding: .7rem; border: 1px solid var(--rule); font: inherit; background: #fff; }
.send { background: var(--night); color: #fff; border: none; padding: .7rem 1.2rem; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }

/* Footer */
.site-foot { border-top: 3px double var(--night); padding: 2.5rem 0 1rem; margin-top: 2rem; }
.site-foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 1.5rem; }
.site-foot strong { font-family: var(--serif); font-size: 1.05rem; display: block; margin-bottom: .35rem; }
.site-foot p { font-size: .84rem; color: var(--soft); }
.site-foot h4 { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; color: var(--clay); margin-bottom: .55rem; }
.site-foot a { display: block; font-size: .84rem; color: var(--soft); text-decoration: none; margin-bottom: .3rem; }
.site-foot a:hover { color: var(--night); }
.site-foot__end { display: flex; justify-content: space-between; font-size: .7rem; color: var(--soft); padding-top: 1rem; border-top: 1px solid var(--rule); flex-wrap: wrap; gap: .5rem; }

@media (max-width: 860px) {
  .cover, .passage, .story-cols, .site-foot__grid, .split { grid-template-columns: 1fr; }
  .passage { gap: 1rem; }
  .passage__thumb { max-width: 280px; }
  .cover__text { padding: 2.5rem 0; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: fixed; right: 0; top: 0; bottom: 0; width: 70%; max-width: 280px; background: var(--paper); flex-direction: column; padding: 4rem 1.25rem; border-left: 1px solid var(--rule); z-index: 40; }
  .site-nav.open { display: flex; }
}
