@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --ink: #202621;
  --paper: #f5efe3;
  --leaf: #4a5748;
  --line: #777d6b;
  --copper: #ce9068;
  --serif: "Instrument Serif", Georgia, serif;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: var(--copper); color: var(--ink); }
[hidden] { display: none !important; }

.spread {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  min-height: 100svh;
}

.cover {
  display: grid;
  place-items: center;
  min-width: 0;
  background: var(--ink);
}

.cover h1 { width: 100%; }
.cover a { display: block; }
.cover img { display: block; width: 100%; height: auto; }
.cover a:focus-visible { outline: 2px solid var(--copper); outline-offset: -3px; }

h1, h2, p { margin: 0; }
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.025em;
  font-size: clamp(3rem, 6vw, 4.3rem);
  line-height: 1;
}

.content {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(1.5rem, 6vw, 5rem);
}

.content section { width: min(100%, 23rem); }
p { margin-top: .9rem; color: var(--leaf); line-height: 1.55; overflow-wrap: anywhere; }
.actions { display: grid; gap: .75rem; margin-top: 2rem; }
.catalog-link { color: var(--ink); font-weight: 600; text-underline-offset: .2em; }
.catalog-link:focus-visible { outline: 2px solid #854023; outline-offset: 4px; }
.status { min-height: 1.6em; font-size: .875rem; color: #854023; }

button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 3.25rem;
  padding: .65rem 1rem;
  border: 1px solid #747775;
  border-radius: .25rem;
  background: #fff;
  color: #1f1f1f;
  cursor: pointer;
  font: 600 .96rem/1.2 "Instrument Sans", system-ui, sans-serif;
}

button:hover:not(:disabled) { background: #f1f3ef; }
button:focus-visible { outline: 2px solid #854023; outline-offset: 4px; }
button:disabled { cursor: wait; color: #555953; background: #eeeae2; }
button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
button.secondary:hover:not(:disabled) { background: #eae3d4; }

@media (max-width: 42rem) {
  .spread { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .content { align-items: start; padding-block: 2.5rem 1.5rem; }
}
