/* 42nd Rainbow Division Honor Roll — styling tuned to Fortitude Research brand */

:root{
  --paper:#fafafa;
  --ink:#1c1c1c;
  --ink-soft:#5a5a5a;
  --ink-faint:#8c8c8c;
  --rule:#dcdcdc;
  --accent-red:#7a1a14;
  --accent-gold:#a07a18;
  --accent-blue:#1f3a68;
  --serif:'Libre Baskerville',Georgia,'Times New Roman',serif;
  --sans:'Almarai','Helvetica Neue',Helvetica,Arial,sans-serif;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--ink); text-decoration:none; border-bottom:1px solid transparent; transition:border-color 0.15s ease}
a:hover{border-bottom-color:var(--ink); text-decoration:none}

.site-header{
  padding:32px 56px;
  display:flex;
  align-items:center;
  background:transparent;
  position:relative;
  z-index:10;
}

.site-logo{
  display:inline-block;
  border-bottom:none;
}
.site-logo:hover{border-bottom:none}
.site-logo img{
  height:110px;
  width:auto;
  display:block;
}

/* Overlay variant used inside the hero — sits above the photo and uses absolute
   positioning so the photo bleeds all the way to the top of the viewport. */
.site-header-overlay{
  position:absolute;
  top:0; left:0;
  padding:32px 56px;
  z-index:5;
}

@media (max-width:900px){
  .site-header,
  .site-header-overlay{padding:24px 32px}
  .site-logo img{height:88px}
}
@media (max-width:640px){
  .site-header,
  .site-header-overlay{padding:18px 20px}
  .site-logo img{height:64px}
}

main{
  max-width:1100px;
  margin:0 auto;
  padding:48px 40px 96px;
}
.page-index main{
  position:relative;
  isolation:isolate;
}
.page-index main{
  overflow:hidden;
}
.page-index main::before{
  content:"";
  position:absolute;
  top:-20px; left:-20px; right:-20px; bottom:-20px;
  background-image:url('./map-background.PNG');
  background-size:cover;
  background-position:72% center;
  background-repeat:no-repeat;
  background-attachment:fixed;
  filter:blur(5px);
  z-index:-2;
}
.page-index main::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(250,250,250,0.92);
  z-index:-1;
}

/* ---- Hero section (full bleed photo with overlaid header + content) ---- */
.hero{
  position:relative;
  min-height:520px;
  background:#0a0a0a;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:56px 40px 56px;
  overflow:hidden;
}
.hero{
  overflow:hidden;
}
.hero-image{
  position:absolute;
  top:-12px; left:-12px; right:-12px; bottom:-12px;
  background-size:cover;
  background-position:center top;
  filter:blur(1.5px);
  opacity:1;
}
.hero-overlay{
  position:absolute;
  top:0; left:0; right:0; bottom:0;
  background:linear-gradient(to bottom, rgba(250,250,248,0.85), rgba(250,250,250,0.92));
}
.hero-content{
  position:relative;
  z-index:1;
  text-align:center;
  max-width:1320px;
  color:var(--ink);
  width:100%;
}
.hero-title{
  font-family:var(--serif);
  font-weight:400;
  font-style:normal;
  font-size:56px;
  line-height:1.12;
  color:var(--ink);
  margin:0 auto 48px;
  letter-spacing:-0.005em;
  max-width:900px;
}
.hero-title .title-sep{
  color:var(--ink-faint);
  margin:0 6px;
}
.hero-statement-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:36px;
  margin:0 auto 24px;
  max-width:1320px;
}
.hero-statements{
  flex:1;
  max-width:600px;
}
.hero-statement{
  font-family:var(--serif);
  font-style:normal;
  font-size:30px;
  line-height:1.3;
  color:var(--ink);
  margin:0 auto 28px;
  letter-spacing:-0.003em;
  font-weight:400;
}
.hero-statement:last-child{
  margin-bottom:0;
}
.hero-cutout{
  display:block;
  flex-shrink:0;
  width:320px;
  height:auto;
  object-fit:contain;
}
.hero-cutout-left{
  align-self:center;
  width:380px;
  transform:rotate(8deg);
  transform-origin:center center;
}
.hero-cutout-right{
  align-self:center;
}
/* Legacy hero-lede class kept for any soldier or about page that might still use it */
.hero-lede{
  font-family:var(--serif);
  font-style:normal;
  font-size:18px;
  line-height:1.65;
  color:#3a3a3a;
  max-width:640px;
  margin:0 auto 36px;
}
.hero-actions{
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}
.hero-attribution{
  font-family:var(--serif);
  font-style:italic;
  font-size:14px;
  line-height:1.6;
  color:rgba(250,250,250,0.7);
  max-width:560px;
  margin:32px auto 0;
  letter-spacing:0.01em;
}
.hero-attribution a{
  color:rgba(250,250,250,0.85);
  border-bottom:1px solid rgba(250,250,250,0.3);
  transition:border-color 0.15s ease, color 0.15s ease;
}
.hero-attribution a:hover{
  color:#ffffff;
  border-bottom-color:rgba(250,250,250,0.85);
}

