@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url("/allgifts/fonts/Fraunces_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("/allgifts/fonts/InstrumentSans_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("/allgifts/fonts/InstrumentSans_600SemiBold.ttf") format("truetype"); }

:root {
  --ground: #F4EDE0; --panel: #FFFCF5; --ink: #211A2E; --soft: #6E6480; --line: #DDD0B8; --accent: #D8412F;
  --side: clamp(20px, 6vw, 88px);
  --serif: Fraunces, Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.55 "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }

/* The papers of src/theme.ts. */
.red { --base: #D8412F; --print: #E4604D; --ribbon: #F7E7C6; --paper: radial-gradient(var(--print) 4px, transparent 4.5px) 0 0 / 34px 34px, radial-gradient(var(--print) 4px, transparent 4.5px) 17px 17px / 34px 34px; }
.teal { --base: #1F8A84; --print: #6CC2B8; --ribbon: #F7E7C6; --paper: repeating-linear-gradient(135deg, var(--print) 0 9px, transparent 9px 26px); }
.yellow { --base: #E9A81C; --print: #F8D577; --ribbon: #2F4FB5; --paper: linear-gradient(135deg, var(--print) 25%, transparent 25%) -14px 0 / 28px 20px, linear-gradient(225deg, var(--print) 25%, transparent 25%) -14px 0 / 28px 20px, linear-gradient(315deg, var(--base) 25%, transparent 25%) 0 5px / 28px 20px, linear-gradient(45deg, var(--base) 25%, transparent 25%) 0 5px / 28px 20px; }
.pink { --base: #E58AA6; --print: #F8C3D1; --ribbon: #A5243A; --paper: radial-gradient(var(--print) 4px, transparent 4.5px) 0 0 / 30px 30px, radial-gradient(var(--print) 4px, transparent 4.5px) 15px 15px / 30px 30px; }
.blue { --base: #2F4FB5; --print: #7F97E3; --ribbon: #F2C230; --paper: linear-gradient(90deg, rgb(127 151 227 / 0.55) 50%, transparent 50%) 0 0 / 28px 28px, linear-gradient(0deg, rgb(127 151 227 / 0.55) 50%, transparent 50%) 0 0 / 28px 28px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--side); }
.brand { display: flex; align-items: center; gap: 12px; font: 600 clamp(1.375rem, 5.6vw, 1.75rem)/1 var(--serif); text-decoration: none; white-space: nowrap; }
.brand img { display: block; border-radius: 12px; }
nav { display: flex; gap: 6px; font-weight: 600; font-size: 0.875rem; }
nav a, nav span { padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; }
nav a:hover { border-color: var(--ink); }
nav span { border-color: var(--ink); background: var(--ink); color: var(--ground); }

.hero, .feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(36px, 6vw, 88px) var(--side); }
.feature.flip > .parcel { order: 2; }

h1 { font-size: clamp(2.5rem, 4.5vw, 4.75rem); }
h1 span { display: block; }
h1 span + span { color: var(--accent); }
.lede { max-width: 32em; margin-top: clamp(20px, 2.5vw, 32px); font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); color: var(--soft); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.stores a { padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--ground); font-weight: 600; line-height: 1.2; text-decoration: none; }
.stores a:hover { background: var(--accent); }
.note { margin-top: 12px; font-size: 0.9375rem; color: var(--soft); }

/* A parcel: the paper, then the two bands of the ribbon. */
.parcel { position: relative; isolation: isolate; border-radius: 28px; background: var(--paper), var(--base); overflow: hidden; }
.parcel::before, .parcel::after { content: ""; position: absolute; z-index: -1; background: var(--ribbon); box-shadow: 0 0 0 1px rgb(33 26 46 / 0.08); }
.parcel::before { top: 0; bottom: 0; left: 18%; width: clamp(34px, 9%, 72px); }
.parcel::after { left: 0; right: 0; top: 62%; height: clamp(34px, 9%, 72px); }

.hero .parcel { padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px); transform: rotate(-2deg); }
.hero .parcel .phone { transform: rotate(2deg); }

.phone { margin: 0 auto; width: min(100%, 330px); }
.phone img { display: block; width: 100%; height: auto; border: 9px solid var(--ink); border-radius: 13% / 6%; background: var(--ink); box-shadow: 0 24px 48px -18px rgb(33 26 46 / 0.45); }
@media (prefers-reduced-motion: no-preference) {
  .hero .parcel { animation: unwrap 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.05) 0.1s both; }
  @keyframes unwrap { from { transform: translateY(36px) rotate(3deg); } to { transform: rotate(-2deg); } }
}

/* The gift tag holds the text. The hole of the tag is at its top left. */
.feature .parcel { padding: clamp(22px, 4vw, 56px); }
.tag { position: relative; padding: clamp(26px, 3.4vw, 44px); padding-top: clamp(52px, 5vw, 68px); border-radius: 20px; background: var(--panel); box-shadow: 0 18px 36px -20px rgb(33 26 46 / 0.5); }
.tag::before { content: ""; position: absolute; top: 20px; left: 24px; width: 18px; height: 18px; border-radius: 50%; background: var(--base, var(--accent)); box-shadow: inset 0 2px 3px rgb(33 26 46 / 0.35); }
.feature h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
.tag > p:not(.stores, .note) { max-width: 30em; margin-top: 16px; font-size: 1.125rem; color: var(--soft); }
.tag ul { margin: 22px 0 0; padding: 0; list-style: none; }
.tag li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); font-weight: 600; }
.tag li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 12px; border-radius: 3px; background: var(--base); transform: rotate(45deg); }

.questions { padding: clamp(40px, 7vw, 96px) var(--side); }
.questions h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); }
.questions dl { margin: clamp(20px, 3vw, 36px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.questions div { padding: clamp(20px, 2.6vw, 30px); border-radius: 20px; background: var(--panel); }
dt { font: 600 clamp(1.25rem, 2vw, 1.5rem)/1.2 var(--serif); }
dd { margin: 8px 0 0; color: var(--soft); }

.closing { margin: 0 var(--side) clamp(40px, 6vw, 80px); padding: clamp(28px, 6vw, 88px); }
.closing .tag { max-width: 34rem; }
.closing h2 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px var(--side) 40px; border-top: 1.5px solid var(--line); font-size: 0.9375rem; color: var(--soft); }

@media (max-width: 820px) {
  .hero, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip > .parcel { order: 0; }
  h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .phone { width: min(74%, 300px); }
  .questions dl { grid-template-columns: minmax(0, 1fr); }
}
