/* Austin Bell · Websites for small businesses. Design tokens are defined once here; components use only these. Mobile first. */
/* IMPORTANT: standby fonts sized to match the real ones. While Fraunces and Inter download, the browser shows Georgia/Arial; unadjusted,
   the headline wraps onto a different number of lines and the page jumps when the real font arrives (measured layout shift 0.142 on the home page,
   Google's limit is 0.1). Tuned on the real pages: every page's h1 wraps identically at 375px and 1280px for Georgia 104-110%; 108% is the middle.
   Re-tune if the fonts or headline sizes change. */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  size-adjust: 108%;
}
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia Italic"), local("Georgia-Italic");
  font-style: italic;
  size-adjust: 108%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 107%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 700;
  size-adjust: 101.5%;
}

:root {
  --paper: #f5f1e8;
  --paper-2: #efe4cf; /* warm sand */
  --card-light: #fbf9f4;
  --ink: #1b1b18;
  --ink-2: #55534b;
  --ink-card: #24241f;
  --ink-line: #33322b;
  --on-dark: #dad6ca;
  --on-dark-muted: #b9b5a8;
  --mint: #9cc3b4;
  --pine: #2e5a4c;
  --pine-dark: #1f4238;
  --ocean: #1d4e5a; /* closing band: deep sea teal */
  /* WARNING: --ember is for decoration only (dots, ticks, numbers). White text on it fails contrast; buttons use --ember-strong (5.6:1 with white). */
  --ember: #e0592a;
  --ember-strong: #b5421b;
  --line: #d9d2c1;
  --error-bg: #4a2418;
  --error-text: #f6cdbd;

  --font-body: Inter, "Inter Fallback", Arial, sans-serif;
  --font-display: Fraunces, "Fraunces Fallback", Georgia, serif;
  --radius: 14px;
  --max: 1140px;
  --gutter: 20px;
  --section: 72px;
}