@media (max-width:1200px){
  .hero-cutout{width:240px}
  .hero-cutout-left{width:285px}
  .hero-statement{font-size:26px}
}
@media (max-width:900px){
  .hero{min-height:auto; padding:80px 32px 80px}
  .hero-title{font-size:40px; margin-bottom:36px}
  .hero-statement-row{gap:24px; margin-bottom:32px}
  .hero-statement{font-size:22px; margin-bottom:22px}
  .hero-cutout{width:180px}
  .hero-cutout-left{width:215px}
}
@media (max-width:640px){
  .hero{
    min-height:auto;
    padding:120px 22px 56px;
    background:#f4efe6;
  }

  .hero-content{
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "title       title"
      "statements  statements"
      "flag        patch"
      "actions     actions";
    justify-items:center;
    align-items:center;
    width:100%;
  }
  .hero-title{
    grid-area:title;
    font-size:28px;
    margin-bottom:24px;
  }
  .hero-statement-row{display:contents}
  .hero-statements{
    grid-area:statements;
    max-width:100%;
    padding:0 4px;
    margin-bottom:24px;
  }
  .hero-statement{font-size:18px; margin-bottom:16px}
  .hero-cutout-left{
    grid-area:flag;
    width:112px;
    transform:rotate(-4deg);
    justify-self:end;
    margin-right:-6px;
    margin-bottom:24px;
  }
  .hero-cutout-right{
    grid-area:patch;
    width:100px;
    transform:rotate(4deg);
    justify-self:start;
    margin-left:-6px;
    margin-bottom:24px;
  }
  .hero-lede{font-size:16px}
  .hero-actions{grid-area:actions; gap:10px}
}
@media (max-width:420px){
  .hero-cutout-left{width:96px}
  .hero-cutout-right{width:86px}
  .hero-title{font-size:24px}
}

/* ---- Button-light variant: elegant white pill for use on the dark hero ---- */
.button-light{
  background:#ffffff;
  color:#0d0d0d;
  border-color:#ffffff;
  font-weight:400;
  letter-spacing:0.02em;
}
.button-light:hover{
  background:#f2f2f2;
  color:#0d0d0d;
  border-color:#f2f2f2;
  border-bottom:1px solid #f2f2f2;
}

