/* 26º Convívio da Família Queirós: shared brand (see /design). Used by the booth and the viewer. */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/montserrat-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #f5efe4;
  --cream-light: #fbf8f1;
  --cream-dark: #e9e2d4;
  --ink: #252015;
  --ink-soft: #5c5646;
  --olive: #686333;
  --olive-dark: #545029;
  --olive-light: #b4ae74; /* olive that reads on dark photos */
  --font: 'Montserrat', system-ui, 'Segoe UI', Roboto, sans-serif;
}

/* Subtle paper grain for cream surfaces */
.paper {
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.55), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.12 0 0 0 0 0.05 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* The leaf mark, recolourable through background-color */
.leaves {
  display: inline-block;
  aspect-ratio: 357 / 302;
  background-color: var(--leaf-color, var(--olive));
  -webkit-mask: url('leaves.png') center / contain no-repeat;
  mask: url('leaves.png') center / contain no-repeat;
}

/* Stacked logo lockup. Size it with font-size on .brand-logo. Markup:
   <div class="brand-logo"><div class="brand-num">26<span class="leaves"></span></div>
   <div class="brand-sub">Convívio da</div><div class="brand-name">Família<br>Queirós</div>
   <div class="brand-bar"></div></div> */
.brand-logo {
  --leaf-color: var(--olive);
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font-family: var(--font); color: var(--ink); line-height: 1;
}
.brand-logo .brand-num {
  display: flex; align-items: flex-start;
  font-size: 3.35em; font-weight: 700; letter-spacing: -0.035em; line-height: 0.82;
}
.brand-logo .brand-num .leaves { width: 0.56em; margin: -0.16em 0 0 0.03em; }
.brand-logo .brand-sub {
  margin-top: 0.42em;
  font-size: 0.43em; font-weight: 400; letter-spacing: 0.4em; text-transform: uppercase;
}
.brand-logo .brand-name {
  margin-top: 0.12em;
  font-size: 1.02em; font-weight: 700; letter-spacing: 0.05em; line-height: 1.02; text-transform: uppercase;
}
.brand-logo .brand-bar { width: 1.6em; height: 0.11em; margin-top: 0.42em; background: var(--leaf-color); align-self: center; }
.brand-logo.center { align-items: center; text-align: center; }

/* One-line lockup for footers: (leaves) 26º CONVÍVIO DA FAMÍLIA QUEIRÓS */
.brand-line {
  --leaf-color: var(--olive);
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font); color: var(--ink); white-space: nowrap;
  font-size: 1em; letter-spacing: 0.22em; text-transform: uppercase;
}
.brand-line .leaves { height: 1.35em; }
.brand-line b { font-weight: 800; letter-spacing: 0.06em; }
.brand-line span { font-weight: 400; }

/* Variants for dark / photo backgrounds */
.on-dark { --leaf-color: var(--olive-light); color: var(--cream-light); }
