/* =============================================================================
   Emma | Scottish Creator — Classic Chic
   cream · oatmeal · taupe · charcoal · Highland backdrop · mobile first
   ============================================================================= */

/* --- fonts (self-hosted, no third-party requests) ------------------------- */
@font-face {
  font-family: "Moon Dance";
  src: url("/assets/fonts/MoonDance.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/Caveat-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/Jost-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/Jost-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/Jost-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}


/* --- design tokens -------------------------------------------------------- */
:root {
  /* surfaces */
  --ivory:      #f5f0e7;   /* page */
  --cream:      #f8f4ee;   /* cards */
  --oatmeal:    #eae1d2;   /* social buttons */
  --cream-press:#f2ece3;   /* card, pressed */

  /* ink */
  --charcoal:   #201d1a;
  --muted:      #8c837a;
  --taupe:      #c0b4a3;

  /* hairlines */
  --line:       rgba(32, 29, 26, .10);
  --line-soft:  rgba(32, 29, 26, .07);

  /* elevation — barely there, warm rather than grey */
  --shadow:       0 1px 1px rgba(32, 29, 26, .025), 0 8px 18px -12px rgba(32, 29, 26, .26);
  --shadow-hover: 0 2px 3px rgba(32, 29, 26, .035), 0 16px 28px -16px rgba(32, 29, 26, .32);

  /* type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Jost", "Futura", "Century Gothic", var(--sans);
  --script: "Moon Dance", "Snell Roundhand", "Apple Chancery", cursive;
  --hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  /* layout */
  --shell: 480px;
  --gutter: 25px;
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}


/* --- base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 10px 16px;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }


/* =============================================================================
   HERO
   One supplied picture — Emma on the Highland loch — with the typography
   layered over it and the first card overlapping its lower edge.
   ============================================================================= */
.hero {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
}

.hero__scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero__scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* Only enough wash to keep charcoal type readable — the landscape stays
   visible everywhere else. */
.hero__scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* the creamy top-left the reference carries behind the wordmark */
    radial-gradient(76% 40% at 5% 7%,
      rgba(245, 240, 231, .80), rgba(245, 240, 231, .28) 56%, rgba(245, 240, 231, 0) 88%),
    radial-gradient(52% 20% at 12% 16%,
      rgba(245, 240, 231, .36), rgba(245, 240, 231, .10) 60%, rgba(245, 240, 231, 0) 90%),
    radial-gradient(40% 14% at 13% 46%,
      rgba(245, 240, 231, .32), rgba(245, 240, 231, .08) 62%, rgba(245, 240, 231, 0) 90%),
    /* takes the heat out of the top edge without touching the picture below */
    linear-gradient(to bottom,
      rgba(245, 240, 231, .16), rgba(245, 240, 231, 0) 32%);
}

/* a short dissolve so the picture meets the cards without a razor edge */
.hero__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(245, 240, 231, 0) 86%,
    rgba(245, 240, 231, .42) 97%,
    rgba(245, 240, 231, .62) 100%);
}

/* --- the typography -------------------------------------------------------- */
.hero__type {
  position: absolute;
  left: 5.55%;
  top: 19.5%;
  z-index: 2;
}

.wordmark {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(64px, 23.4vw, 108px);
  line-height: .9;
  padding-top: 7px;
  -webkit-text-stroke: .9px currentColor;
  letter-spacing: .005em;
  color: var(--charcoal);
}

.wordmark__heart {
  display: inline-block;
  width: .19em;
  height: .19em;
  margin-left: -.09em;
  vertical-align: .33em;
}
.wordmark__heart svg { display: block; width: 100%; height: 100%; }

.hero__eyebrow {
  margin: -14px 0 0;
  padding-left: .4em;
  font-family: var(--display);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: .33em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.hero__tagline {
  margin: 11px 0 0;
  padding-left: .4em;
  font-family: var(--display);
  font-weight: 400;
  font-size: 8.7px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.sep { color: var(--taupe); margin: 0 .28em; }

/* sits lower, out in the landscape rather than tucked under the other copy */
.hero__accent {
  position: absolute;
  left: 4.9%;
  top: 60%;
  z-index: 2;
  margin: 0;
  font-family: var(--hand);
  font-weight: 500;
  font-size: clamp(22px, 6.4vw, 30px);
  line-height: 1.1;
  color: var(--charcoal);
}

.accent-heart {
  display: inline-block;
  width: .52em;
  height: .52em;
  margin-left: .26em;
  vertical-align: .02em;
}
.accent-heart svg { display: block; width: 100%; height: 100%; }

/* --- SCOTLAND · PEOPLE · PLACES · GOOD VIBES ------------------------------- */
.hero__stack {
  position: absolute;
  right: 0.4%;
  bottom: 4%;
  z-index: 2;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 251, 244, .74);
  text-shadow: 0 1px 2px rgba(40, 32, 24, .28);
  text-align: right;
}
.hero__stack::before {
  content: "";
  position: absolute;
  inset: -14px -12px -12px -22px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(40, 32, 24, .22) 0%,
    rgba(40, 32, 24, .10) 58%,
    rgba(40, 32, 24, 0) 100%);
}
.hero__stack > span { margin-right: -.26em; }   /* cancel the trailing track */

.hero__stack-rule {
  width: 30px;
  height: 1px;
  margin: 4px -.26em 0 0;
  background: rgba(255, 250, 242, .62);
}
.hero__stack-heart {
  width: 11px;
  height: 11px;
  margin: 3px -.26em 0 0;
}
.hero__stack-heart svg { display: block; width: 100%; height: 100%; }


