/* Egypt Tickets Folio — slip essays, not admission sales */
:root {
  --ink: #1e3a5f;
  --ink-soft: #3a5a7a;
  --cream: #f7f3eb;
  --linen: #e8e2d6;
  --rust: #a85c3a;
  --rust-pale: #d4b09a;
  --paper: #fffdf9;
  --muted: #7a7268;
  --rule: #d5cdc0;
  --serif: 'Cardo', Georgia, serif;
  --sans: 'Mulish', 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: #2e2e32; background: var(--cream); background-image: repeating-linear-gradient(0deg, transparent, transparent 27px, var(--linen) 27px, var(--linen) 28px); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--rust-pale); }
a:hover { color: var(--rust); }

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

/* Bar */
.folio-bar { background: var(--ink); color: rgba(255,255,255,.72); text-align: center; padding: .4rem; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; }

/* Header */
.folio-head { background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.folio-head__row { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; gap: 1rem; }
.folio-mark { display: flex; flex-direction: column; }
.folio-mark__sub { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); font-weight: 800; }
.folio-mark__name { font-family: var(--serif); font-size: 1.38rem; font-weight: 700; color: var(--ink); line-height: 1.05; }
.folio-nav { display: flex; gap: 1.35rem; list-style: none; }
.folio-nav a { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: none; }
.folio-nav a.on, .folio-nav a:hover { color: var(--ink); }
.folio-menu { display: none; background: var(--cream); border: 1px solid var(--rule); padding: .4rem .65rem; font-size: .72rem; font-weight: 700; cursor: pointer; color: var(--ink); }

/* Hero folio */
.folio-hero { padding: 2.75rem 0 3.5rem; }
.folio-hero__sheet { background: var(--paper); border: 1px solid var(--rule); box-shadow: 4px 4px 0 var(--linen), 8px 8px 24px rgba(30,58,95,.08); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.folio-hero__text { padding: 2.25rem 2rem; border-right: 1px solid var(--rule); }
.folio-hero__vol { font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); margin-bottom: .6rem; }
.folio-hero h1 { font-family: var(--serif); font-size: clamp(1.85rem, 3.5vw, 2.55rem); line-height: 1.1; font-weight: 700; color: var(--ink); margin-bottom: .85rem; }
.folio-hero__lead { color: var(--muted); font-size: .98rem; margin-bottom: 1.25rem; }
.folio-hero__link { display: inline-block; background: var(--rust); color: #fff; padding: .65rem 1.2rem; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border: none; }
.folio-hero__link:hover { background: var(--ink); color: #fff; }
.folio-hero__img img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

/* Slip index */
.slips { padding: 1rem 0 4rem; }
.slips__head { margin-bottom: 1.75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--ink); }
.slips__head h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.slips__head p { font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.slip-list { display: flex; flex-direction: column; gap: .85rem; }
.slip { background: var(--paper); border: 1px solid var(--rule); display: grid; grid-template-columns: 100px 1fr; overflow: hidden; transition: box-shadow .2s; position: relative; }
.slip::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rust); }
.slip:hover { box-shadow: 0 6px 20px rgba(30,58,95,.1); }
.slip--feat { grid-template-columns: 180px 1fr; }
.slip__thumb img { width: 100%; height: 100%; min-height: 90px; object-fit: cover; }
.slip__body { padding: .85rem 1rem .85rem 1.1rem; display: grid; grid-template-columns: 3.5rem 1fr; gap: .75rem; align-items: start; }
.slip__no { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--rust-pale); line-height: 1; }
.slip__content .tag { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.slip h3 { font-family: var(--serif); font-size: 1.02rem; font-weight: 700; line-height: 1.25; margin: .15rem 0 .2rem; }
.slip h3 a { color: var(--ink); border: none; }
.slip h3 a:hover { color: var(--rust); }
.slip p { font-size: .82rem; color: var(--muted); }

/* Article */
.folio-article { padding-bottom: 4rem; background: var(--paper); }
.folio-article__img { height: 33vh; min-height: 210px; max-height: 370px; overflow: hidden; }
.folio-article__img img { width: 100%; height: 100%; object-fit: cover; }
.folio-article__body { padding-top: 1.65rem; }
.crumb { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .7rem; }
.slip-head { max-width: var(--read); margin-bottom: 1.4rem; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
.slip-head__no { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--rust-pale); float: left; margin-right: .75rem; line-height: 1; }
.slip-head h1 { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.12; font-weight: 700; color: var(--ink); }
.slip-head__meta { font-size: .76rem; color: var(--muted); margin-top: .4rem; clear: both; }
.slip-cols { display: grid; grid-template-columns: 1fr 160px; gap: 2rem; }
.prose { max-width: var(--read); }
.prose .lede { font-family: var(--serif); font-size: 1.13rem; font-style: italic; color: var(--ink-soft); margin-bottom: 1.25rem; line-height: 1.75; }
.prose h2 { font-family: var(--serif); font-size: 1.26rem; color: var(--ink); margin: 1.65rem 0 .5rem; font-weight: 700; }
.prose p { margin-bottom: .9rem; color: #3a3a40; }
.prose ul { margin: 0 0 1rem 1.1rem; color: #3a3a40; }
.prose li { margin-bottom: .28rem; }
.note { background: var(--cream); border-left: 3px solid var(--rust); padding: .85rem .95rem; margin: 1.25rem 0; }
.note strong { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--rust); margin-bottom: .2rem; }
.note p { margin: 0; font-size: .87rem; }
.folio-side { position: sticky; top: 4rem; }
.folio-side h3 { font-size: .58rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .5rem; }
.folio-side a { display: block; font-size: .78rem; font-weight: 700; color: var(--ink); border: none; padding: .4rem 0; border-bottom: 1px dotted var(--rule); }

/* Static */
.static { padding: 3rem 0 4rem; background: var(--paper); }
.static h1 { font-family: var(--serif); font-size: 2rem; color: var(--ink); margin-bottom: .6rem; }
.static-lead { color: var(--muted); margin-bottom: 1.4rem; max-width: 500px; }
.static h2 { font-family: var(--serif); font-size: 1.18rem; margin: 1.25rem 0 .4rem; }
.static p { margin-bottom: .75rem; max-width: 540px; color: #3a3a40; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.frm { display: grid; gap: .8rem; max-width: 380px; }
.frm label { display: grid; gap: .2rem; font-size: .78rem; font-weight: 700; }
.frm input, .frm textarea { padding: .6rem; border: 1px solid var(--rule); font: inherit; background: #fff; }
.btn { background: var(--ink); color: #fff; border: none; padding: .6rem 1rem; font-weight: 800; font-size: .74rem; text-transform: uppercase; cursor: pointer; }

/* Footer */
.folio-foot { background: var(--ink); color: rgba(255,255,255,.7); padding: 2.25rem 0 1rem; margin-top: 2rem; }
.folio-foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.folio-foot strong { font-family: var(--serif); font-size: 1rem; color: #fff; display: block; margin-bottom: .3rem; }
.folio-foot p { font-size: .8rem; opacity: .6; }
.folio-foot h4 { font-size: .56rem; text-transform: uppercase; letter-spacing: .12em; color: var(--rust-pale); margin-bottom: .45rem; }
.folio-foot a { color: rgba(255,255,255,.55); font-size: .8rem; display: block; margin-bottom: .25rem; border: none; }
.folio-foot a:hover { color: #fff; }
.folio-foot__end { display: flex; justify-content: space-between; padding-top: .85rem; font-size: .66rem; opacity: .38; flex-wrap: wrap; gap: .35rem; }

@media (max-width: 860px) {
  .folio-hero__sheet, .slip, .slip--feat, .slip-cols, .folio-foot__grid, .cols { grid-template-columns: 1fr; }
  .folio-hero__text { border-right: none; border-bottom: 1px solid var(--rule); }
  .slip__body { grid-template-columns: 2.5rem 1fr; }
}
@media (max-width: 768px) {
  .folio-menu { display: block; }
  .folio-nav { display: none; position: fixed; inset: 0 0 0 30%; background: var(--paper); flex-direction: column; padding: 4rem 1.1rem; z-index: 40; border-left: 3px solid var(--rust); }
  .folio-nav.open { display: flex; }
}
