/* Per Mercem LLC: "cosmic lace" house style. Black, gold, ivory. */
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/eb-garamond.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --ink: #0A0907;
  --ink-2: #12100C;
  --gold: #C9A84C;
  --gold-soft: rgba(201, 168, 76, .38);
  --gold-faint: rgba(201, 168, 76, .14);
  --ivory: #F4EEDF;
  --ivory-2: rgba(244, 238, 223, .78);
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --text: "EB Garamond", Garamond, Georgia, serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--ivory-2);
  font: 400 1.1875rem/1.7 var(--text);
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ivory); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 42rem; text-align: center; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .5rem 1rem; background: var(--gold); color: var(--ink); }
.skip:focus { top: 1rem; }

/* small caps used for labels, navigation and the refined "body caps" voice */
.eyebrow, .nav a, .brand__status, .brand__link, .button, .section-title, .pillar h3, .contact__place, .site-footer p:first-of-type {
  font-family: var(--display); font-variant-caps: all-small-caps; letter-spacing: .16em; font-weight: 600;
}

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(10, 9, 7, .82); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gold-faint); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brandmark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ivory); }
.brandmark__name { font: 500 1.35rem/1 var(--display); letter-spacing: .24em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ivory-2); text-decoration: none; font-size: 1.15rem; white-space: nowrap; }
.nav a:hover { color: var(--gold); }

/* hero */
.hero { position: relative; overflow: hidden; text-align: center; padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(9rem, 17vw, 15rem);
  background: radial-gradient(ellipse 70% 55% at 50% 38%, rgba(201,168,76,.10), transparent 70%), var(--ink); }
.hero__dial { position: absolute; left: 50%; top: clamp(1rem, 3vw, 2.5rem); width: min(78vw, 620px); transform: translateX(-50%); opacity: .42; pointer-events: none; animation: turn 400s linear infinite; }
.hero__coast { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(170px, 24vw, 380px); object-fit: cover; object-position: center bottom; pointer-events: none; }
.hero__copy { position: relative; z-index: 1; }
.eyebrow { color: var(--gold); font-size: 1.1rem; margin: 0 0 1rem; }
.wordmark { margin: 0; color: var(--ivory); font: 300 clamp(3.2rem, 10vw, 7.5rem)/.95 var(--display); letter-spacing: .14em; text-transform: uppercase; padding-left: .14em; }
.motto { margin: 1.4rem 0 0; font: italic 400 clamp(1.2rem, 2.4vw, 1.55rem)/1.4 var(--display); color: var(--gold); }
.motto__sep { font-style: normal; font-size: .7em; margin: 0 .5em; vertical-align: .15em; }
.hero__lede { margin: 1.25rem auto 2.25rem; max-width: 38rem; text-wrap: balance; color: var(--ivory-2); }
.button { display: inline-block; padding: .7rem 2.1rem .8rem; border: 1px solid var(--gold); color: var(--gold); text-decoration: none; font-size: 1.15rem; background: rgba(10,9,7,.55); transition: background .25s, color .25s; }
.button:hover { background: var(--gold); color: var(--ink); }

@keyframes turn { to { transform: translateX(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__dial { animation: none; } html { scroll-behavior: auto; } }

/* sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section + .section { padding-top: 0; }
.divider { width: min(100%, 420px); margin: 0 auto 1.5rem; opacity: .9; }
.section-title { text-align: center; color: var(--gold); font-size: 1.6rem; margin: 0 0 1.75rem; }
.lead { font-size: 1.35rem; color: var(--ivory); line-height: 1.6; }
.narrow p { margin: 0 0 1.1rem; }

/* brands */
.brand__name, .brand__monogram, .brand__link { font-variant-numeric: lining-nums; }
.lead, .section-title, .pillar p, .brand__desc, .eyebrow { text-wrap: balance; }
.brands { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); max-width: 52rem; }
.brand { position: relative; text-align: center; padding: 2.75rem 2rem 2.4rem; border: 1px solid var(--gold-soft); background: linear-gradient(180deg, rgba(201,168,76,.05), transparent 60%), var(--ink-2); }
.brand::before, .brand::after { content: ""; position: absolute; width: 44px; height: 44px; background: url("/assets/corner.svg") no-repeat center / contain; opacity: .85; }
.brand::before { top: 6px; left: 6px; }
.brand::after { bottom: 6px; right: 6px; transform: rotate(180deg); }
.brand__monogram { display: inline-grid; place-items: center; width: 3.6rem; height: 3.6rem; border: 1px solid var(--gold-soft); border-radius: 50%; color: var(--gold); font: 500 1.5rem/1 var(--display); letter-spacing: .04em; box-shadow: 0 0 0 5px var(--ink-2), 0 0 0 6px var(--gold-faint); }
.brand__name { margin: 1.2rem 0 .4rem; color: var(--ivory); font: 500 2rem/1.1 var(--display); letter-spacing: .06em; }
.brand__desc { margin: 0 auto 1.4rem; max-width: 22rem; font-size: 1.05rem; }
.brand__status { display: inline-block; color: var(--gold); font-size: 1rem; padding: .2rem 1rem .3rem; border-top: 1px solid var(--gold-soft); border-bottom: 1px solid var(--gold-soft); }
.brand__link { display: inline-block; font-size: 1.05rem; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: .1rem; }

/* pillars */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); text-align: center; }
.pillar__num { display: block; color: var(--gold); font: italic 400 2.4rem/1 var(--display); margin-bottom: .6rem; }
.pillar h3 { color: var(--ivory); font-size: 1.3rem; margin: 0 0 .5rem; }
.pillar p { margin: 0 auto; max-width: 20rem; font-size: 1.05rem; }

/* contact */
.contact__email { font: 400 clamp(1.6rem, 4vw, 2.2rem)/1.3 var(--display); margin: 1.5rem 0 .5rem; }
.contact__email a { text-decoration: none; border-bottom: 1px solid var(--gold-soft); }
.contact__place { font-style: normal; color: var(--ivory-2); font-size: 1.15rem; }

/* footer */
.site-footer { border-top: 1px solid var(--gold-faint); padding: 2.5rem 0 3rem; text-align: center; }
.footer-inner { display: grid; justify-items: center; gap: .6rem; }
.footer-inner img { opacity: .8; }
.site-footer p { margin: 0; font-size: 1rem; color: var(--ivory-2); }
.site-footer .fineprint { font-size: .9rem; max-width: 36rem; color: rgba(244,238,223,.58); }

@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .header-inner { flex-direction: column; justify-content: center; gap: .35rem; padding: .7rem 0 .55rem; }
  .brandmark__name { font-size: 1.15rem; }
  .nav { gap: 1.1rem; }
  .nav a { font-size: 1.05rem; }
  .site-header { position: static; }
  .wordmark { letter-spacing: .08em; padding-left: .08em; }
  .hero { padding-bottom: 13rem; }
  .hero__dial { width: 118vw; top: 2.5rem; }
  .nav { gap: .9rem; }
  .nav a { letter-spacing: .1em; font-size: 1rem; }
  .eyebrow { font-size: .95rem; letter-spacing: .12em; }
  .motto__sep { display: none; }
  .motto__en { display: block; font-size: .85em; color: var(--ivory-2); margin-top: .2rem; }
  .site-footer p:first-of-type { letter-spacing: .06em; font-size: .92rem; }
}