@media (min-width: 860px) {
  :root {
    --gutter: 24px;
    --section: 96px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* room for the phone call bar */
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
ul,
ol {
  list-style: none;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
:focus-visible {
  outline: 3px solid var(--ember-strong);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible,
.band--ocean :focus-visible,
.site-footer :focus-visible,
.call-bar :focus-visible {
  outline-color: var(--mint);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--section) 0;
}
.section--tight-top {
  padding-top: 8px;
}
.section--sand {
  background: var(--paper-2);
}
.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section__after {
  margin-top: 40px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 14px;
}
.section--dark .eyebrow {
  color: var(--mint);
}
.section-head {
  max-width: 660px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}
.section-head p:not(.eyebrow) {
  color: var(--ink-2);
  margin-top: 14px;
  font-size: 1.08rem;
}
.section--dark .section-head p:not(.eyebrow) {
  color: var(--on-dark-muted);
}
.text-link {
  font-weight: 600;
  text-underline-offset: 4px;
}
.text-link:hover {
  color: var(--pine);
}

/* Buttons: every button is at least 48px tall for comfortable tapping. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font: 600 0.95rem/1.2 var(--font-body);
  text-decoration: none;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s,
    color 0.15s;
}
.button--dark {
  background: var(--ink);
  color: var(--paper);
}
.button--dark:hover {
  background: var(--pine);
  border-color: var(--pine);
  transform: translateY(-1px);
}
.button--ghost {
  background: transparent;
  color: var(--ink);
}
.button--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.button--ember {
  background: var(--ember-strong);
  border-color: var(--ember-strong);
  color: #fff;
}
.button--ember:hover {
  background: #9a3714;
  border-color: #9a3714;
}
.button--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.button--ghost-light {
  background: transparent;
  border-color: #6a685e;
  color: var(--paper);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button-row--center {
  justify-content: center;
}

/* Header + menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  height: 68px;
}
/* The logo pushes the menu button (phones) or the menu (desktop) to the right edge. */
.site-logo {
  margin-right: auto;
}
.site-logo,
.site-footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}
.site-logo span,
.site-footer__logo span span {
  /* only the dot after the name is orange (the name itself is wrapped in a span next to the palm) */
  color: var(--ember);
}
.menu-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.menu-button__bars,
.menu-button__bars::before,
.menu-button__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.menu-button__bars::before,
.menu-button__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-button__bars::before {
  top: -7px;
}
.menu-button__bars::after {
  top: 7px;
}
.site-nav {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.site-nav.is-open {
  display: flex;
}
.site-nav a:not(.button) {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-2);
}
.site-nav a:not(.button):hover,
.site-nav a[aria-current="page"]:not(.button) {
  color: var(--ink);
}
.site-nav a[aria-current="page"]:not(.button) {
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.site-nav .button {
  margin-top: 10px;
}
@media (min-width: 860px) {
  .menu-button {
    display: none;
  }
  .site-nav,
  .site-nav.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    border: 0;
    background: none;
  }
  .site-nav a:not(.button) {
    font-size: 0.93rem;
  }
  .site-nav .button {
    margin: 0;
    min-height: 44px;
    padding: 10px 18px;
  }
}

/* Hero */
.hero {
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
  /* soft evening glow behind the sun */
  background: radial-gradient(circle at 82% 38%, rgba(243, 176, 137, 0.22), transparent 55%), var(--paper);
}
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  max-width: 900px;
}
.hero h1 em {
  font-style: italic;
  color: var(--pine);
}
.hero__lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 580px;
  margin-top: 22px;
}
.hero__facts {
  display: flex;
  gap: 20px 36px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.hero__facts span {
  font-size: 0.88rem;
  color: var(--ink-2);
}
.hero__scene {
  position: absolute;
  right: -40px;
  bottom: 0;
  width: 320px;
  opacity: 0.3;
  pointer-events: none;
  /* fades out to the left so the drawing never shows a hard edge behind the headline */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
  mask-image: linear-gradient(to right, transparent 0%, #000 45%);
}
@media (min-width: 860px) {
  .hero {
    padding: 110px 0 90px;
  }
  .hero__lead {
    font-size: 1.2rem;
  }
  .hero__scene {
    width: 540px;
    top: 40px;
    bottom: auto;
  }
}

/* Inner page intro */
.page-intro {
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}
/* Small beach drawing at the top of inner pages. Hidden on phones, where it would sit behind the text. */
.page-intro__scene {
  display: none;
}
@media (min-width: 760px) {
  .page-intro__scene {
    display: block;
    position: absolute;
    right: -30px;
    top: 24px;
    width: 400px;
    opacity: 0.26;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
    mask-image: linear-gradient(to right, transparent 0%, #000 45%);
  }
  .page-intro .wrap {
    position: relative;
  }
}
.section--dark + .page-intro,
.page-intro + .section--dark {
  margin-top: 0;
}
.page-intro h1 {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  max-width: 820px;
}
.page-intro__lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 620px;
  margin-top: 18px;
}
.page-intro .button {
  margin-top: 24px;
}
.page-intro--center {
  text-align: center;
  padding: 96px 0;
}
.page-intro--center .page-intro__lead {
  margin-left: auto;
  margin-right: auto;
}
.case-meta {
  margin-top: 10px;
  font-weight: 600;
  color: var(--pine);
}

/* Portfolio cards. The project name link stretches over the whole card so the card is one big target. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}
.section--tight-top .card-grid {
  padding-top: 40px;
}
.card {
  position: relative;
  background: var(--ink-card);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--paper);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #6a685e;
}
.card__preview {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}
.card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__type {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 600;
}
.card h3 {
  font-size: 1.45rem;
  margin: 6px 0 10px;
}
.card__link {
  text-decoration: none;
}
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card__link:focus-visible {
  outline: none;
}
.card:has(.card__link:focus-visible) {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}
.card p {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}
.card__body > p:not(.card__type) {
  flex: 1;
}
.card__more {
  font-weight: 600;
  font-size: 0.92rem;
}
.card:hover .card__more {
  color: #f3b089;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 18px;
}
.tags li {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink-line);
  color: var(--on-dark);
}
.card--invite {
  background: transparent;
  border: 1.5px dashed #6a685e;
  justify-content: center;
  align-items: flex-start;
  padding: 32px;
}
.card--invite:hover {
  transform: none;
}
.card--invite h3 {
  font-size: 1.8rem;
}
.card--invite p:not(.card__type) {
  flex: 0;
  margin-bottom: 22px;
}

/* Features + steps */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.features li {
  background: var(--paper);
  padding: 28px 24px;
}
.features__num {
  font-family: var(--font-display);
  color: var(--ember-strong);
  font-size: 1.1rem;
  font-weight: 700;
}
.features h3 {
  font-size: 1.25rem;
  margin: 10px 0 8px;
}
.features p,
.steps p {
  color: var(--ink-2);
  font-size: 0.97rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 32px 28px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-top: 56px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pine);
}
.steps h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

/* Case study */
.case-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(27, 27, 24, 0.14);
}
.case-body {
  display: grid;
  gap: 40px;
  margin-top: 56px;
}
.case-body h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.case-body p {
  color: var(--ink-2);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
@media (min-width: 860px) {
  .case-body {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }
}
.check-list li {
  padding: 9px 0 9px 28px;
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ember-strong);
  font-weight: 700;
}

