/*
  global.css: typography rules only (font size and font weight).
  No colors, no spacing, no line-height, no letter-spacing.

  RULES
  0. h1, h2, h3, .heading-card use --font-heading (Instrument Serif).
  1. h1        -> --size-h1, weight 400
  2. h2        -> --size-h2, weight 400
  3. subtitle  -> --size-subtitle, weight 400  (use class .subtitle)
  4. p         -> --size-p, weight 400
  5. An h2 inside a two-column (left/right) section is smaller than the
     centered h2. Mark the section with class .two-col. There is no
     two-column h1: the h1 always uses --size-h1.

  6. Card heading (small heading inside a card, like the hero video card):
     class .heading-card -> --size-heading-card, weight 400. Use it on any
     h2/h3 that should be this size, instead of the normal h2 size.

  7. Card paragraph (small text inside a card, caption, footer note):
     class .p-card -> --size-p-card, weight 400. Use it instead of the
     normal paragraph size.

  Always check these values here before setting any font size elsewhere.
*/

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../assests/fonts/DMSans-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../assests/fonts/DMSans-Italic-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assests/fonts/InstrumentSerif-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assests/fonts/InstrumentSerif-Italic.woff2") format("woff2");
}

:root {
  --weight: 400;

  /* headings use DM Sans; body text uses DM Sans too, no Montserrat (Instrument Serif files are kept in assests/fonts) */
  --font-heading: "DM Sans", "Instrument Serif", Georgia, sans-serif;

  --size-h1: clamp(2.5rem, 7vw, 100px);
  --size-h2: clamp(2.75rem, 5vw, 4.5rem);
  --size-subtitle: 0.75rem;
  --size-p: 1.125rem;

  --size-heading-card: 1.75rem;
  --size-p-card: 0.875rem;

  /* h2 size inside a two-column section */
  --size-h2-two-col: clamp(2.25rem, 3.6vw, 3.5rem);
}

h1,
h2,
h3,
.heading-card {
  font-family: var(--font-heading);
}

h1 {
  font-size: var(--size-h1);
  font-weight: var(--weight);
}

h2 {
  font-size: var(--size-h2);
  font-weight: var(--weight);
}

.subtitle {
  font-size: var(--size-subtitle);
  font-weight: var(--weight);
}

p {
  font-size: var(--size-p);
  font-weight: var(--weight);
}

.two-col h2 {
  font-size: var(--size-h2-two-col);
}

/* placed last and as h2.heading-card so it beats h2 and .two-col h2 */
.heading-card,
h2.heading-card {
  font-size: var(--size-heading-card);
  font-weight: var(--weight);
}

/* placed last and as p.p-card so it beats p */
.p-card,
p.p-card {
  font-size: var(--size-p-card);
  font-weight: var(--weight);
}

/* soft text glow, only on the heading that sits over the dark photo (it would be invisible on white) */
#contact h2:not(.no-glow) {
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.28), 0 0 6px rgba(255, 255, 255, 0.14);
}

/* headings that sit on a white surface */
h2.no-glow {
  text-shadow: none;
}

/* gradient border used on cards across the page: a 1px gold-to-faint ring drawn with a mask, so it sits on any surface */
.g-ring {
  position: relative;
}
.g-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(227, 185, 92, 0.6), rgba(255, 255, 255, 0.07) 38%, rgba(255, 255, 255, 0.07) 62%, rgba(227, 185, 92, 0.38));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  transition: opacity 0.3s;
}
details.g-ring[open]::after {
  background: linear-gradient(135deg, #e3b95c, rgba(227, 185, 92, 0.18) 45%, rgba(255, 255, 255, 0.08) 70%, rgba(227, 185, 92, 0.6));
}
.g-ring-light::after {
  padding: 2px;
  background: linear-gradient(135deg, #e3b95c, #013F46 50%, #e3b95c);
}

/* hero paragraph: 20px (placed last so it beats p) */
p.hero-lead {
  font-size: 20px;
}
