/* Cedric C. Canton Memorial: shared tokens, fonts, resets */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Josefin+Sans:wght@300;400&display=swap");

:root {
  --paper: #faf9f6;
  --ink: #4a4a4f;
  --slate-blue: #3f5b82;
  --lavender: #9a92b5;
  --lavender-tint: #efecf5;
  --copper: #9b6b4f;
  --line: #e4e0ea;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-label: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;

  --maxw: 960px;
  --gutter: 20px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.15rem; /* ~18px */
  line-height: 1.65;
}

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

/* The hidden attribute must always win over component display rules */
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
  line-height: 1.15;
}

a { color: var(--slate-blue); }

:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 3px;
}

.label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 300;
  color: var(--copper);
  font-size: 0.85rem;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Button */
.btn {
  display: inline-block;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  padding: 0.85em 1.6em;
  border: 1px solid var(--slate-blue);
  background: var(--slate-blue);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
}
.btn:hover { background: #324b6d; }
.btn--ghost { background: transparent; color: var(--slate-blue); }
.btn--ghost:hover { background: var(--lavender-tint); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