/* Pricing */
.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px 24px;
  align-items: stretch;
  padding-top: 24px;
}
.price {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  background: var(--card-light);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price h2 {
  font-size: 1.45rem;
}
.price__for {
  font-size: 0.92rem;
  color: var(--ink-2);
  margin-top: 4px;
}
.price__amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  margin: 18px 0 12px;
  line-height: 1.1;
}
.price__amount small {
  display: block; /* "USD · one-time" always sits on its own line under the price, the same on every card */
  margin-top: 6px;
  font: 500 0.9rem var(--font-body);
  color: var(--ink-2);
}
.price .check-list {
  flex: 1;
  margin-bottom: 28px;
}
.price--featured {
  background: var(--pine);
  color: var(--paper);
  border-color: var(--pine);
}
.price--featured .price__for,
.price--featured .price__amount small {
  color: #d5e6df;
}
.price--featured .check-list li {
  border-color: rgba(255, 255, 255, 0.16);
}
.price--featured .check-list li::before {
  color: #f3b089;
}
.price__badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--ember-strong);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.care-plan {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  background: var(--card-light);
}
.care-plan h2 {
  font-size: 1.25rem;
}
.care-plan p {
  color: var(--ink-2);
  font-size: 0.97rem;
}
.care-plan__price strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink);
}

/* FAQ */
.faq {
  max-width: 780px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font: 400 1.6rem/1 var(--font-body);
  color: var(--pine);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--ink-2);
  padding-bottom: 20px;
}

