/* Philly Dynamic IFS — Monastic, clean, burgundy */
:root{
  --ink:#1d1616;
  --muted:#5b4a4a;
  --bg:#fbf7f4;
  --paper:#ffffff;
  --wash:#f3ece8;
  --accent:#7a1f2b;       /* burgundy */
  --accent2:#5a1620;      /* deep burgundy */
  --line:#e6d7d2;
  --shadow: 0 12px 32px rgba(29,22,22,.08);
  --radius: 18px;
  --max: 980px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background: radial-gradient(1200px 800px at 20% 0%, #fff 0%, var(--bg) 55%, #f6efec 100%);
  font-family: ui-serif, "Cormorant Garamond", Georgia, "Times New Roman", serif;
  line-height:1.55;
  letter-spacing:.01em;
}

a{color:var(--accent); text-decoration:none}
a:hover{color:var(--accent2); text-decoration:underline}
small{color:var(--muted)}
p{margin:0 0 1rem}
ul{margin:.25rem 0 1.25rem; padding-left:1.2rem}
li{margin:.35rem 0}
hr{
  border:0;
  border-top:1px solid var(--line);
  margin:1.5rem 0;
}

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{left:12px; top:12px; width:auto; height:auto; padding:.6rem .8rem; background:var(--paper); border:1px solid var(--line); border-radius:10px; z-index:9999}

header{
  position:sticky;
  top:0;
  backdrop-filter:saturate(140%) blur(10px);
  background: rgba(251,247,244,.82);
  border-bottom:1px solid rgba(230,215,210,.75);
  z-index:50;
}
.navwrap{
  max-width:var(--max);
  margin:0 auto;
  padding:.9rem 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.brand{
  display:flex;
  align-items:baseline;
  gap:.55rem;
  min-width: 220px;
}
.brand .mark{
  width:14px; height:14px;
  border-radius:3px;
  background: linear-gradient(135deg, var(--accent), #9a2a3a);
  box-shadow:0 6px 18px rgba(122,31,43,.25);
}
.brand .title{
  font-weight:700;
  letter-spacing:.02em;
  font-size:1.05rem;
}
.brand .sub{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size:.78rem;
  color:var(--muted);
  letter-spacing:.03em;
}
nav{
  display:flex;
  gap:.85rem;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}
nav a{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size:.92rem;
  color:var(--ink);
  padding:.35rem .55rem;
  border-radius:10px;
}
nav a[aria-current="page"]{
  background: rgba(122,31,43,.08);
  color: var(--accent2);
}
nav a:hover{
  background: rgba(122,31,43,.06);
  text-decoration:none;
}

main{
  max-width:var(--max);
  margin:0 auto;
  padding: 2.2rem 1rem 3.2rem;
}

.hero{
  display:grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 1.4rem;
  align-items:start;
  margin-top: .6rem;
}
@media (max-width: 860px){
  .hero{grid-template-columns:1fr; gap:1rem}
}

.card{
  background: rgba(255,255,255,.78);
  border:1px solid rgba(230,215,210,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pad{padding: 1.35rem 1.35rem 1.2rem}

.kicker{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--accent2);
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:650;
  font-size:.76rem;
  margin-bottom:.35rem;
}
h1{
  margin:.2rem 0 .75rem;
  font-size: 2.05rem;
  line-height:1.15;
  letter-spacing:.01em;
}
h2{
  margin: 0 0 .7rem;
  font-size: 1.4rem;
  letter-spacing:.01em;
}
h3{
  margin: 1.1rem 0 .55rem;
  font-size:1.15rem;
}
.lede{
  font-size: 1.08rem;
  color: var(--muted);
}
.callouts{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:.9rem;
  margin-top: 1rem;
}
@media (max-width: 740px){
  .callouts{grid-template-columns:1fr}
}
.callout{
  background: linear-gradient(180deg, rgba(122,31,43,.06), rgba(122,31,43,.02));
  border:1px solid rgba(122,31,43,.18);
  border-radius: 16px;
  padding: 1rem 1rem .95rem;
}
.callout h3{margin:.05rem 0 .35rem}
.badge{
  display:inline-block;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size:.78rem;
  letter-spacing:.04em;
  color: var(--accent2);
  background: rgba(122,31,43,.09);
  border:1px solid rgba(122,31,43,.2);
  padding:.25rem .55rem;
  border-radius: 999px;
}

.actions{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  margin-top: 1.05rem;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding: .7rem .95rem;
  border-radius: 999px;
  border:1px solid rgba(122,31,43,.28);
  background: rgba(122,31,43,.09);
  color: var(--accent2);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-weight: 650;
}
.btn:hover{background: rgba(122,31,43,.12); text-decoration:none}
.btn.primary{
  background: var(--accent);
  border-color: rgba(122,31,43,.55);
  color: white;
}
.btn.primary:hover{background: var(--accent2)}
.btn.ghost{
  background: transparent;
  border-color: rgba(230,215,210,.95);
  color: var(--ink);
}
.btn.ghost:hover{background: rgba(255,255,255,.7)}
.meta{
  margin-top:.9rem;
  color: var(--muted);
  font-size:.95rem;
}

.section{
  margin-top: 1.7rem;
}
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 860px){
  .grid2{grid-template-columns:1fr}
}

.note{
  border-left: 3px solid rgba(122,31,43,.55);
  padding-left: .9rem;
  color: var(--muted);
}

.footer{
  border-top:1px solid rgba(230,215,210,.9);
  background: rgba(251,247,244,.9);
}
.footer .wrap{
  max-width:var(--max);
  margin:0 auto;
  padding: 1.5rem 1rem 2.3rem;
  display:flex;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.footer .tiny{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size:.86rem;
  color: var(--muted);
  line-height:1.45;
}
.pills{
  display:flex;
  gap:.55rem;
  flex-wrap:wrap;
  align-items:center;
}
.pills a{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size:.86rem;
  padding:.35rem .6rem;
  border-radius: 999px;
  border:1px solid rgba(230,215,210,.95);
  background: rgba(255,255,255,.65);
}
.pills a:hover{background: rgba(255,255,255,.9); text-decoration:none}

/* FAQ */
details{
  border:1px solid rgba(230,215,210,.95);
  background: rgba(255,255,255,.7);
  border-radius: 14px;
  padding: .85rem 1rem;
  margin:.7rem 0;
}
summary{
  cursor:pointer;
  font-weight: 650;
}
details p{margin:.65rem 0 0}

/* Print-friendly */
@media print{
  header, .footer, .actions{display:none !important}
  body{background:white}
  .card{box-shadow:none}
}
