@font-face {
  font-family: "Basteleur";
  src: url("assets/fonts/basteleur/Basteleur-Moonlight.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lunchtype";
  src: url("assets/fonts/lunchtype/lunchtype22-regular-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lunchtype";
  src: url("assets/fonts/lunchtype/lunchtype22-medium-webfont.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #253632;
  --muted: #69736f;
  --hero-image: url("assets/bay_loop_lake.jpg");
  font-family: "Lunchtype", sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
button, input, select, textarea { font-family: inherit; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #53776b; outline-offset: 6px; border-radius: 3px; }
.skip-link { position: fixed; top: -80px; left: 24px; z-index: 10; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.site-header {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px calc(5% + 28px);
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.brand { font-family: "Lunchtype", sans-serif; font-size: 17px; text-decoration: none; letter-spacing: -0.4px; }
nav { display: flex; align-items: center; gap: 32px; }
nav a { display: inline-block; padding: 12px 0; font-size: 13px; font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--ink); }
main { flex: 1; display: grid; place-content: center; text-align: center; padding: 160px 24px 100px; min-height: 75svh; }
.hero { background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), var(--hero-image); background-size: cover; background-position: center; }
h1 { margin: 0; font-family: "Lunchtype", sans-serif; font-size: clamp(42px, 6.5vw, 96px); font-weight: 400; line-height: 1.12; letter-spacing: -0.045em; text-wrap: balance; }
.hero h1 { font-family: "Basteleur", serif; font-size: clamp(37.8px, 5.85vw, 86.4px); max-width: 1100px; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); }
.page-content { max-width: 760px; }
.page-content h1 { font-family: "Basteleur", serif; font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.03em; }
.page-content p { margin: 28px auto 0; color: var(--muted); line-height: 1.8; font-size: 16px; }
.contact-link { overflow-wrap: anywhere; text-underline-offset: 5px; }
.product-card { width: min(320px, 100%); margin: 36px auto 0; overflow: hidden; border: 0; border-radius: 12px; background: #fff; box-shadow: none; }
.product-card img { border-radius: 12px; display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.product-card h2 { margin: 0; padding: 24px 16px; font-family: "Lunchtype", sans-serif; font-size: 24px; font-weight: 400; }
.contact-page { display: block; }
.contact-content { width: 100%; max-width: 560px; margin: 0 auto; }
.contact-form { display: grid; gap: 24px; margin-top: 36px; text-align: left; }
.form-field { display: grid; gap: 9px; }
.form-field label { font-size: 14px; font-weight: 500; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid #cdd5d0; border-radius: 6px; padding: 13px 14px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; }
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus-visible, .form-field textarea:focus-visible, .contact-form button:focus-visible { outline: 2px solid #53776b; outline-offset: 3px; }
.contact-form button { justify-self: start; border: 0; border-radius: 6px; padding: 14px 34px; background: var(--ink); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.contact-form button:hover { background: #3b5149; }
.contact-form button:disabled { opacity: 0.55; cursor: not-allowed; }
.contact-form .form-note { margin: 0; font-size: 13px; line-height: 1.6; }
.about-page { display: block; padding-top: 170px; }
.about-intro { margin: 0 auto; }
.about-description { min-height: 100px; max-width: 640px; margin: 0 auto; }
.team-section { max-width: 1160px; margin: 28px auto 0; }
.team-section::before { content: none; }
.team-section h2 { margin: 0 0 36px; font-family: "Lunchtype", sans-serif; font-size: clamp(30px, 4vw, 40px); font-weight: 400; letter-spacing: -0.03em; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 24px; overflow-x: auto; padding-bottom: 12px; }
.team-card { overflow: hidden; border: 0; border-radius: 12px; background: #fff; }
.team-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; background: #fff; }
.team-card h3 { margin: 0; padding: 23px 12px; font-family: "Lunchtype", sans-serif; font-size: 20px; font-weight: 400; line-height: 1.35; }
.site-footer { text-align: center; padding: 32px 20px 30px; }
.site-footer a { display: inline-block; padding: 8px 0; font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
@media (max-width: 640px) {
  .site-header { top: 16px; flex-direction: column; gap: 5px; padding: 16px 16px 8px; }
  .brand { font-size: 16px; }
  nav { width: 100%; justify-content: center; gap: 28px; }
  nav a { font-size: 12px; }
  main { padding-top: 180px; padding-bottom: 80px; }
  .hero h1 { max-width: 480px; }
}

/* Keep the entire homepage, including navigation and footer, over the photo. */
.home-page {
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), var(--hero-image) center / cover no-repeat;
}
.home-page .site-header {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.home-page nav a:hover,
.home-page nav a[aria-current="page"] { border-bottom-color: currentColor; }
.home-page .hero { background: none; min-height: 0; }
.home-page .site-footer p { color: rgba(255, 255, 255, 0.8); }
.home-page a:focus-visible { outline-color: #fff; }
.home-page .skip-link { color: var(--ink); }

.product-link { display: block; text-decoration: none; }

/* A quieter company identity, with room for the products and people. */
:root { --accent: #47675b; --page-width: 1160px; }
.site-header {
  position: relative;
  top: auto;
  width: min(var(--page-width), calc(100% - 96px));
  margin: 0 auto;
  padding: 32px 0;
  min-height: 108px;
}
.brand { font-size: 19px; letter-spacing: -0.5px; }
nav { gap: 36px; }
nav a { font-size: 14px; transition: color 180ms ease, border-color 180ms ease; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
main { min-height: 0; padding: 72px 48px 96px; }
.page-content { width: 100%; max-width: var(--page-width); }
.page-content h1 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.15; letter-spacing: -0.035em; }
.site-footer {
  width: min(var(--page-width), calc(100% - 96px));
  margin: auto auto 0;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}
.site-footer a { font-size: 13px; }
.site-footer p { margin: 0; text-align: right; }
.home-page {
  background-image: linear-gradient(180deg, rgba(13, 32, 26, 0.3), rgba(13, 32, 26, 0.16) 45%, rgba(13, 32, 26, 0.45)), var(--hero-image);
}
.home-page .site-header { position: absolute; top: 0; left: 0; right: 0; }
.home-page .hero { padding: 160px 48px 96px; }
.home-page .hero h1 { line-height: 1.18; text-shadow: 0 3px 28px rgba(0, 0, 0, 0.16); }
.home-page nav a:hover, .home-page nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.home-page .site-footer { color: rgba(255, 255, 255, 0.92); }
.products-page { display: block; }
.products-page .page-content { margin: 0 auto; }
.product-card { width: min(860px, 100%); margin-top: 64px; border-radius: 0; overflow: visible; }
.product-link { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.product-card img { border-radius: 24px; transition: transform 250ms ease; }
.product-caption { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; text-align: left; }
.product-card h2 { padding: 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.035em; }
.product-arrow { width: 48px; height: 48px; padding: 12px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: #fff; transition: transform 200ms ease, background 200ms ease; }
.product-link:hover img { transform: translateY(-5px); }
.product-link:hover .product-arrow { transform: translate(3px, -3px); background: var(--ink); }
.about-page { padding-top: 72px; }
.about-description:empty { display: none; }
.about-description { min-height: 0; }
.team-section { margin-top: 64px; }
.team-section h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 32px; letter-spacing: -0.025em; }
.team-grid { gap: 28px; overflow: visible; padding-bottom: 0; }
.team-card { border-radius: 0; }
.team-card img { border-radius: 18px; }
.team-card h3 { padding: 20px 0 0; font-size: 19px; text-align: left; letter-spacing: -0.02em; }
.contact-content { max-width: 600px; }
.contact-content > p { margin-top: 20px; }
.contact-form { margin-top: 40px; gap: 24px; }
.form-field input, .form-field textarea { border-radius: 10px; padding: 15px 16px; transition: border-color 180ms ease; }
.form-field input:hover, .form-field textarea:hover { border-color: var(--accent); }
.contact-form button { border-radius: 999px; padding: 15px 36px; background: var(--accent); transition: background 180ms ease, transform 180ms ease; }
.contact-form button:hover { background: var(--ink); transform: translateY(-2px); }
@media (max-width: 800px) {
  .site-header, .site-footer { width: calc(100% - 48px); }
  nav { gap: 24px; }
  main { padding: 48px 24px 72px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .product-link { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .site-header { padding: 24px 0 20px; min-height: 0; gap: 12px; }
  .brand { font-size: 18px; }
  nav { gap: 28px; }
  nav a { font-size: 13px; padding: 8px 0; }
  .site-footer { flex-direction: column; gap: 8px; text-align: center; padding: 24px 0; }
  .site-footer p { text-align: center; }
  .home-page .hero { padding: 168px 24px 72px; }
  .product-card { width: min(340px, 100%); margin-top: 40px; }
  .product-link { grid-template-columns: 1fr; gap: 24px; }
  .product-card h2 { font-size: 28px; }
  .product-arrow { width: 42px; height: 42px; padding: 10px; }
  .team-section { margin-top: 48px; }
  .team-card h3 { font-size: 16px; padding-top: 14px; }
  .contact-form button { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  nav a, .product-card img, .product-arrow, .contact-form button, .form-field input, .form-field textarea { transition: none; }
  .product-link:hover img, .product-link:hover .product-arrow, .contact-form button:hover { transform: none; }
}

/* Center the product identity and its link as one vertical composition. */
.product-card { width: min(340px, 100%); }
.product-link { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.product-caption { align-items: center; text-align: center; gap: 20px; }

/* Keep the four team portraits compact and together on desktop. */
.team-grid { max-width: 880px; margin-inline: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}

.product-caption { flex-direction: row; justify-content: center; align-items: center; gap: 20px; }

.product-arrow { width: 33.6px; height: 33.6px; padding: 8.4px; }
@media (max-width: 640px) {
  .product-arrow { width: 29.4px; height: 29.4px; padding: 7px; }
}

/* Soft sunset, clay, sage, and lake tones behind circular portraits. */
.team-portrait {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #e6c8b8;
  isolation: isolate;
}
.team-card:nth-child(2) .team-portrait { background: #ced9db; }
.team-card:nth-child(3) .team-portrait { background: #ead8c1; }
.team-card:nth-child(4) .team-portrait { background: #d5dcca; }
.team-portrait img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  background: transparent;
  mix-blend-mode: multiply;
}
.team-card h3 { text-align: center; }

/* ---------- Polish pass ---------- */
:root {
  --paper: #faf8f5;
  --line: #e9e4dc;
  --hero-image: url("assets/bay_loop_lake.webp");
  background: var(--paper);
}
body { background: var(--paper); }

/* Wordmark matches the page titles. */
.brand { font-family: "Basteleur", serif; font-size: 22px; letter-spacing: -0.01em; line-height: 1; }

/* Every interior page starts its title at the same height. */
.products-page, .about-page, .contact-page { align-content: start; padding-top: 72px; }

/* Homepage: one name only, a calmer backdrop behind it, sitting nearer the horizon. */
.home-page .brand {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.home-page .brand:focus-visible { position: static; width: auto; height: auto; clip: auto; clip-path: none; }
.home-page .site-header { justify-content: flex-end; }
.home-page {
  background-image:
    radial-gradient(ellipse 60% 38% at 50% 56%, rgba(13, 32, 26, 0.34), rgba(13, 32, 26, 0) 72%),
    linear-gradient(180deg, rgba(13, 32, 26, 0.34), rgba(13, 32, 26, 0.14) 45%, rgba(13, 32, 26, 0.5)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}
.home-page .hero h1 { transform: translateY(7vh); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22); }

/* About: "Meet the Team" becomes a quiet label under the page title. */
.team-section h2 {
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); margin-bottom: 36px;
}
.team-card { background: transparent; }
.team-portrait img { filter: saturate(0.9) contrast(1.02); }

/* Products: the logo sits on a framed card and the whole card is the link. */
.product-card {
  width: min(380px, 100%); margin-top: 56px; padding: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 1px 2px rgba(37, 54, 50, 0.04), 0 14px 34px -16px rgba(37, 54, 50, 0.16);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.product-link { padding: 20px 20px 26px; border-radius: 28px; gap: 24px; }
.product-card img { border-radius: 18px; }
.product-link:hover img { transform: none; }
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(37, 54, 50, 0.05), 0 22px 44px -18px rgba(37, 54, 50, 0.24);
}
.product-card h2 { font-size: clamp(26px, 2.4vw, 32px); }
.product-link:focus-visible { outline-offset: 4px; }

/* Contact: one centred axis, and a soft sage focus ring. */
.contact-form button { justify-self: center; min-width: 180px; }
.contact-form .form-note { text-align: center; }
.form-field input:focus-visible, .form-field textarea:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(71, 103, 91, 0.16);
}
.form-field input, .form-field textarea { transition: border-color 180ms ease, box-shadow 180ms ease; }

@media (max-width: 800px) {
  :root { --hero-image: url("assets/bay_loop_lake_1200.webp"); }
}
@media (max-width: 640px) {
  .brand { font-size: 21px; }
  .products-page, .about-page, .contact-page { padding-top: 48px; }
  .home-page .hero h1 { transform: translateY(4vh); }
  .team-section h2 { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .form-field input, .form-field textarea { transition: none; }
  .product-card:hover { transform: none; }
}
.site-header { background: transparent; }
.brand { padding-top: 5px; }

/* Revision: centred hero title, true-colour portraits, arrow-free product card. */
.home-page .hero h1 { transform: none; }
.home-page {
  background-image:
    radial-gradient(ellipse 60% 38% at 50% 50%, rgba(13, 32, 26, 0.34), rgba(13, 32, 26, 0) 72%),
    linear-gradient(180deg, rgba(13, 32, 26, 0.34), rgba(13, 32, 26, 0.14) 45%, rgba(13, 32, 26, 0.5)),
    var(--hero-image);
}
.team-portrait img { mix-blend-mode: normal; filter: none; }
@media (max-width: 640px) { .home-page .hero h1 { transform: none; } }

/* Text highlight in the site's sage, white on the homepage photo. */
::selection { background: rgba(71, 103, 91, 0.22); color: var(--ink); }
.home-page ::selection { background: rgba(255, 255, 255, 0.32); color: #fff; }

/* Submit shows a small spinner while the message is sending. */
.contact-form button { position: relative; }
.contact-form button.is-sending,
.contact-form button.is-sending:disabled { color: transparent; opacity: 1; cursor: progress; transform: none; background: var(--accent); }
.contact-form button.is-sending::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: lsv-spin 0.8s linear infinite;
}
@keyframes lsv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .contact-form button.is-sending::after { animation-duration: 2.4s; }
}
.team-carousel { max-width: 880px; margin-inline: auto; overflow: hidden; }
.team-carousel-track { display: flex; min-width: 680px; gap: 24px; animation: team-cycle 28s linear infinite; }
.team-carousel .team-grid { flex: 0 0 100%; min-width: 680px; max-width: none; margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.team-carousel:hover .team-carousel-track,
.team-carousel:focus-within .team-carousel-track { animation-play-state: paused; }
.team-carousel:focus-visible { outline: 2px solid #53776b; outline-offset: 6px; }
@keyframes team-cycle {
  to { transform: translateX(calc(-100% - 24px)); }
}
@media (prefers-reduced-motion: reduce) {
  .team-carousel { overflow-x: auto; }
  .team-carousel-track { animation: none; }
  .team-carousel .team-grid[aria-hidden="true"] { display: none; }
}
