:root {
  --ink: #1d1e1a;
  --paper: #ffffff;
  --line: rgba(29, 30, 26, 0.16);
  --muted: #696b64;
  --page-gradient:
    radial-gradient(circle at 14% 8%, rgba(255, 218, 184, .36), transparent 34%),
    radial-gradient(circle at 88% 22%, rgba(244, 202, 220, .32), transparent 38%),
    radial-gradient(circle at 24% 62%, rgba(221, 211, 246, .30), transparent 40%),
    radial-gradient(circle at 86% 90%, rgba(255, 232, 171, .28), transparent 35%),
    linear-gradient(155deg, #fffdfb 0%, #fffafb 48%, #fbfaff 100%);
}

@font-face {
  font-family: "Granola";
  src: url("fonts/granola.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  background: var(--page-gradient);
  background-attachment: fixed;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: transparent;
  font-family: "Nunito Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 48px 0 36px;
  overflow: hidden;
}

.intro { padding: 10px 22px 44px; }
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 14px;
}
.wordmark {
  display: inline-block;
  font: 400 25px/1 "Aboreto", serif;
  letter-spacing: .1em;
  text-decoration: none;
}
.brand-asterisk {
  width: 29px;
  height: 29px;
  object-fit: contain;
  transform: rotate(3deg);
}
h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(42px, 11vw, 72px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.07em;
}
.intro p {
  max-width: 475px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.sections { display: grid; gap: 46px; }
.link-section { min-width: 0; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 22px;
  margin-bottom: 13px;
}
.section-heading h2 {
  margin: 0;
  font-size: 21px;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 400;
  letter-spacing: -.045em;
}
.section-heading > span {
  color: var(--muted);
  font: 400 9px/1 "Nunito Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.swipe-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: "Granola", cursive !important;
  font-size: 17px !important;
  font-weight: 400;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.swipe-label svg {
  width: 32px;
  height: 16px;
  overflow: visible;
}
.swipe-label.is-cueing svg {
  animation: swipe-arrow-cue 620ms cubic-bezier(.42, 0, .58, 1) 2;
}
@keyframes swipe-arrow-cue {
  0%, 100% { transform: translateX(0); }
  48% { transform: translateX(5px); }
}
.swipe-label path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(205px, 38%);
  gap: 12px;
  overflow-x: auto;
  margin-top: -3px;
  padding: 3px 22px 12px;
  scroll-padding-inline: 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.link-list::-webkit-scrollbar { display: none; }
.featured-list { grid-auto-columns: minmax(310px, 76%); }

.link-card {
  position: relative;
  min-height: 292px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  box-shadow: none;
  text-decoration: none;
  scroll-snap-align: start;
  isolation: isolate;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.featured-list .link-card { min-height: 350px; }
.link-card:hover { transform: translateY(-2px); }
.link-card:active {
  transform: scale(.98);
  box-shadow: inset 0 0 0 999px rgba(10, 10, 9, .055);
}
.link-card:focus-visible { outline: 3px solid #1d1e1a; outline-offset: 3px; }

.image-placeholder {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.72) 0 7%, transparent 7.5%),
    linear-gradient(145deg, rgba(255,255,255,.55), transparent 45%);
}
.color-sage .image-placeholder { background-color: #aab9a1; }
.color-sand .image-placeholder { background-color: #ccbfa8; }
.color-lavender .image-placeholder { background-color: #b8b2c8; }
.color-sky .image-placeholder { background-color: #9ebbc4; }
.color-peach .image-placeholder { background-color: #d2ac98; }
.color-moss .image-placeholder { background-color: #758778; }
.color-butter .image-placeholder { background-color: #d9c984; }
.color-blue .image-placeholder { background-color: #829ca8; }
.color-rose .image-placeholder { background-color: #c59c9b; }
.color-clay .image-placeholder { background-color: #a77862; }

.image-scrim {
  position: absolute;
  inset: 28% 0 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(12, 13, 11, .76));
  pointer-events: none;
}
.link-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 24px 54px 22px 20px;
  color: white;
  text-shadow: 0 1px 10px rgba(0,0,0,.28);
}
.link-copy strong {
  font-family: "Nunito Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.025em;
}
.link-copy small {
  color: rgba(255,255,255,.78);
  font-size: 10px;
  line-height: 1.45;
}
.is-placeholder { cursor: default; }

.elsewhere {
  margin: 58px 22px 0;
  padding: 24px 0 4px;
  border-top: 1px solid var(--line);
}
.elsewhere > p {
  margin: 0 0 14px;
  color: var(--muted);
  font: 400 14px/1 "Granola", cursive;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.elsewhere-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 14px;
}
.elsewhere-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px 0 3px;
  border-bottom: 1px solid #8a927a;
  font-family: "Nunito Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 140ms ease, opacity 140ms ease;
}
.elsewhere-links a::after {
  content: "";
  position: absolute;
  left: calc(100% + 5px);
  top: 50%;
  width: 12px;
  height: 12px;
  background: url("images/karina-asterisk.png") center / contain no-repeat;
  opacity: 0;
  transform: translateY(-50%) rotate(3deg) scale(.72);
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}
.elsewhere-links a:hover {
  border-color: #7b846b;
}
.elsewhere-links a:active {
  border-color: #6f775f;
}
.elsewhere-links a:active::after {
  opacity: 1;
  transform: translateY(-50%) rotate(3deg) scale(1);
}

footer {
  margin: 30px 22px 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
footer > a { font-size: 13px; font-weight: 400; text-decoration: none; }
footer > a:hover { text-decoration: underline; }
footer p { max-width: 470px; margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.sf-time {
  flex: 0 0 auto;
  font-family: "Granola", cursive;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .intro, .section-heading { padding-left: 32px; padding-right: 32px; }
  .link-list { padding-left: 32px; padding-right: 32px; scroll-padding-inline: 32px; }
  .elsewhere, footer { margin-left: 32px; margin-right: 32px; }
}
@media (max-width: 480px) {
  .page {
    padding-top: calc(25px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  }
  .intro { padding-bottom: 36px; }
  .brand-lockup { gap: 2px; margin-bottom: 12px; }
  .wordmark { font-size: 22px; }
  .brand-asterisk { width: 26px; height: 26px; }
  .link-list { grid-auto-columns: 72%; }
  .featured-list { grid-auto-columns: 88%; }
  .link-card { min-height: 270px; }
  .featured-list .link-card { min-height: 330px; }
  footer { gap: 10px; }
  .affiliate-note {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 9px;
  }
  .affiliate-note span {
    display: block;
    white-space: nowrap;
  }
  .sf-time { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .link-card { transition: none; }
  .swipe-label.is-cueing svg { animation: none; }
}
