/* Sowera shared styles: brand tokens, header, footer and buttons.
   Every page links this file first, then keeps its own page styles inline.
   Change the header or footer here and it changes on every page. */

:root {
  --plaster:  #F0EAE0;
  --cream:    #FAF8F4;
  --oxblood:  #7A2E24;
  --oxblood-deep: #63241C;
  --wheat:    #C39B4C;
  --wheat-ink:#846220;   /* wheat that passes contrast as text on light grounds */
  --soot:     #1F1B17;
  --stone:    #70695F;
  --ember:    #C0604A;
  --ink-soft: #574F46;
  --ink-read: #3A342D;
  --on-soot:  #D8CFC3;   /* body text on soot */
  --rule:     rgba(122,46,36,.16);
}

/* ── wordmark ── */
.wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: .03em;
  line-height: 1;
  color: var(--oxblood);
  font-size: 1.7rem;
  text-decoration: none;
}
.wordmark i { font-style: italic; }

/* ── header ── */
.sw-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(240,234,224,.94);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: 1.05rem 1.5rem;
}
.sw-head-inner {
  max-width: 69rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.sw-nav { display: flex; align-items: center; gap: 1.6rem; }
.sw-nav a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .95rem; color: var(--ink-soft); text-decoration: none;
  text-underline-offset: 4px; white-space: nowrap;
}
.sw-nav a:hover { color: var(--oxblood); text-decoration: underline; }
.sw-nav a[aria-current="page"] { color: var(--oxblood); }
.sw-nav a.sw-nav-cta {
  background: var(--oxblood); color: var(--plaster);
  padding: .6rem 1.1rem; border-radius: 2px; font-weight: 500; letter-spacing: .02em;
  transition: background .18s ease;
}
.sw-nav a.sw-nav-cta:hover { background: var(--oxblood-deep); text-decoration: none; }
.sw-nav a:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }
.sw-nav .short { display: none; }

@media (max-width: 34rem) {
  .sw-head { padding: .85rem 1rem; }
  .sw-nav { gap: 1rem; }
  .sw-nav a { font-size: .88rem; }
  .sw-nav a.sw-nav-cta { padding: .5rem .85rem; }
  .sw-nav .long { display: none; }
  .sw-nav .short { display: inline; }
  .wordmark { font-size: 1.45rem; }
}
@media (max-width: 21rem) {
  .sw-nav { gap: .75rem; }
  .sw-nav a { font-size: .84rem; }
  .wordmark { font-size: 1.3rem; }
}

/* ── footer ── */
footer.sw-foot {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  padding: clamp(2.75rem, 6vw, 4rem) 1.5rem clamp(2.5rem, 5vw, 3.25rem);
  text-align: left;
}
.sw-foot-inner {
  max-width: 69rem; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 3rem; align-items: start;
}
.sw-foot-brand { display: flex; flex-direction: column; gap: .7rem; }
.sw-foot-tag {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 400; font-size: 1.3rem; line-height: 1.35;
  color: var(--ink-read); margin: 0;
}
.sw-foot-links {
  display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: .55rem 2.5rem;
  justify-content: end;
}
.sw-foot-links a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .93rem; color: var(--ink-soft); text-decoration: none; text-underline-offset: 3px;
}
.sw-foot-links a:hover { color: var(--oxblood); text-decoration: underline; }
.sw-foot-base {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule); padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem;
}
.sw-fine {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .88rem; line-height: 1.6; color: var(--stone); margin: 0; max-width: 40rem;
}
.sw-fine a { color: var(--stone); text-underline-offset: 2px; }
@media (max-width: 44rem) {
  .sw-foot-inner { grid-template-columns: 1fr; }
  .sw-foot-links { justify-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-nav a.sw-nav-cta { transition: none; }
}