/* ---- Soldier page actions (buttons at bottom) ---- */
.soldier-actions{
  margin-top:40px;
  padding-top:0;
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}
.button.button-note,
.button.button-return,
.button.button-research,
.button.button-write{
  background:transparent;
}
.button.button-note{
  border-color:#be1622;
  color:#be1622;
}
.button.button-note:hover{
  background:#be1622;
  color:#fff;
  border-color:#be1622;
}
.button.button-return{
  border-color:#f0a500;
  color:#8a5e00;
}
.button.button-return:hover{
  background:#f0a500;
  color:#fff;
  border-color:#f0a500;
}
.button.button-research{
  border-color:#0d3b66;
  color:#0d3b66;
}
.button.button-research:hover{
  background:#0d3b66;
  color:#fff;
  border-color:#0d3b66;
}
.button.button-write{
  border-color:var(--accent-gold);
  color:var(--accent-gold);
}
.button.button-write:hover{
  background:var(--accent-gold);
  color:#fff;
  border-color:var(--accent-gold);
}
.button.button-large{
  padding:20px 48px;
  font-size:17px;
  letter-spacing:0.02em;
  border-width:1.5px;
}
.note-cta-section{
  margin-top:28px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.note-cta-section .note-privacy{
  margin-top:18px;
  max-width:560px;
}
.index-closing-cta{
  text-align:center;
  margin:64px auto 32px;
  padding:48px 32px;
  max-width:680px;
  border-top:1px solid var(--rule);
}
.index-closing-cta h2{
  font-family:var(--serif);
  font-weight:400;
  font-size:26px;
  line-height:1.3;
  color:var(--ink);
  margin:0 0 16px;
}
.index-closing-cta p{
  font-family:var(--serif);
  font-size:17px;
  line-height:1.65;
  color:var(--ink-soft);
  max-width:560px;
  margin:0 auto 28px;
}
.hero-actions .button{
  background:transparent;
  border:1px solid #0d3b66;
  color:#0d3b66;
}
.hero-actions .button:hover{
  background:#0d3b66;
  color:#fff;
  border-color:#0d3b66;
}
.note-privacy{
  text-align:center;
  font-family:var(--serif);
  font-style:italic;
  font-size:13px;
  color:var(--ink-faint);
  margin:18px auto 0;
  max-width:520px;
  line-height:1.6;
}

/* ---- Family member message block (sits below soldier-actions) ---- */
.family-message{
  border-top:1px solid var(--rule);
  margin:64px auto 0;
  padding-top:48px;
  text-align:center;
  max-width:580px;
}
.family-message h2{
  font-family:var(--serif);
  font-weight:400;
  font-size:26px;
  line-height:1.3;
  color:var(--ink);
  margin:0 0 16px;
  letter-spacing:0;
}
.family-message p{
  font-family:var(--serif);
  font-size:17px;
  line-height:1.65;
  color:var(--ink-soft);
  max-width:520px;
  margin:0 auto 28px;
}
.family-message .button{
  margin:0 auto;
}
@media (max-width:640px){
  .family-message{margin-top:48px; padding-top:36px}
  .family-message h2{font-size:22px}
  .family-message p{font-size:16px}
}
@media (max-width:640px){
  .soldier-actions{gap:12px; padding-top:32px}
  .soldier-actions .button{font-size:12px; padding:12px 20px}
}

.page-lede{
  font-family:var(--serif);
  font-size:22px;
  line-height:1.5;
  color:var(--ink-soft);
  font-style:italic;
  max-width:680px;
  margin:0 auto 56px;
  text-align:center;
}

/* ---- Filter chips ---- */
.filter-chips{
  margin-bottom:24px;
}
.chip-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:8px 0;
}
.chip-row + .chip-row{
  border-top:1px solid #f0f0f0;
}
.chip-row-label{
  font-family:var(--sans);
  font-size:11px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--ink-soft);
  min-width:90px;
  font-weight:400;
}
.chip{
  font-family:var(--sans);
  font-size:13px;
  padding:6px 14px;
  border:1px solid var(--rule);
  background:transparent;
  color:var(--ink-soft);
  border-radius:999px;
  cursor:pointer;
  transition:all 0.15s ease;
  font-weight:400;
  letter-spacing:0.01em;
}
.chip:hover{
  border-color:#cfcfcf;
  background:#f7f7f7;
  color:var(--ink);
}
.chip.active{
  background:#ececec;
  border-color:#bdbdbd;
  color:var(--ink);
  font-weight:400;
}
.chip-count{
  display:inline-block;
  margin-left:6px;
  font-size:11px;
  color:var(--ink-faint);
  font-variant-numeric:tabular-nums;
  font-weight:400;
}
.chip.active .chip-count{
  color:var(--ink-faint);
}

/* ---- Index / roll page ---- */
.roll-search{
  margin:32px 0 8px;
}
.roll-search input{
  font-family:var(--serif);
  font-size:18px;
  padding:16px 22px;
  border:1px solid var(--rule);
  background:#ffffff;
  color:var(--ink);
  border-radius:2px;
  width:100%;
  box-sizing:border-box;
  transition:border-color 0.15s ease, box-shadow 0.15s ease;
}
.roll-search input::placeholder{
  color:var(--ink-faint);
  font-style:italic;
}
.roll-search input:focus{
  outline:none;
  border-color:#cfcfcf;
  box-shadow:0 0 0 2px rgba(28,28,28,0.04);
}
.roll-controls{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:center;
  border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
  padding:16px 0;
  margin-bottom:32px;
  font-size:13px;
  color:var(--ink-soft);
}
.roll-controls select{
  font-family:var(--sans);
  font-size:13px;
  padding:6px 10px;
  border:1px solid var(--rule);
  background:#ffffff;
  color:var(--ink);
  border-radius:2px;
}
.roll-count{margin-left:auto; font-variant-numeric:tabular-nums}

