/* US Buntings — simple layout with Americana styling (clean, accessible, readable). */

:root{
  --bg: #fff7e6;
  --paper: #ffffff;
  --ink: #141414;
  --muted: rgba(20,20,20,.72);
  --navy: #102a66;
  --red: #c4132a;
  --line: rgba(16,42,102,.18);
  --radius: 16px;
  --shadow: 0 14px 34px rgba(0,0,0,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(196,19,42,.10), transparent 45%),
    radial-gradient(circle at 86% 14%, rgba(16,58,139,.10), transparent 48%),
    linear-gradient(180deg, var(--bg), #fffaf0);
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.6;
}

a{color:inherit}
img{max-width:100%; display:block}

.wrap{
  width:min(1120px, calc(100% - 40px));
  margin:0 auto;
}

/* Skip link */
.skip{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px;
  width:auto; height:auto;
  padding:10px 12px;
  background:#fff;
  border:2px solid var(--navy);
  border-radius:12px;
  z-index:9999;
}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.trim{
  height:12px;
  background:
    linear-gradient(90deg,
      var(--red) 0 16%,
      #ffffff 16% 32%,
      var(--navy) 32% 48%,
      #ffffff 48% 64%,
      var(--red) 64% 80%,
      #ffffff 80% 100%);
  border-bottom:1px solid rgba(0,0,0,.05);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  min-width: 220px;
}

.seal{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, #fff, #ffe9b3);
  border:2px solid var(--navy);
  color:var(--red);
  font-weight:900;
}

.brandtext{display:flex; flex-direction:column; gap:2px}
.brandname{
  font-family:"Eczar", serif;
  font-weight:800;
  font-size:20px;
  line-height:1.1;
}
.brandtag{
  font-size:12px;
  color: var(--muted);
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(16,42,102,.14);
  background: rgba(255,255,255,.8);
}
.nav a:hover{
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.nav a:focus-visible{
  outline: 3px solid rgba(16,42,102,.35);
  outline-offset: 2px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:900;
  padding:12px 14px;
  border-radius:999px;
  border:2px solid var(--navy);
  background:#fff;
  cursor:pointer;
}
.btn.primary{
  background: linear-gradient(180deg, #1f4aa8, var(--navy));
  color:#fff;
  border-color: rgba(16,42,102,.65);
}
.btn:hover{
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.btn:focus-visible{
  outline: 3px solid rgba(196,19,42,.35);
  outline-offset: 2px;
}

/* Hero */
.hero{padding:42px 0 24px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:24px;
  align-items:center;
}
.kicker{
  margin:0 0 10px;
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:900;
  color: rgba(16,42,102,.85);
}
.hero h1{
  margin:0 0 12px;
  font-family:"Eczar", serif;
  font-weight:800;
  font-size: clamp(34px, 4vw, 52px);
  line-height:1.05;
}
.lede{
  margin:0 0 18px;
  font-size:16px;
  color: var(--muted);
  max-width: 60ch;
}
.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin: 10px 0 12px}

.highlights{
  margin:0;
  padding-left:18px;
  color: var(--muted);
  font-weight:600;
}

.frame{
  margin:0;
  border-radius: var(--radius);
  overflow:hidden;
  border:2px solid rgba(16,42,102,.18);
  background:#fff;
  box-shadow: var(--shadow);
}
.frame img{width:100%; height:auto}
.frame-caption{
  padding:10px 12px;
  font-size:13px;
  color: var(--muted);
  border-top:1px solid rgba(0,0,0,.05);
}

/* Sections */
.section{padding:50px 0}
.section-alt{
  background: rgba(255,255,255,.55);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section-head h2{
  margin:0 0 10px;
  font-family:"Eczar", serif;
  font-weight:800;
  font-size:32px;
}
.section-head p{
  margin:0;
  color: var(--muted);
  max-width: 80ch;
}

/* Cards */
.card{
  border-radius: var(--radius);
  border:2px solid rgba(16,42,102,.14);
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  padding:18px;
}
.card h3{
  margin:0 0 10px;
  font-family:"Eczar", serif;
  font-weight:800;
}

/* Product */
.product-grid.single{
  display:block;
  margin-top:18px;
}
.product-card{padding:0; overflow:hidden}
.product-visual{
  padding:18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(196,19,42,.12), transparent 45%),
    radial-gradient(circle at 70% 20%, rgba(16,58,139,.10), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
  border-bottom:1px solid rgba(16,42,102,.12);
}
.illustration{
  width:min(380px, 92%);
  margin:0 auto;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.14));
}
.product-meta{padding:18px}
.meta-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  border-bottom:1px solid rgba(16,42,102,.12);
  padding-bottom:12px;
  margin-bottom:12px;
}
.product-name{
  margin:0;
  font-size:18px;
  font-weight:900;
}
.sku{margin:4px 0 0; font-size:12px; color: var(--muted)}
.price{font-weight:900; color: var(--red); font-size:20px}
.desc{margin:0 0 12px; color: var(--muted); font-weight:600}
.specs{margin:0 0 14px; padding-left:18px; color: var(--muted); font-weight:600}
.actions{display:flex; gap:10px; flex-wrap:wrap}
.note{margin:12px 0 0; font-size:12px; color: var(--muted)}

/* About */
.about-grid{display:grid; gap:18px}
.about-cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:18px;
}
.about-cards ul{margin:0; padding-left:18px; color: var(--muted); font-weight:600}
.about-cards p{margin:0; color: var(--muted); font-weight:600}

/* Order */
.order-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  margin-top:18px;
  align-items:start;
}
.order-card .helper{margin:0 0 14px; color: var(--muted); font-weight:600}
.form{display:grid; gap:10px}
label{font-weight:900; font-size:13px}
input{
  padding:12px;
  border-radius:12px;
  border:2px solid rgba(16,42,102,.16);
  background:#fff;
  font: inherit;
}
input:focus{
  outline:none;
  border-color: rgba(16,42,102,.45);
  box-shadow: 0 0 0 4px rgba(16,58,139,.12);
}
.row{
  display:flex;
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap;
}
.preview{
  margin-top:8px;
  border-radius: 12px;
  border:1px dashed rgba(16,42,102,.28);
  background: rgba(255,255,255,.65);
  padding:12px;
}
.preview-label{font-weight:900; font-size:12px; color: var(--muted); margin-bottom:6px}
#cartPreview{display:block; word-break: break-all; font-weight:900}
#cartPreview.disabled{pointer-events:none; opacity:.75}