/* =============================================================================
   LINK CARDS
   ============================================================================= */
.links {
  position: relative;
  z-index: 5;
  margin-top: -15px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* never let a card widen the column */
  gap: 5px;
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 13px;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 6px 104px 6px 10px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  box-shadow: var(--shadow);
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--charcoal);
}
.card__icon svg { display: block; width: 28px; height: 28px; }

.card__text { min-width: 0; max-width: 100%; }

.card__title {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__sub {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .002em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__arrow {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  color: var(--charcoal);
  opacity: .72;
}
.card__arrow svg { display: block; width: 13px; height: 13px; }

.card__thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 95px;
  height: calc(100% - 6px);
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
}

/* a destination that is still "#" stays on the page but does not navigate */
.card[data-pending="true"] { cursor: default; }

/* below 390 the reference sizes cannot fit; step the type down there only */
@media (max-width: 359px) {
  .card { padding-right: 88px; }
  .card__thumb { width: 80px; }
}


/* =============================================================================
   OUTRO
   ============================================================================= */
.outro {
  position: relative;
  margin-top: 12px;
  padding: 0 var(--gutter);
  text-align: center;
}

.outro__rule {
  display: block;
  width: 122px;
  height: 1px;
  margin: 0 auto 9px;
  background: var(--taupe);
  opacity: .7;
}

.outro__line {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.outro__heart {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: .7em;
  vertical-align: -.05em;
}
.outro__heart svg { display: block; width: 100%; height: 100%; }

/* the socials row, with the two flourishes tucked into the margins beside it */
.outro__body {
  position: relative;
  margin-top: 22px;
  padding: 0 30px 0 26px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.socials li { flex: none; }

.social {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--oatmeal);
  color: var(--charcoal);
  -webkit-tap-highlight-color: transparent;
}
.social svg { display: block; width: 18px; height: 18px; }
/* keep the tap target comfortable without growing the circle */
.social::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; }

.flourish {
  position: absolute;
  top: 50%;
  color: var(--taupe);
  pointer-events: none;
}
.flourish--thistle {
  left: -4px;
  width: 36px;
  transform: translateY(-62%);
}
.flourish--thistle svg { display: block; width: 100%; height: auto; }

.flourish--note {
  right: -2px;
  width: 4.1em;
  transform: translateY(-60%);
  font-family: var(--hand);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.1;
  text-align: right;
  color: var(--muted);
}
.flourish__heart {
  display: block;
  width: 11px;
  height: 11px;
  margin: 3px 0 0 auto;
}

.legal {
  margin: 9px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.legal a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 2px;
}
.legal .sep { margin: 0 .7em; }

/* no room for decoration on the smallest phones */
@media (max-width: 349px) {
  .flourish { display: none; }
}


/* =============================================================================
   INTERACTION — subtle lift on desktop, quiet press on touch, clear focus
   ============================================================================= */
.card:focus-visible,
.social:focus-visible,
.legal a:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.social:focus-visible { border-radius: 50%; }
.legal a:focus-visible { border-radius: 4px; outline-offset: 1px; }

@media (prefers-reduced-motion: no-preference) {
  .card {
    transition:
      transform .3s var(--ease),
      box-shadow .3s var(--ease),
      border-color .3s var(--ease),
      background-color .3s var(--ease);
  }
  .card__arrow { transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .social      { transition: background-color .3s var(--ease), transform .3s var(--ease); }
  .legal a     { transition: color .2s var(--ease); }
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--line);
  }
  .card:hover .card__arrow { transform: translateX(3px); opacity: 1; }
  .social:hover { background: #e3d9c8; }
  .legal a:hover { color: var(--charcoal); }
}

.card:active {
  transform: translateY(0) scale(.994);
  background: var(--cream-press);
  box-shadow: var(--shadow);
}
.social:active { transform: scale(.96); }

@media (prefers-reduced-motion: no-preference) {
  .card:active { transition-duration: .09s; }
}

/* quiet entrance — one pass, no loops, nothing that reads as an effect */
@media (prefers-reduced-motion: no-preference) {
  .hero__type > *,
  .hero__accent,
  .hero__stack,
  .card,
  .outro > * {
    animation: rise .62s var(--ease) both;
  }
  .hero__type > *:nth-child(2) { animation-delay: .05s; }
  .hero__type > *:nth-child(3) { animation-delay: .09s; }
  .hero__type > *:nth-child(4) { animation-delay: .13s; }
  .hero__accent                { animation-delay: .15s; }
  .hero__stack                 { animation-delay: .19s; }

  .card:nth-child(1) { animation-delay: .19s; }
  .card:nth-child(2) { animation-delay: .24s; }
  .card:nth-child(3) { animation-delay: .29s; }
  .card:nth-child(4) { animation-delay: .34s; }
  .card:nth-child(5) { animation-delay: .39s; }
  .card:nth-child(6) { animation-delay: .44s; }

  .outro > * { animation-delay: .49s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}


/* =============================================================================
   DESKTOP — the same centred experience with more air, never stretched
   ============================================================================= */
@media (min-width: 700px) {
  .shell { padding: 30px 0 40px; }
  .hero { border-radius: var(--radius) var(--radius) 0 0; }
}

@media (min-width: 1100px) {
  .shell { padding-top: 44px; }
}


/* --- print ---------------------------------------------------------------- */
@media print {
  .hero__scene, .card__thumb, .flourish { display: none; }
  .card { box-shadow: none; border-color: var(--line); }
  body { background: #fff; }
}
