:root {
  color-scheme: light;
  --ink: #242e23;
  --red: #792e40;
  --paper: #f7f2e8;
  --line: #ded4c3;
  --serif: "Playfair Display",Georgia,serif;
  --sans: "DM Sans",system-ui,sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px var(--sans);
}

a {
  color: inherit;
}

#brand {
  text-decoration: none;
}

.wrap {
  width: min(1020px,calc(100% - 64px));
  margin: auto;
}

header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 19px var(--serif);
}

.brand b {
  font: 22px var(--sans);
  color: var(--red);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  font-size: 13px;
}

nav a {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.hero {
  margin: 22px 0 34px;
  display: grid;
  place-items: center;
  min-height: 310px;
  text-align: center;
  background: #f0e5d7;
  border: 1px solid #ddc9b8;
  padding: 28px;
  overflow-wrap: anywhere;
}

.hero-copy {
  width: 100%;
  padding: 30px 12px 36px;
  border-top: 1px solid #ba9c88;
  border-bottom: 1px solid #ba9c88;
}

h1 {
  font: 500 clamp(52px,10vw,112px)/1 var(--serif);
  letter-spacing: -.065em;
  margin: 12px 0 17px;
  text-wrap: balance;
}

h1 em {
  color: var(--red);
  font-weight: 500;
}

.intro {
  margin: 0 auto;
  max-width: 440px;
  line-height: 1.6;
  color: #504439;
  font-size: 15px;
}

.gift-feature {
  margin: 0 0 30px;
  padding: 20px 22px;
  background: #792e40;
  color: #fff8ec;
}

.gift-feature a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.gift-feature a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.gift-feature a:focus-visible {
  outline-color: #fff8ec;
}

.gift-feature strong {
  font: 600 25px var(--serif);
}

.gift-feature span {
  font-size: 13px;
  text-align: right;
}

.gift-guide {
  max-width: 740px;
  margin: 28px auto 0;
}

.gift-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 6px;
}

.gift-back {
  display: inline-block;
  color: var(--red);
  text-underline-offset: 4px;
  font-size: 13px;
}

.gift-header h1 {
  font-size: clamp(45px,8vw,82px);
  color: var(--red);
  margin-top: 21px;
}

.gift-intro {
  font-size: 16px;
  line-height: 1.65;
  max-width: 570px;
  margin: 0;
  white-space: pre-wrap;
}

.gifts {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gift;
}

.gift {
  counter-increment: gift;
  border-bottom: 1px solid var(--line);
  position: relative;
  padding: 20px 0 20px 50px;
  overflow-wrap: anywhere;
}

.gift::before {
  content: counter(gift) ".";
  position: absolute;
  left: 0;
  top: 21px;
  font: 500 23px var(--serif);
  color: var(--red);
}

.gift h2 {
  margin: 0 0 7px;
  font: 600 25px var(--serif);
}

.gift p {
  margin: 0 0 8px;
  color: #51473c;
  line-height: 1.55;
  white-space: pre-wrap;
}

.gift a {
  display: inline-block;
  margin-top: 4px;
  color: var(--red);
  font-weight: 700;
  text-underline-offset: 3px;
}

body[data-view="guide"] .home-only,body[data-view="home"] .guide-only {
  display: none;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 15px;
}

.section-head h2 {
  font: 600 27px var(--serif);
  letter-spacing: -.045em;
  margin: 0;
}

.section-head:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.links li {
  min-width: 0;
}

.card {
  min-height: 83px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  text-decoration: none;
  background: #fdf9f0;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow-wrap: anywhere;
}

.card.featured {
  color: #fff8ee;
  background: var(--red);
  border-color: var(--red);
}

a.card:hover {
  border-color: var(--red);
  box-shadow: 0 3px 12px #522b2318;
}

a.featured:hover {
  background: #652236;
}

.icon {
  width: 41px;
  height: 41px;
  flex: none;
  display: grid;
  place-items: center;
  background: #eee6d6;
  border-radius: 4px;
  color: var(--red);
  font-size: 19px;
}

.featured .icon {
  background: #9a4a5b;
  color: #fff4da;
}

.card-copy {
  flex: 1;
}

.card strong {
  display: block;
  font: 600 17px var(--serif);
  line-height: 1.15;
}

.card small {
  display: block;
  color: #5e5d50;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
}

.featured small {
  color: #f7dce0;
}

.arrow {
  flex: none;
  color: var(--red);
  font-size: 18px;
}

.featured .arrow {
  color: #fff4da;
}

.pending {
  font-size: 10px;
  color: #645e52;
  white-space: nowrap;
}

.featured .pending {
  color: #fff0e8;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 26px 0 0;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
  font: italic 14px var(--serif);
  color: #655746;
}

footer span {
  color: var(--red);
  font-style: normal;
}

:focus-visible {
  outline: 3px solid #a34859;
  outline-offset: 4px;
}

@media(max-width:650px) {
  .wrap {
    width: calc(100% - 34px);
  }
  header {
    min-height: 60px;
    height: auto;
    gap: 10px;
    padding: 10px 0;
  }
  .brand {
    font-size: 17px;
  }
  nav {
    gap: 12px;
    text-align: right;
  }
  .hero {
    margin: 17px 0 24px;
    min-height: 235px;
    padding: 16px;
  }
  .hero-copy {
    padding: 22px 5px 25px;
  }
  .links {
    grid-template-columns: 1fr;
  }
  .gift-feature strong {
    font-size: 21px;
  }
  .gift {
    padding-left: 35px;
  }
  .card {
    min-height: 74px;
  }
}

.blog {
  width: min(740px, 100%);
  margin: 30px auto 0;
}

.blog-intro {
  margin: 0 0 30px;
  color: #504439;
  line-height: 1.6;
}

.post-summary {
  padding: clamp(18px, 4vw, 30px);
  background: #fffbf4;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}

.post-summary h3 {
  margin: 0;
  font: 600 clamp(23px, 4vw, 34px) var(--serif);
}

.post-summary p {
  margin: 8px 0 14px;
  line-height: 1.55;
}

.post-link {
  color: var(--red);
  font-weight: 700;
  text-underline-offset: 4px;
}
