/* Important Flowers — placeholder.
   Palette and type follow the IG Planner: washed out like a faded print,
   nothing fully saturated, nothing pure white. */

/* Fonts are served from this site, so the page asks nothing of Google.
   Latin subsets of the Google Fonts files; licenses (SIL OFL) in /fonts. */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/BodoniModa-Latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/BodoniModa-Italic-Latin.woff2') format('woff2');
}

/* One variable file covers both Jost weights in use (300 and 400). */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('/fonts/Jost-Latin.woff2') format('woff2');
}

:root {
  --cream: #fbf6ef;
  --powder: #f3e4e6;
  --blush: #e8bfc6;
  --rose: #d18b9a;
  --sky: #cbd9e3;
  --petrol: #4a5d6b;
  --ink: #3d3438;
  --faded: #9a8b8f;
  --gild: #c8a96b;

  --display: 'Bodoni Moda', Didot, 'Bodoni 72', serif;
  --body: 'Jost', system-ui, sans-serif;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");

  color-scheme: light;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background-color: var(--cream);
  /* Pink low left, a cold blue high right, cream between. */
  background-image:
    radial-gradient(1100px 620px at 8% 104%, rgba(232, 191, 198, 0.5), transparent 62%),
    radial-gradient(940px 540px at 96% -8%, rgba(203, 217, 227, 0.55), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Grain over the wash, under the type. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.32;
  mix-blend-mode: multiply;
  pointer-events: none;
}

main {
  position: relative;
  text-align: center;
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.9rem, 10.5vw, 6.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Each word stays whole, so a phone breaks the mark into two lines, not mid-word. */
.wordmark span {
  display: inline-block;
}

.wordmark em {
  font-style: italic;
}

.rule {
  display: block;
  width: 56px;
  height: 1px;
  margin: clamp(22px, 4vw, 34px) auto clamp(18px, 3vw, 26px);
  background: var(--gild);
  opacity: 0.85;
}

.line {
  margin: 0;
  font-size: clamp(0.72rem, 2.6vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.34em;
  /* Tracking adds space after the last letter too; pull it back so the line centers. */
  margin-right: -0.34em;
  text-transform: uppercase;
  color: var(--faded);
}

.line a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--blush);
  transition: color 0.2s, border-color 0.2s;
}

.line a:hover,
.line a:focus-visible {
  color: var(--rose);
  border-color: var(--rose);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
}