.order-summary .summary-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px dashed rgba(16,42,102,.18);
  font-weight:800;
}
.order-summary .summary-row.muted{color: var(--muted); font-weight:700}
.order-summary .summary-row.total{border-bottom:none; padding-top:12px}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  background: rgba(255,255,255,.6);
  padding:24px 0 40px;
}
.footer-row{
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  align-items:flex-start;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
}
.footer-star{color: var(--red)}
.footer-name{
  font-family:"Eczar", serif;
  font-size:20px;
}
.footer-text{margin:8px 0 10px; color: var(--muted); font-weight:600; max-width: 70ch}
.footer-links{
  display:grid;
  gap:8px;
  min-width: 160px;
}
.footer-links a{
  text-decoration:none;
  font-weight:900;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(16,42,102,.14);
  background: rgba(255,255,255,.85);
}
.footer-links a:hover{box-shadow: 0 10px 18px rgba(0,0,0,.08); transform: translateY(-1px)}
.footer-links a:focus-visible{outline: 3px solid rgba(16,42,102,.35); outline-offset: 2px}

/* Responsive */
@media (max-width: 920px){
  .header-row{flex-direction:column; align-items:flex-start}
  .hero-grid{grid-template-columns: 1fr}
  .about-cards{grid-template-columns: 1fr}
  .order-grid{grid-template-columns: 1fr}
}