/* About */
.about {
  display: grid;
  gap: 40px;
  align-items: center;
}
.about h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 20px;
}
.about p:not(.eyebrow):not(.portrait__place) {
  color: var(--ink-2);
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.portrait {
  aspect-ratio: 1 / 1;
  max-width: 380px;
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--pine) 0%, var(--pine-dark) 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.portrait__place {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
@media (min-width: 860px) {
  .about {
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
  }
  .portrait {
    aspect-ratio: 4 / 5;
    max-width: none;
  }
}

/* Contact */
.contact-section {
  min-height: calc(100vh - 68px);
}
.contact {
  display: grid;
  gap: 40px;
}
.contact h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}
.contact__intro {
  color: var(--on-dark-muted);
  margin: 18px 0 24px;
  font-size: 1.08rem;
}
.contact__line {
  margin-bottom: 10px;
  color: var(--on-dark);
}
.contact__line a {
  color: var(--paper);
  font-weight: 600;
}
.contact-form {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  gap: 16px;
}
.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-dark);
  display: block;
  margin-bottom: 6px;
}
.optional {
  font-weight: 400;
  color: var(--on-dark-muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #6a685e;
  background: var(--ink-card);
  color: var(--paper);
  font: 1rem var(--font-body);
}
.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}
.contact-form ::placeholder {
  color: #8f8c80;
}
.contact-form [aria-invalid="true"] {
  border-color: var(--error-text);
}
.contact-form .button {
  justify-self: start;
  margin-top: 4px;
}
.form-error {
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--error-bg);
  color: var(--error-text);
}
@media (min-width: 860px) {
  .contact {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* Closing band */
.band {
  padding: 64px 0;
}
.band--ocean {
  background: var(--ocean);
  color: var(--paper);
}
.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.band h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  max-width: 620px;
}
.band p {
  color: #d5e6df;
  margin-top: 10px;
  max-width: 560px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding: 36px 0;
  font-size: 0.9rem;
}
.site-footer__inner {
  display: grid;
  gap: 18px;
}
.site-footer__logo {
  color: var(--paper);
  margin-bottom: 4px;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-footer__links a {
  display: inline-block;
  padding: 8px 0;
  color: var(--on-dark);
  text-underline-offset: 4px;
}
@media (min-width: 860px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .site-footer__copyright {
    grid-column: 1 / -1;
  }
}

/* Phone call bar: fixed to the bottom on phones, hidden on wider screens. */
.call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--ink);
}
.call-bar .button {
  flex: 1;
  white-space: nowrap; /* "Get a free quote" must stay on one line beside the Call button */
  padding-left: 12px;
  padding-right: 12px;
}
@media (min-width: 860px) {
  body {
    padding-bottom: 0;
  }
  .call-bar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Sample designs: small cards, three across on wide screens, so they stay secondary to real client work. */
.sample-grid {
  display: grid;
  max-width: 880px; /* three small cards fill the row evenly instead of leaving an empty fourth slot */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}
.sample-card {
  position: relative;
  background: var(--card-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 14px;
  transition: transform 0.2s;
}
.sample-card:hover {
  transform: translateY(-3px);
}
.sample-card__preview {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sample-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.sample-card__type {
  padding: 0 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine);
}
.sample-card h3 {
  padding: 2px 16px 0;
  font-size: 1.15rem;
}
.sample-card__link {
  text-decoration: none;
}
.sample-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.sample-card__link:focus-visible {
  outline: none;
}
.sample-card:has(.sample-card__link:focus-visible) {
  outline: 3px solid var(--ember-strong);
  outline-offset: 3px;
}
.text-link--light {
  color: var(--paper);
}
.text-link--light:hover {
  color: #f3b089;
}

/* Phones: each sample becomes a short row (small picture left, name right) so the three take little room. */
@media (max-width: 599px) {
  .sample-grid {
    gap: 12px;
  }
  .sample-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 14px;
    padding-bottom: 0;
  }
  .sample-card__preview {
    grid-row: 1 / 3;
    margin: 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .sample-card__type {
    padding: 0;
    align-self: end;
  }
  .sample-card h3 {
    padding: 0;
    align-self: start;
  }
}

/* About photo: fills the portrait box; a soft dark fade at the bottom keeps the label readable over any photo. */
.portrait__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.portrait:has(.portrait__photo)::after {
  content: "";
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.55));
}
.portrait__place {
  z-index: 1;
}

/* Beach touch: a soft wave sits on top of a dark section instead of a straight edge. The wave is drawn with a mask in the section's own colour,
   so it works on any background above it. Add class "wave-top" to a section and set --wave-color if it is not the default ink. */
.wave-top {
  position: relative;
  --wave-color: var(--ink);
}
.band--ocean.wave-top {
  --wave-color: var(--ocean);
}
.wave-top::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -26px; /* overlaps the section by 2px (same colour) so no hairline gap can show */
  height: 28px;
  background: var(--wave-color);
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'%3E%3Cpath d='M0 18 C150 4 300 4 450 16 S750 30 900 16 S1100 2 1200 14 V28 H0 Z'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'%3E%3Cpath d='M0 18 C150 4 300 4 450 16 S750 30 900 16 S1100 2 1200 14 V28 H0 Z'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-footer__palm {
  width: 30px;
  height: 30px;
  flex: none;
}