.roll{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(320px, 1fr));
  gap:0;
}
.roll li{
  border-bottom:1px solid var(--rule);
}
.roll a{
  display:grid;
  grid-template-columns:48px 1fr;
  align-items:center;
  gap:16px;
  padding:14px 8px;
  color:var(--ink);
  border-bottom:none;
}
.roll a:hover{
  background:#f0f0f0;
  text-decoration:none;
  border-bottom:none;
}
.roll .thumb{
  width:48px;
  height:48px;
  background:#ececec;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.roll .thumb img{width:100%; height:100%; object-fit:cover; display:block}
.roll .name{
  font-family:var(--serif);
  font-size:19px;
  line-height:1.2;
  display:block;
}
.roll .unit-line{
  display:block;
  font-family:var(--sans);
  font-size:12px;
  color:var(--ink);
  letter-spacing:0.02em;
  margin-top:4px;
  line-height:1.4;
}
.roll .meta{
  display:block;
  font-family:var(--sans);
  font-size:11px;
  color:var(--ink-soft);
  letter-spacing:0.06em;
  margin-top:2px;
  text-transform:uppercase;
}

/* ---- Soldier page ---- */
.soldier{
  max-width:680px;
  margin:0 auto;
}
.soldier-portrait{
  width:240px;
  height:240px;
  margin:0 auto 32px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ececec;
  border:1px solid var(--rule);
  overflow:hidden;
}
.soldier-portrait img{width:100%; height:100%; object-fit:cover}
.soldier-rank{
  text-align:center;
  font-family:var(--sans);
  font-size:13px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--ink-soft);
  margin:0 0 8px;
}
.soldier-name{
  text-align:center;
  font-family:var(--serif);
  font-weight:400;
  font-size:40px;
  line-height:1.15;
  letter-spacing:0.005em;
  margin:0 0 8px;
}
.soldier-dates{
  text-align:center;
  font-family:var(--serif);
  font-style:italic;
  font-size:18px;
  color:var(--ink-soft);
  margin:0 0 40px;
}

.field-block{
  border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
  padding:24px 0;
  margin-bottom:32px;
  display:grid;
  grid-template-columns:160px 1fr;
  row-gap:14px;
  column-gap:24px;
  font-size:15px;
}
.field-block dt{
  font-family:var(--sans);
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--ink-soft);
  align-self:center;
}
.field-block dd{
  margin:0;
  font-family:var(--serif);
  font-size:17px;
  line-height:1.4;
}
.field-block dd.unknown{
  color:#a59578;
  font-style:italic;
  font-family:var(--serif);
}

.prose-block{
  margin:0 0 32px;
}
.prose-block h3{
  font-family:var(--sans);
  font-size:12px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--ink-soft);
  margin:0 0 12px;
  font-weight:600;
}
.prose-block p{
  font-family:var(--serif);
  font-size:19px;
  line-height:1.55;
  margin:0;
}

