/* Marbary LLC — brand ink #2E3192 on warm bone, with a desert terracotta accent. */

:root {
  --ink:        #2e3192;
  --ink-deep:   #1e2063;
  --ink-soft:   #5559b8;
  --terracotta: #b85c38;

  --bg:         #faf7f2;
  --bg-alt:     #f2ece2;
  --surface:    #ffffff;
  --rule:       #e2dacd;

  --text:       #23233a;
  --text-muted: #63637d;

  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 68rem;
  --shadow: 0 1px 2px rgba(35, 35, 58, .05), 0 8px 28px -12px rgba(35, 35, 58, .18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #9aa0f0;
    --ink-deep:   #c3c7ff;
    --ink-soft:   #8288e0;
    --terracotta: #e08a63;

    --bg:         #14141f;
    --bg-alt:     #1b1b2a;
    --surface:    #1e1e2e;
    --rule:       #32324a;

    --text:       #e8e6f2;
    --text-muted: #a3a2bb;

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink-deep);
  margin: 0 0 .5em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink-deep);
}

.brand-mark { width: 2.6rem; height: auto; }

@media (prefers-color-scheme: dark) {
  /* The mark is flat ink; lift it so it reads on the dark field. */
  .brand-mark { filter: brightness(0) invert(1); opacity: .92; }
}

.brand-word {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
  font-size: .95rem;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-header nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 .9rem;
}

.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--rule);
}

.hero-inner { max-width: 46rem; }

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  margin-bottom: .45em;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-invert {
  background: #fff;
  color: var(--ink-deep);
}

@media (prefers-color-scheme: dark) {
  .btn { background: var(--ink); color: #14141f; }
  .btn-quiet { background: transparent; color: var(--ink); }
  .btn-invert { background: #fff; color: #1e2063; }
}

/* ---------- work ---------- */

.section-title {
  font-size: .8rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.work { padding: clamp(3rem, 7vw, 5rem) 0; }

.product {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.product-icon img {
  width: 88px;
  height: 88px;
  border-radius: 18px;
}

.product-body > :last-child { margin-bottom: 0; }

.product h3 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: .2em;
}

.tagline {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.product p { margin: 0 0 1rem; }

.link-arrow {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-soft);
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { border-bottom-color: var(--ink); }

.product-links { margin-bottom: .75rem; }

.fineprint {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- about ---------- */

.about {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: start;
}

.about-photo img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.about-body p { margin: 0 0 1.1rem; }

.person-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-deep);
  margin: 0 0 .15rem !important;
}

.person-title {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 1.4rem !important;
}

/* ---------- contact ---------- */

.contact {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--ink-deep);
  color: #eceafb;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .contact { background: #10101a; }
}

.contact-inner { max-width: 38rem; }

.contact-mark {
  width: 4.5rem;
  margin: 0 auto 1.5rem;
  opacity: .9;
}

.contact h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.contact p { margin: 0 0 1.5rem; color: #c9c7e8; }

/* ---------- footer ---------- */

.site-footer {
  padding: 2rem 0;
  font-size: .9rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer p { margin: 0; }

.footer-links { display: flex; gap: .6rem; align-items: center; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- small screens ---------- */

@media (max-width: 40rem) {
  .site-header nav { gap: 1.1rem; font-size: .9rem; }
  .brand-word { font-size: 1.15rem; }

  .product {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 13rem; }
}
