@font-face {
  font-family: Lora;
  src: url("./web/assets/lora.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./web/assets/plex.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #17334d;
  --gold: #e5c272;
  --cream: #f4edde;
  --paper: #faf7ef;
  --white: #fffaf0;
  --muted: #43596b;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 16px/1.5 "IBM Plex Sans", Arial, sans-serif; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: Lora, Georgia, serif; font-weight: 500; line-height: 1.08; letter-spacing: -.04em; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #366b83; outline-offset: 4px; }
.page { width: min(1100px, calc(100% - 2 * clamp(16px, 5vw, 64px))); margin-inline: auto; padding-block: clamp(26px, 6vw, 79px) 50px; }
.intro { margin-bottom: clamp(21px, 4vw, 40px); }
.intro h1 { font-size: clamp(3.4rem, 8vw, 6.6rem); }
.intro p { color: var(--muted); margin-top: 6px; font-size: clamp(1rem, 1.8vw, 1.23rem); }
.resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.resource { overflow: clip; border-radius: 8px; min-width: 0; background: var(--cream); }
.resource__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.resource__copy { padding: clamp(18px, 3vw, 31px); }
.resource h2 { font-size: clamp(1.75rem, 3.6vw, 3.2rem); }
.resource--store { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); color: var(--white); background: var(--navy); }
.resource--store .resource__photo { grid-column: 2; grid-row: 1; min-height: 230px; max-height: 324px; object-position: right center; }
.resource--store .resource__copy { grid-column: 1; grid-row: 1; align-self: center; }
.resource--store p { max-width: 31ch; margin-block: 11px 17px; color: #e3e9e9; }
.resource--store a:focus-visible { outline-color: var(--gold); }
.resource--manual .resource__photo { height: auto; aspect-ratio: 2.2; object-position: 50% 53%; }
.resource--manual h2 { font-size: clamp(1.65rem, 3vw, 2.8rem); }
.actions { display: flex; align-items: center; gap: 5px 14px; flex-wrap: wrap; margin-top: 12px; }
.action { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 45px; padding: 7px 12px; border-radius: 5px; background: var(--navy); color: var(--white); font-weight: 620; text-decoration: none; }
.action:hover { background: #274963; }
.resource--store .action { background: var(--gold); color: var(--navy); }
.resource--store .action:hover { background: #f3d58e; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 580; text-underline-offset: 4px; }

@media (max-width: 660px) {
  .resources, .resource--store { grid-template-columns: minmax(0, 1fr); }
  .resource--store .resource__photo { grid-column: 1; grid-row: auto; height: auto; min-height: 0; aspect-ratio: 2.1; object-position: 100% 48%; }
  .resource--store .resource__copy { grid-column: 1; grid-row: auto; }
}
