/* Bales Clavi — layout 2026 (distinct from prior teal/terracotta theme) */
:root{
  --bg: #ede8df;
  --bg-deep: #1a1520;
  --surface: #fffcf7;
  --surface-2: #f2ebe2;
  --ink: #1c1424;
  --ink-2: #3f3548;
  --muted: #6b6175;
  --line: rgba(28,20,36,.11);
  --shadow: 0 20px 50px rgba(26,21,32,.12);
  --shadow-sm: 0 8px 24px rgba(26,21,32,.08);

  --accent: #6b4d7c;
  --accent-2: #3d6b55;
  --accent-3: #c45c3e;
  --accent-soft: rgba(107,77,124,.12);
  --accent-green-soft: rgba(61,107,85,.10);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1080px;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-offset: 88px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(165deg, rgba(107,77,124,.09) 0%, transparent 42%),
    linear-gradient(215deg, rgba(61,107,85,.08) 0%, transparent 38%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 120px,
      rgba(196,92,62,.04) 120px,
      rgba(196,92,62,.04) 121px
    ),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; border-radius: var(--radius); }

.page{ min-height:100vh; display:flex; flex-direction:column; }

.container{
  max-width: var(--container);
  margin:0 auto;
  padding: 0 22px;
}

/* Top ribbon */
.top-tag{
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--surface);
  background: var(--bg-deep);
  border-bottom: 3px solid var(--accent-3);
}
.top-tag .container{
  display:flex;
  align-items:center;
  justify-content: flex-start;
  padding-top: 11px;
  padding-bottom: 11px;
}

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(255,252,247,.97), rgba(255,252,247,.88));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width: 0;
}
.brand-mark{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .06em;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #4a3560);
  box-shadow:
    0 0 0 2px rgba(255,255,255,.85),
    0 12px 28px rgba(107,77,124,.35);
  flex: 0 0 auto;
  transform: rotate(-3deg);
}
.brand-name{
  display:flex;
  flex-direction:column;
  line-height: 1.15;
  min-width:0;
}
.brand-name strong{
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: .02em;
  color: var(--ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-name span{
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.header-actions{
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-quick{
  display:flex;
  align-items:center;
  gap: 6px;
  margin-right: 4px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}
.icon-link{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--accent);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.icon-link:hover{
  background: var(--accent-soft);
  color: var(--ink);
  transform: translateY(-2px);
}
.icon-link svg{
  width: 20px;
  height: 20px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(107,77,124,.25);
}
.btn:active{ transform: translateY(0); }
.btn-primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-2), #2d5740);
  color:#fff;
  box-shadow: 0 14px 32px rgba(61,107,85,.28);
}
.btn-primary:hover{
  border-color: transparent;
  background: linear-gradient(135deg, #355f48, #264832);
}
.btn-ghost{
  background: transparent;
  box-shadow:none;
}

/* Hero — aside (media) first in source; narrow column left on wide screens */
.hero{
  padding: 32px 0 10px;
}
.hero-grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 22px;
  align-items: stretch;
}
.hero-card{
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-main{
  padding: 30px 28px 28px;
  position: relative;
  border-top: 4px solid var(--accent-2);
}
.hero-main::before{
  content:"";
  position:absolute;
  top:0; right:0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 70%);
  pointer-events:none;
}
.kicker{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-3);
  font-weight: 700;
  margin-bottom: 12px;
}
h1,h2,h3{
  font-family: var(--font-display);
  letter-spacing: -.01em;
}
h1{
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  margin:0 0 16px;
  color: var(--ink);
  font-weight: 650;
}
.lead{
  font-size: 15px;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 0 20px;
}
.hero-pills{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 22px;
  padding:0;
  list-style:none;
}
.pill{
  font-size: 13px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  display:flex;
  align-items:center;
  gap: 12px;
}
.pill-icon{
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display:grid;
  place-items:center;
  flex-shrink:0;
  background: var(--accent-green-soft);
  color: var(--accent-2);
}
.pill-icon--warm{
  background: var(--accent-soft);
  color: var(--accent);
}
.pill-icon svg{ width: 18px; height: 18px; }
.pill strong{ color: var(--ink); }
.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
  margin-top: 8px;
}
.hero-note{
  font-size: 12px;
  color: var(--muted);
  width: 100%;
}