.cta{
  border-top:1px solid var(--rule);
  margin-top:64px;
  padding-top:32px;
  text-align:center;
}
.cta h3{
  font-family:var(--serif);
  font-weight:500;
  font-size:24px;
  margin:0 0 12px;
}
.cta p{
  font-family:var(--serif);
  font-size:17px;
  color:var(--ink-soft);
  max-width:520px;
  margin:0 auto 20px;
  line-height:1.55;
}
a.button{
  display:inline-block;
  font-family:var(--sans);
  font-size:15px;
  font-weight:400;
  letter-spacing:0.01em;
  text-transform:none;
  padding:16px 36px;
  border-radius:999px;
  color:#fafafa;
  background:var(--ink);
  border:1px solid var(--ink);
  transition:background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
a.button:hover{
  background:#000;
  color:#ffffff;
  border-color:#000;
  text-decoration:none;
  border-bottom:1px solid #000;
  transform:translateY(-1px);
}

.soldier-back{
  text-align:center;
  margin-top:48px;
  font-size:13px;
  letter-spacing:0.12em;
  text-transform:uppercase;
}
.soldier-back a{color:var(--ink-soft)}

/* ---- About page ---- */
.about{
  max-width:760px;
  margin:0 auto;
  font-family:var(--serif);
  font-size:17px;
  line-height:1.7;
}
.about-hero{
  margin:0 0 48px;
  padding:0;
}
.about-hero img{
  width:100%;
  height:auto;
  display:block;
}
.about-title{
  font-family:var(--serif);
  font-weight:400;
  font-style:normal;
  font-size:38px;
  line-height:1.18;
  letter-spacing:0;
  color:var(--ink);
  text-align:center;
  margin:0 auto 24px;
  max-width:720px;
}
.about-title .title-sep{
  color:var(--ink-faint);
  font-weight:400;
  margin:0 4px;
}
.about-epigraph{
  font-family:var(--serif);
  font-style:italic;
  font-size:20px;
  line-height:1.5;
  color:var(--ink-soft);
  text-align:center;
  max-width:560px;
  margin:0 auto 56px;
}
.about-human-cost{
  font-family:var(--serif);
  font-size:18px;
  line-height:1.7;
  margin:32px 0;
  padding:24px 0;
  border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
  color:var(--ink);
}
.about h2{
  font-family:var(--serif);
  font-weight:500;
  font-size:28px;
  margin:48px 0 16px;
}
.about p{margin:0 0 20px; max-width:680px; margin-left:auto; margin-right:auto}
.continue-exploring{
  text-align:center;
  margin-top:64px;
  padding-top:32px;
  border-top:1px solid var(--rule);
  font-family:var(--serif);
  font-style:italic;
  font-size:18px;
}
.continue-exploring a{
  color:var(--ink);
  border-bottom:1px solid var(--rule);
}
.continue-exploring a:hover{
  border-bottom-color:var(--ink);
}

@media (max-width:640px){
  .about-title{font-size:28px}
  .about-epigraph{font-size:18px; margin-bottom:40px}
  .about-human-cost{font-size:17px}
  .about-hero{margin-bottom:32px}
}

footer{
  border-top:1px solid var(--rule);
  padding:40px 40px 48px;
  text-align:center;
  font-size:13px;
  color:var(--ink-soft);
  letter-spacing:0.04em;
  line-height:1.7;
}
footer a{color:var(--ink-soft); border-bottom:1px solid var(--rule)}
footer a:hover{color:var(--ink); border-bottom-color:var(--ink)}
footer p{
  max-width:680px;
  margin:0 auto;
}
.footer-contributor{
  font-style:italic;
  letter-spacing:0.02em;
  line-height:1.75;
}
.footer-contact{
  margin-top:10px !important;
  letter-spacing:0.04em;
}
.footer-hr{
  border:none;
  border-top:1px solid var(--rule);
  width:120px;
  margin:24px auto;
}
.footer-rainbowvets,
.footer-closing{
  letter-spacing:0.04em;
}
.footer-partner{
  display:inline-block;
  font-size:12px;
  color:var(--ink-faint);
  font-style:italic;
  letter-spacing:0.02em;
}
.footer-partner a{color:var(--ink-faint); border-bottom-color:#e6e6e6}
.footer-partner a:hover{color:var(--ink-soft); border-bottom-color:var(--ink-soft)}

/* ---- SEO about block (visible to readers and search engines) ---- */
.seo-block{
  max-width:760px;
  margin:80px auto 0;
  padding:48px 40px 32px;
  border-top:1px solid var(--rule);
  font-family:var(--sans);
  font-size:14px;
  line-height:1.65;
  color:var(--ink-soft);
}
.seo-block-title{
  font-family:var(--serif);
  font-weight:500;
  font-size:18px;
  color:var(--ink);
  margin:0 0 16px;
  letter-spacing:0;
}
.seo-block p{margin:0 0 14px}
.seo-block a{color:var(--ink-soft); border-bottom:1px solid var(--rule)}
.seo-block a:hover{color:var(--ink); border-bottom-color:var(--ink)}
.seo-block-stewardship{
  font-family:var(--serif);
  font-style:italic;
  font-size:14px;
  line-height:1.65;
  color:var(--ink-soft);
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--rule);
}
.seo-block-contact{
  font-size:13px;
  margin-top:18px;
}

/* ---- Index page H1 ---- */
.index-title{
  font-family:var(--serif);
  font-weight:400;
  font-style:normal;
  font-size:34px;
  line-height:1.2;
  color:var(--ink);
  text-align:center;
  margin:0 auto 24px;
  max-width:820px;
  letter-spacing:0;
}
.index-title .title-sep{
  color:var(--ink-faint);
  margin:0 4px;
}

@media (max-width:640px){
  .index-title{font-size:24px}
  .seo-block{margin-top:48px; padding:32px 20px 16px; font-size:13px}
}

@media (max-width:640px){
  main{padding:32px 20px 64px}
  .site-header{padding:20px}
  .soldier-name{font-size:34px}
  .field-block{grid-template-columns:1fr; row-gap:6px}
  .field-block dt{margin-top:14px}
}
