/* Song Anvil, LLC company site — cream/ivory + gold, glossy rims.
   Light and dark differ only in color. No tracking. */
:root {
  --paper: #FBF7EE;
  --ink: #3A2412;
  --cream: #FFFDF8;
  --gold: #E8B547;
  --gold-bright: #FCD56D;
  --night: #0F0A06;
  --night-card: #170F0A;
  --card: #FFFDF8;
  --btn-fill: #FFF8E8;
  --btn-ink: #3A2412;
  --plate: #0F0A06;
  --shadow: 0 10px 28px rgba(58, 36, 18, 0.14);
  --gloss: linear-gradient(180deg, rgba(255,253,248,0.72) 0%, rgba(255,253,248,0.08) 46%, rgba(232,181,71,0.10) 100%);
  --focus: #8A5A12;
}
html[data-theme="dark"] {
  --paper: #0F0A06;
  --ink: #FFF6E3;
  --cream: #FFF6E3;
  --card: #170F0A;
  --btn-fill: #170F0A;
  --btn-ink: #FFF6E3;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --gloss: linear-gradient(180deg, rgba(255,246,227,0.16) 0%, rgba(255,246,227,0.02) 46%, rgba(232,181,71,0.10) 100%);
  --focus: #FCD56D;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --paper: #0F0A06;
    --ink: #FFF6E3;
    --cream: #FFF6E3;
    --card: #170F0A;
    --btn-fill: #170F0A;
    --btn-ink: #FFF6E3;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    --gloss: linear-gradient(180deg, rgba(255,246,227,0.16) 0%, rgba(255,246,227,0.02) 46%, rgba(232,181,71,0.10) 100%);
    --focus: #FCD56D;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--paper); color: var(--ink); }
body {
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--focus); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}
.skip:focus, .skip:focus-visible {
  position: absolute;
  top: 12px; left: 12px;
  width: auto; height: auto;
  margin: 0; padding: 8px 14px;
  overflow: visible; clip: auto; clip-path: none;
  white-space: normal;
  z-index: 30;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--gold); border-radius: 12px;
}

.wrap { width: min(760px, calc(100% - 2rem)); margin: 0 auto; }
.wrap-wide { width: min(980px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  border-bottom: 2px solid var(--gold);
  background: var(--paper);
}
.site-header .bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.85rem 1.2rem; padding: 0.9rem 0 1rem;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.logo-plate {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  background: var(--plate);
  border: 2px solid var(--gold);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,253,248,0.28), 0 4px 12px rgba(58,36,18,0.18);
  display: grid; place-items: center;
  overflow: hidden;
  padding: 6px;
}
.logo-plate img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-weight: 750; font-size: 1.15rem; line-height: 1.2; letter-spacing: 0.01em; }
.brand-name small { display: block; font-weight: 600; font-size: 0.82rem; opacity: 0.92; }

nav.primary { display: flex; flex-wrap: wrap; gap: 0.35rem 0.15rem; }
nav.primary a {
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  min-height: 44px;
  display: inline-flex; align-items: center;
  border-radius: 999px;
  font-weight: 650;
  color: var(--ink);
}
nav.primary a[aria-current="page"] {
  background: var(--card);
  border: 2px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,253,248,0.45);
}
nav.primary a:hover { color: var(--focus); }

.look-btn {
  appearance: none; -webkit-appearance: none;
  background: var(--btn-fill);
  color: var(--btn-ink);
  border: 2px solid var(--gold);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  font: inherit; font-size: 0.92rem; font-weight: 650;
  cursor: pointer;
  background-image: var(--gloss);
}
.header-tools { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

main { padding: 1.6rem 0 3rem; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 750; margin: 0 0 0.7rem; }
h1 { font-size: clamp(2rem, 5vw, 2.7rem); }
h2 { font-size: 1.45rem; margin-top: 1.8rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.3rem; font-weight: 600; margin-bottom: 1.2rem; }

.hero { display: grid; gap: 1.15rem; justify-items: start; margin-bottom: 1.6rem; }
.hero h1 { margin-bottom: 0.15rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  min-height: 56px;
  padding: 0.7rem 1.4rem;
  border-radius: 18px;
  border: 2px solid var(--gold);
  background: var(--btn-fill);
  background-image: var(--gloss), linear-gradient(180deg, var(--btn-fill), var(--btn-fill));
  color: var(--btn-ink);
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255,253,248,0.7), 0 6px 16px rgba(58,36,18,0.12);
}
.btn:hover { color: var(--btn-ink); filter: brightness(1.04); }
.btn.big {
  min-height: 64px;
  font-size: 1.28rem;
  padding: 0.85rem 1.7rem;
  border-width: 2.5px;
}

.card {
  background: var(--card);
  border: 2px solid var(--gold);
  border-radius: 22px;
  padding: 1.3rem 1.25rem 1.2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 42%;
  background: var(--gloss);
  pointer-events: none;
  border-radius: 20px 20px 40% 40%;
}
.card > * { position: relative; }
.card + .card { margin-top: 1.1rem; }

.app-logo {
  width: min(420px, 100%);
  margin: 0 auto 1rem;
  padding: 0.9rem 0.8rem;
  background: var(--plate);
  border: 2px solid var(--gold);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,253,248,0.25);
}
.app-logo img { margin: 0 auto; width: min(380px, 100%); }

.muted-note { font-size: 1rem; }

.site-footer {
  border-top: 2px solid var(--gold);
  padding: 1.4rem 0 2.2rem;
  background: var(--paper);
  font-size: 1rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; margin-bottom: 0.7rem; }
.site-footer nav a { font-weight: 650; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-meta { margin: 0.2rem 0; }

@media (max-width: 639px) {
  body { font-size: 1.05rem; }
  .logo-plate { width: 60px; height: 60px; border-radius: 16px; }
  .btn.big { width: 100%; }
  nav.primary { width: 100%; }
}
@media (min-width: 960px) {
  body { font-size: 1.16rem; }
  main { padding-top: 2.1rem; }
}

/* Keep the page from horizontal scroll at phone and desktop widths. */
.site-header, main, .site-footer { overflow-x: clip; }
