/* Shared foundations for the save the date and the future wedding website. */

:root {
  /* Palette (reference/colour-palette.png) */
  --moss: #6A6A53;
  --olive: #9B9879;
  --mahogany: #4D342D;
  --linen: #DDCCB7;
  --cream: #F1EBE1;
  --ink: #24261F;
  --walnut: #6B5040;

  /* Working tints */
  --paper: #FBF8F3;
  --envelope: #EEE6DA;
  --linen-deep: #CDB89F;
  --hairline: rgba(77, 52, 45, .16);

  /* Type */
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --sc: "Cormorant SC", "Cormorant Garamond", Garamond, Georgia, serif;
  --type: "Special Elite", "American Typewriter", "Courier New", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.65, 0, .35, 1);
}

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

html {
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-color: var(--cream);
  /* soft watercolour washes + paper grain */
  background-image:
    radial-gradient(60% 40% at 12% 8%, rgba(155, 152, 121, .10), transparent 70%),
    radial-gradient(50% 35% at 92% 30%, rgba(221, 204, 183, .45), transparent 70%),
    radial-gradient(70% 45% at 30% 75%, rgba(221, 204, 183, .35), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }

[hidden] { display: none !important; }

h1, h2, p { text-wrap: balance; }

.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--mahogany);
  line-height: 1.1;
}

.sc {
  font-family: var(--sc);
  font-weight: 500;
  letter-spacing: .22em;
}

a { color: inherit; }

::selection { background: var(--linen); color: var(--mahogany); }

:focus-visible {
  outline: 1.5px solid var(--mahogany);
  outline-offset: 4px;
}