.hero-side{
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(61,107,85,.06), transparent 45%),
    var(--surface);
  border-left: 4px solid var(--accent);
}
.media{
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow:hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.media img{
  border-radius: 0;
  width:100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.side-card{
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(107,77,124,.35);
  background: rgba(255,252,247,.9);
  padding: 16px 16px 14px;
}
.side-card h3{
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--ink);
  font-weight: 650;
}
.side-card p{
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.side-list{
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
}

/* Sections */
.section{
  padding: 28px 0;
}
.section-header{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.section-title{
  margin:0;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  font-weight: 650;
}
.section-sub{
  margin: 6px 0 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 14px;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card{
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 20px 18px 18px;
  position: relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity:.85;
}
.card .meta{
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-3);
  font-weight: 700;
  margin-bottom: 8px;
}
.card h3{
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--ink);
  font-weight: 650;
}
.card p{
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}

.split{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items:start;
}
.callout{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(196,92,62,.35);
  background: linear-gradient(160deg, rgba(196,92,62,.08), var(--surface));
  padding: 20px 18px 18px;
}
.callout strong{ color: var(--accent-3); }
.callout p{ margin:0; color: var(--ink-2); font-size: 14px; }

/* Accordion */
details{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow:hidden;
}
details + details{ margin-top: 12px; }
summary{
  cursor:pointer;
  list-style:none;
  display:grid;
  grid-template-columns: 44px 1fr auto;
  align-items:center;
  gap: 4px 12px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  padding: 16px 18px;
}
summary::-webkit-details-marker{ display:none; }
summary .summary-chevron{
  display:grid;
  place-items:center;
  color: var(--accent);
  transition: transform .2s ease;
}
summary .summary-chevron svg{ width: 22px; height: 22px; }
details[open] summary .summary-chevron{
  transform: rotate(90deg);
}
summary .hint{
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  text-align: right;
}
details .answer{
  padding: 0 18px 18px 62px;
  color: var(--ink-2);
  font-size: 14px;
  border-top: 1px solid var(--line);
  margin: 0;
  padding-top: 14px;
}

/* Offer band */
.offer-band{
  border-radius: var(--radius-lg);
  overflow:hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.offer-band .split{
  align-items: center;
}
.offer-band .media{
  margin: 18px;
}
.offer-inner{
  padding: 22px 24px 24px;
  border-left: 1px solid var(--line);
  background: linear-gradient(90deg, var(--surface-2), var(--surface));
}

/* Legal / content pages */
.content{
  padding: 26px 0 36px;
}
.paper{
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px 28px 26px;
  border-top: 5px solid var(--accent);
}
.paper h1{
  font-size: clamp(28px, 3.5vw, 38px);
  margin: 0 0 16px;
  font-weight: 650;
}
.paper h2{
  font-size: 20px;
  margin: 26px 0 10px;
  color: var(--ink);
  font-weight: 650;
}
.paper p, .paper li{
  color: var(--ink-2);
  font-size: 14px;
}
.paper a{
  color: var(--accent-2);
  border-bottom: 1px solid rgba(61,107,85,.4);
  font-weight: 500;
}
.paper a:hover{ border-bottom-color: var(--accent-2); }

/* Footer */
.site-footer{
  margin-top:auto;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: rgba(255,252,247,.82);
}
.site-footer .container{
  padding-top: 22px;
  padding-bottom: 22px;
}
.footer-top{
  display:flex;
  flex-wrap:wrap;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,252,247,.12);
}
.footer-contact-label{
  font-weight: 700;
  color: #fff;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.footer-contact-lines{
  color: rgba(255,252,247,.72);
  font-size: 13px;
  line-height: 1.7;
}
.footer-contact-lines a{
  color: #c4e8d4;
  border-bottom: 1px solid rgba(196,232,212,.35);
}
.footer-contact-lines a:hover{
  border-bottom-color: #c4e8d4;
}
.footer-icon-row{
  display:flex;
  flex-wrap:wrap;
  gap: 16px;
  margin-top: 12px;
}
.footer-icon-item{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,252,247,.75);
}
.footer-icon-item svg{
  width: 18px;
  height: 18px;
  color: var(--accent-3);
  flex-shrink:0;
}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 16px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 600;
}
.footer-links a{
  color: rgba(255,252,247,.88);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,252,247,.06);
  border: 1px solid rgba(255,252,247,.1);
}
.footer-links a:hover{
  background: rgba(255,252,247,.12);
}
.footer-disclosures{
  padding-top: 14px;
  color: rgba(255,252,247,.55);
  font-size: 11px;
  line-height: 1.55;
}
.footer-disclosures p{ margin: 8px 0; }
.footer-disclosures strong{ color: rgba(255,252,247,.75); }
.footer-bottom{
  padding-top: 14px;
  color: rgba(255,252,247,.45);
  font-size: 11px;
  text-align:center;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-side{ order: -1; border-left: none; border-top: 4px solid var(--accent); }
  .grid-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split{ grid-template-columns: 1fr; }
  .offer-band .split .offer-inner{ border-left: none; border-top: 1px solid var(--line); }
  .header-quick{ border-right: none; padding-right: 0; margin-right: 0; }
}
@media (max-width: 640px){
  .section-title{ font-size: 22px; }
  .btn{ padding: 10px 14px; }
  .grid-3{ grid-template-columns: 1fr; }
  summary{
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }
  summary .summary-chevron{
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 2px;
  }
  summary .summary-title{
    grid-column: 2;
    grid-row: 1;
  }
  summary .hint{
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    margin-top: 2px;
  }
  details .answer{ padding: 14px 18px 18px; }
}
