/* delouche.us, on top of site.css.
   Colors are the flag of Haiti (Wikipedia, "Flag of Haiti", checked 2026-10-31): blue #00209F, red #D21034, gold #F1B517.
   The faint stars in the hero and footer echo the crest's mantle and the US team's star jersey. */
:root {
  --page: #F7F5EF;      /* parchment */
  --ink: #101A3F;
  --quiet: #4A5578;
  --rule: #E2DDCF;
  --blue: #00209F;
  --navy: #00124F;
  --red: #D21034;
  --gold: #F1B517;
  --gold-ink: #94700A;  /* gold dark enough to read on parchment */
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23fff'%3E%3Cpath opacity='.09' d='M24 14l3.5 10.8h11.3l-9.2 6.7 3.5 10.8-9.1-6.7-9.2 6.7 3.5-10.8-9.1-6.7h11.3z'/%3E%3Cpath opacity='.06' d='M112 40l2.3 7h7.4l-6 4.4 2.3 7-6-4.3-6 4.3 2.3-7-6-4.4h7.4z'/%3E%3Cpath opacity='.08' d='M70 96l2.8 8.6h9l-7.3 5.3 2.8 8.6-7.3-5.3-7.3 5.3 2.8-8.6-7.3-5.3h9z'/%3E%3Cpath opacity='.05' d='M140 118l1.7 5.2h5.5l-4.4 3.2 1.7 5.2-4.5-3.2-4.4 3.2 1.7-5.2-4.4-3.2h5.4z'/%3E%3Cpath opacity='.05' d='M14 120l1.5 4.6h4.8l-3.9 2.8 1.5 4.6-3.9-2.8-3.9 2.8 1.5-4.6-3.9-2.8h4.8z'/%3E%3C/g%3E%3C/svg%3E");
}
body { background: var(--page); color: var(--ink); }
a { color: var(--blue); }

/* The navy hero: header, then the crest beside the motto and headline (stacked on phones) */
.masthead {
  position: relative; color: #fff;
  background:
    radial-gradient(ellipse 50% 70% at 28% 55%, rgba(241, 181, 23, 0.14), transparent 70%),
    var(--stars),
    linear-gradient(180deg, #001C86 0%, var(--navy) 100%);
  padding-bottom: 44px;
}
.masthead.slim { padding-bottom: 20px; }
.masthead::after { /* gold hairline over a red band, like the shield's edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: linear-gradient(var(--gold) 0 2px, var(--red) 2px 100%);
}
.bar.us { align-items: center; }
.bar.us .home { display: flex; align-items: center; }
.bar.us .home img { width: 44px; height: 44px; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); }
.bar.us nav a { color: rgba(255, 255, 255, 0.86); }
.bar.us nav a:hover, .bar.us nav a:focus-visible { color: #fff; text-decoration-color: var(--gold); }
.intro { max-width: 66rem; margin: 0 auto; padding: 4px var(--gutter) 0; display: grid; gap: 18px 44px;
  grid-template-columns: 1fr; justify-items: center; text-align: center; }
.arms { width: min(200px, 52vw); }
.arms img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45)); }
.motto { margin: 0; color: var(--gold); font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase; }
.masthead h1 { font-weight: 300; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 10px 0 0; }
.sub { margin: 12px 0 0; font-size: 1.12rem; line-height: 1.5; color: rgba(255, 255, 255, 0.8); max-width: 34rem; }
.cta { display: inline-block; margin-top: 20px; padding: 10px 20px; border: 1px solid var(--gold); color: #fff;
  text-decoration: none; font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase; }
.cta:hover, .cta:focus-visible { background: var(--gold); color: var(--navy); }
@media (min-width: 760px) {
  .intro { grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; padding-top: 12px; }
  .arms { width: 230px; }
}

/* Ornament: a rule, a star, a rule */
.orn { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 22px auto 0; }
.orn::before, .orn::after { content: ""; width: 64px; height: 1px; background: currentColor; opacity: 0.7; }
.orn svg { width: 14px; height: 14px; fill: currentColor; }

/* Projects */
.work { max-width: 70rem; margin: 0 auto; padding: 56px var(--gutter) 24px; }
.work header { text-align: center; margin-bottom: 30px; }
.eyebrow { margin: 0; color: var(--red); font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase; }
.work h2 { margin: 8px 0 0; font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.5rem); letter-spacing: -0.015em; color: var(--blue); }
.work .orn { color: var(--gold-ink); margin-top: 14px; }
.projects { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.projects li {
  flex: 0 1 20rem; max-width: 100%;
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(16, 26, 63, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.projects li::before { content: ""; position: absolute; z-index: 1; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--blue); }
.projects li:nth-child(even)::before { background: var(--red); }
.projects li:hover, .projects li:focus-within {
  transform: translateY(-3px); border-color: #D9C48A; box-shadow: 0 16px 32px rgba(0, 18, 79, 0.12);
}
.projects .shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--rule); }
.projects .panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(ellipse at 50% 40%, rgba(241, 181, 23, 0.18), transparent 65%), var(--stars), var(--navy);
  color: #fff; font-size: 1.3rem; letter-spacing: 0.04em; }
.projects .panel svg { width: 44px; height: 44px; fill: var(--gold); }
.projects .body { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0 12px; padding: 20px 22px 18px 14px; flex: 1;
  grid-template-rows: auto auto 1fr auto; }
.projects .num { grid-row: 1 / span 4; text-align: center; font-size: 1.7rem; font-weight: 300; line-height: 1; color: var(--gold-ink);
  padding-top: 3px; border-right: 1px solid var(--rule); padding-right: 10px; }
.projects h3 { margin: 0; font-size: 1.32rem; font-weight: 400; line-height: 1.2; }
.projects h3 a { color: var(--blue); text-decoration: none; }
.projects h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* the whole card is the link */
.projects h3 a:focus-visible { outline: none; }
.projects li:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.projects .host { margin: 4px 0 0; color: var(--quiet); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; overflow-wrap: anywhere; }
.projects .about { margin: 10px 0 0; font-size: 1.02rem; line-height: 1.5; }
.projects .go { margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; font-size: 0.88rem; }
.projects .go span:first-child { color: var(--quiet); }
.projects .go span:last-child { color: var(--red); letter-spacing: 0.06em; white-space: nowrap; }
.projects li:hover .go span:last-child { text-decoration: underline; text-decoration-color: var(--gold); }

/* Footer */
.foot.us {
  position: relative; margin-top: 72px; border: 0; text-align: center; color: rgba(255, 255, 255, 0.78);
  background: var(--stars), var(--navy); padding: 52px var(--gutter) 40px;
}
.foot.us::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: linear-gradient(var(--red) 0 6px, var(--gold) 6px 100%); }
.foot.us img { width: 64px; height: 64px; display: block; margin: 0 auto 14px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)); }
.foot.us .motto { margin: 0 0 18px; }
.foot.us a { color: #fff; font-size: 1.15rem; text-decoration-color: var(--gold); }
.foot.us .small { margin-top: 22px; }

/* Not-found page */
.lost { text-align: center; padding: 72px var(--gutter) 0; }
.lost h1 { font-weight: 300; color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .projects li { transition: none; }
  .projects li:hover, .projects li:focus-within { transform: none; }
}
