/* Fairy's Beauty coming-soon page. Direction: editorial beauty (a magazine page on cream paper).
   Palette: paper + plum ink (from the logo lettering) + the brand pink, used only for the fairy dust. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f6efe6;
  --ink: #2a1730;
  --ink-soft: #5c4760;
  --rule: rgba(42, 23, 48, 0.18);
  --pink: #db2777;
  --gutter: clamp(16px, 5vw, 72px);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html { background: var(--paper); }

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--gutter);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Fine paper grain, so the cream reads as printed stock rather than a flat fill. */
  background:
    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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .09 0 0 0 0 .19 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--paper);
}

.dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.masthead,
.page,
.colophon { position: relative; z-index: 1; }

.masthead { padding-top: clamp(20px, 4vw, 44px); }

.logo {
  display: block;
  width: clamp(104px, 11vw, 148px);
  height: auto;
  /* The fairy is white; a soft ink shadow keeps her visible on cream. */
  filter: drop-shadow(0 1px 1px rgba(42, 23, 48, 0.25));
}

.page {
  align-self: center;
  padding: clamp(32px, 7vh, 96px) 0;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 9vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}
h1 span,
h1 em { display: block; }
h1 em {
  font-style: italic;
  /* Optical indent: the italic brand name steps in, like a pull line in a magazine spread. */
  padding-left: 0.6em;
}

.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 30ch));
  gap: clamp(20px, 4vw, 64px);
  margin-top: clamp(32px, 6vh, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  max-width: 68ch;
}
.notes p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  line-height: 1.4;
}
.notes p[lang="ms"] { font-style: italic; color: var(--ink-soft); }

.colophon {
  display: flex;
  justify-content: space-between;
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  h1 em { padding-left: 0.35em; }
  .notes { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* Fairy dust (drawn by fairy-dust.js) */
.dust .trail {
  fill: none;
  stroke: var(--pink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 0 7;
  opacity: 0.75;
}
.dust .mote { fill: var(--pink); }
.dust .ring { fill: none; stroke: var(--pink); stroke-width: 1; vector-effect: non-scaling-stroke; }
