/* benveg.com — shared styles.
   One hue, and it is Benveg's own. The name is Breton, so the color is
   too: Brittany divides itself into Armor, the country by the sea, and
   Argoat, the country of the wood. The accent is the Argoat — a deep
   forest green, and the only color on the site. romy's terracotta stays
   on romy.app, where it belongs.
   The written record and the rationale are in design/BENVEG_THEME.md. */

:root {
  --ground:    #eef1f4;
  --surface:   #ffffff;
  --ink:       #0f1419;
  --ink-soft:  #545e68;
  --hair:      #d3d9df;
  --accent:    #26654a;  /* Argoat green — the only hue on the site */

  --wordmark: clamp(3.25rem, 13vw, 7rem);
  --lead:     clamp(1.5rem, 4.2vw, 2.375rem);
  --body:     1rem;
  --micro:    0.6875rem;

  --col: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:   #0c1013;
    --surface:  #12171b;
    --ink:      #e6eaee;
    --ink-soft: #8b97a3;
    --hair:     #232c34;
    --accent:   #57a882;
  }
}

:root[data-theme="dark"] {
  --ground:   #0c1013;
  --surface:  #12171b;
  --ink:      #e6eaee;
  --ink-soft: #8b97a3;
  --hair:     #232c34;
  --accent:   #57a882;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--col);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) clamp(1.5rem, 6vw, 3rem) clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 5vw, 3.25rem);
}

/* --- the stamp --- */

.wordmark {
  margin: 0;
  font-size: var(--wordmark);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.86;
  text-transform: uppercase;
  /* pull the B's side bearing back so the stem aligns optically with the
     hairline and the lead paragraph below it */
  margin-left: -0.035em;
}

.rule {
  height: 1px;
  background: var(--hair);
  border: 0;
  margin: 0;
  transform-origin: left center;
  animation: draw 900ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes draw { from { transform: scaleX(0); } }

.lead {
  margin: 0;
  font-size: var(--lead);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
  max-width: 20ch;
}

/* --- what we build ---
   One product, so this is one lifted object rather than a table with a wide
   empty label column. The border is spent here and nowhere else on the page. */

.build { display: flex; flex-direction: column; gap: 0.85rem; }

.eyebrow {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.product {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 1.35rem 1.5rem 1.5rem;
  transition: border-color 220ms cubic-bezier(0.2, 0.7, 0.3, 1),
              background-color 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.product:hover { border-color: var(--accent); background-color: var(--surface); }

/* the one colored element on the page */
.product-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.product-name::after {
  content: "\2192";
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.product:hover .product-name::after { transform: translateX(0.3em); }

.product-desc {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  max-width: 48ch;
}

a { color: inherit; }

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

.mail { text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 1px; }
.mail:hover { border-bottom-color: currentColor; }

/* --- foot --- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.75rem;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--micro);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* An address is never uppercased, and it is the one thing here anyone needs
   to read at a glance — so it opts out of the footer's label treatment. */
.foot .mail {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8125rem;
  color: var(--ink);
}

@media (max-width: 34rem) {
  /* Two footer items on one narrow line collide before they wrap. */
  .foot { justify-content: flex-start; gap: 0.35rem 1rem; }
  .product { padding: 1.15rem 1.15rem 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
