:root{
  --ink:#231F20;
  --paper:#FFFFFF;
  --line:rgba(35,31,32,.10);
  --red:#E73F35;
  --red-deep:#C22E26;
  --muted:#6B6A6D;
  --text-60:rgba(0,0,0,.6);

  --font:'Inter','Helvetica Neue',Helvetica,Arial,sans-serif;
  --max:1800px;
  --header-h:120px;
  /* fluid side margin: holds at 12rem down to ~1100px, narrows continuously
     to 1.5rem by ~400px, instead of jumping between two fixed values */
  --wrap-pad: clamp(1.5rem, 24vw - 4.5rem, 12rem);
  --hamburger:rgba(0,0,0,.8);
  color-scheme: light;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ink:#F2F1F1;
    --paper:#141314;
    --line:rgba(242,241,241,.12);
    --muted:#9C9A9D;
    --red-deep:#FF5B4E;
    --text-60:rgba(242,241,241,1);
    --hamburger:#fff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --ink:#F2F1F1;
  --paper:#141314;
  --line:rgba(242,241,241,.12);
  --muted:#9C9A9D;
  --red-deep:#FF5B4E;
  --text-60:rgba(242,241,241,1);
  --hamburger:#fff;
  color-scheme: dark;
}

*{box-sizing:border-box;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
img{max-width:100%;display:block;}
a{color:inherit;}
p{margin:0;}
.wrap{max-width:var(--max);margin:0 auto;padding-inline:var(--wrap-pad);}

/* header */
main{ padding-top:120px; flex:1 1 auto; }
header{
  position:fixed; top:0; left:0; right:0; z-index:40;
  background:color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter:blur(8px);
  transition:transform .3s ease;
}
header.header-hidden{ transform:translateY(-100%); }
.nav{ display:flex; align-items:center; justify-content:space-between; height:120px; }
.brand{ display:flex; align-items:center; text-decoration:none; }
.brand svg{ width:152px; height:auto; }
.brand path{ fill:var(--red); }
nav.links{ display:flex; align-items:center; gap:1.125rem; }
nav.links a{
  text-decoration:none; font-size:.95rem; font-weight:500;
  color:var(--text-60); letter-spacing:.01em;
  padding-bottom:.3rem;
  border-bottom:1px solid transparent;
  transition:color .2s ease, border-color .2s ease;
}
nav.links a:hover{ color:var(--red); }
nav.links a.current{ font-weight:700; color:var(--red); border-bottom-color:currentColor; }

/* hamburger toggle — hidden until the links row no longer has room */
.menu-toggle{
  display:none; flex-direction:column; justify-content:center; align-items:flex-end;
  gap:5px; width:28px; height:22px; padding:0; margin:0;
  border:none; background:none; cursor:pointer;
}
.menu-toggle span{ display:block; width:100%; height:2px; background:var(--hamburger); border-radius:1px; transition:background .2s ease; }
.menu-toggle:hover span{ background:var(--red); }

/* full-page mobile menu */
.mobile-nav{
  position:fixed; inset:0; z-index:200;
  background:var(--red); color:#fff;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.mobile-nav[hidden]{ display:none; }
.mobile-nav-close{
  position:absolute; top:2.25rem; right:2.25rem;
  width:32px; height:32px; padding:0; border:none; background:none; color:#fff; cursor:pointer;
}
.mobile-nav-close svg{ width:100%; height:100%; }
.mobile-nav-links{ display:flex; flex-direction:column; align-items:center; gap:2.25rem; }
.mobile-nav-links a{
  text-decoration:none; color:#fff; opacity:.85;
  font-size:clamp(1.75rem, 4vw + 1rem, 2.75rem); font-weight:600; letter-spacing:-0.01em;
  transition:opacity .25s ease, transform .25s ease;
}
.mobile-nav-links a:hover, .mobile-nav-links a.current{ opacity:1; text-decoration:underline; text-underline-offset:8px; }
.mobile-nav-links a:hover{ transform:translateX(10px); }

@media (max-width:560px){
  nav.links{ display:none; }
  .menu-toggle{ display:flex; }
}

/* footer */
footer{ background:var(--red); padding-block:2.5rem; color:#fff; flex:0 0 auto; }
.foot-row{ display:flex; justify-content:space-between; align-items:center; gap:1.5rem; flex-wrap:wrap; }
.foot-meta{ margin-left:auto; font-size:.85rem; color:#fff; opacity:.85; text-align:right; line-height:1.6; }
.foot-meta a{ color:#fff; text-decoration:underline; text-underline-offset:2px; opacity:.85; }
.foot-meta a:hover{ opacity:1; }
/* newsletter signup: a compact underlined line (placeholder left, plain
   Submit right), sitting at the left of the footer row across from the
   location/copyright block. The status line hangs below it without adding
   height, so the two sides stay vertically centred on each other. */
.foot-news{ position:relative; width:min(100%, 22rem); margin-right:auto; }
.news-form{
  display:flex; align-items:center; gap:1rem;
  border-bottom:1px solid rgba(255,255,255,.6);
  transition:border-color .2s ease;
}
.news-form:focus-within{ border-color:#fff; }
.news-label{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.news-input{
  flex:1 1 auto; min-width:0;
  font:inherit; font-size:.95rem; color:#fff;
  background:transparent; border:none; padding:.45rem 0; outline:none;
}
.news-input::placeholder{ color:rgba(255,255,255,.75); }
.news-submit{
  flex:0 0 auto; background:none; border:none; padding:.45rem 0; cursor:pointer;
  font:inherit; font-size:.95rem; font-weight:600; color:#fff;
  transition:opacity .2s ease;
}
.news-submit:hover{ opacity:.75; }
.news-submit:disabled{ opacity:.5; cursor:default; }
.news-submit:focus-visible{ outline:2px solid #fff; outline-offset:4px; }
.news-status{ position:absolute; top:100%; left:0; right:0; margin-top:.4rem; font-size:.8rem; line-height:1.4; color:#fff; }
.news-status:empty{ display:none; }
.news-status a{ color:#fff; text-decoration:underline; text-underline-offset:2px; }

@media (max-width:640px){
  .foot-row{ flex-direction:column; align-items:flex-start; }
  .foot-meta{ text-align:left; margin-left:0; }
  .news-status{ position:static; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation-duration:0.01ms !important; animation-iteration-count:1 !important; }
}
