:root {
  color-scheme: light;
  --canvas: #f8f7f3;
  --paper: #fffefb;
  --text: #1a2d25;
  --muted: #516158;
  --green: #1c4737;
  --line: #dfdfd4;
  --gold: #f0d79e;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--text);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; opacity: .65; }
:focus-visible { outline: 3px solid #a53245; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 78rem); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.wordmark span { color: #a53245; font-size: 1.45rem; }
.cover {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(11rem, 24vw, 17rem);
  margin-block: 2rem 2.25rem;
  padding: clamp(1.4rem, 5vw, 4rem);
  border-radius: 1.5rem;
  background: radial-gradient(ellipse at 80% 25%, #37674f, transparent 64%), #173c30;
  color: #fffaf0;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(2.75rem, 9vw, 7rem); line-height: 1.02; letter-spacing: -.057em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.5rem); line-height: 1.15; }
.cover-art { position: absolute; z-index: -1; inset: 0 0 0 62%; color: var(--gold); }
.cover-art::before, .cover-art::after {
  content: "";
  position: absolute;
  width: 115%;
  aspect-ratio: 1;
  border: 1px solid #f0d79e45;
  border-radius: 50%;
  bottom: -70%;
  right: -20%;
}
.cover-art::after { width: 145%; right: -30%; bottom: -100%; }
.star { position: absolute; line-height: 1; }
.star-large { top: 26%; right: 21%; font-size: clamp(3rem, 13vw, 10rem); }
.star-small { top: 17%; right: 53%; font-size: clamp(1rem, 4vw, 3rem); }
.star-tiny { top: 67%; right: 12%; font-size: clamp(1rem, 3vw, 2.3rem); }
.gate {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  max-width: 29rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  margin: 0 auto 3rem;
}
form { display: grid; gap: .7rem; margin-top: 1.25rem; }
label { font-size: .9rem; font-weight: 650; }
input {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid #9aa79e;
  border-radius: .6rem;
  padding: .5rem .75rem;
  background: white;
  color: var(--text);
}
.primary, .quiet, .filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 2.6rem;
  padding: .55rem 1rem;
  color: var(--text);
  background: var(--paper);
  font-size: .925rem;
  font-weight: 650;
}
.primary, .filters button[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
.primary { margin-top: .4rem; }
.quiet:hover, .filters button:not([aria-pressed="true"]):hover { background: #efefe7; }
.notice, #loading { margin-block: 1rem; color: var(--muted); }
.notice:empty { margin: 0; }
#login-message { color: #8a2635; }
.catalog { padding-bottom: 4rem; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: 1rem 1.45rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gift { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 1.05rem; }
.photo { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #efeee7; }
.photo img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.placeholder { color: #758d7e; font-size: 2.6rem; }
.details { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.1rem 1.15rem; }
.category { font-size: .875rem; color: var(--muted); }
h3 { font-size: 1.125rem; line-height: 1.35; margin: .25rem 0 1rem; overflow-wrap: anywhere; }
.card-footer { display: flex; gap: .5rem 1rem; flex-wrap: wrap; justify-content: space-between; align-items: baseline; margin-top: auto; }
.price { font-weight: 700; }
a { color: var(--green); font-size: .9rem; font-weight: 700; text-underline-offset: .22em; }
@media (max-width: 520px) {
  .wrap { width: calc(100% - 2rem); }
  .cover { margin-block: 1rem 1.65rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding: .3rem; margin-left: -.3rem; }
  .filters button { white-space: nowrap; }
}
