/* Good Taste Better Co.
   Direction A (grounded editorial) with B's feed. See CLAUDE.md for the decisions behind this file. */

:root {
  --bone: #efe9df;
  --sand: #dccfbc;
  --clay: #9c6b4e;
  --olive: #5e5b45;
  --charcoal: #2b2a27;
  --bone-soft: #f6f2eb;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 12vw, 168px);
  --radius-frame: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1.1em;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(48px, 7.4vw, 108px);
}

h2 {
  font-size: clamp(38px, 5vw, 68px);
}

h3 {
  font-size: clamp(28px, 2.6vw, 36px);
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--charcoal);
  color: var(--bone);
  padding: 10px 16px;
  border-radius: 999px;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section) 0;
}

.section--tight {
  padding: calc(var(--section) * 0.6) 0;
}

.section--sand {
  background: var(--sand);
}

.section--dark {
  background: var(--charcoal);
  color: var(--bone);
}

.section--dark .eyebrow {
  color: var(--sand);
}

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 20px;
}

.lede {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.6;
  max-width: 34em;
}

.muted {
  color: var(--olive);
}

.measure {
  max-width: 38em;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  background: var(--olive);
  border-color: var(--olive);
}

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
}

.btn--ghost:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--bone);
}

.section--dark .btn {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--charcoal);
}

.section--dark .btn:hover {
  background: var(--sand);
  border-color: var(--sand);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.text-link {
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.4s var(--ease);
}

.text-link:hover {
  background-size: 0% 1px;
  background-position: 100% 100%;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 233, 223, 0);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(239, 233, 223, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(43, 42, 39, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 15px;
  text-decoration: none;
  position: relative;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .btn {
  padding: 11px 22px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--charcoal);
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: currentColor;
  margin: 6px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 2;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--bone);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
  }

  /* The header's blur would trap the fixed menu inside the header, so drop it while the menu is open. */
  .nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bone);
  }

  .site-nav {
    height: 100vh;
    height: 100dvh;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 22px;
  }

  .site-nav a:not(.btn) {
    font-family: var(--serif);
    font-size: 40px;
  }

  .nav-open {
    overflow: hidden;
  }
}

/* Hero */

.hero {
  padding: clamp(32px, 6vw, 72px) 0 var(--section);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.hero__title {
  margin-bottom: 0.35em;
}

.hero__media {
  max-width: 400px;
  width: 100%;
  justify-self: end;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__media {
    justify-self: start;
    max-width: 320px;
  }
}

.page-hero {
  padding: clamp(40px, 7vw, 96px) 0 calc(var(--section) * 0.7);
}

/* Video frames: every clip sits in the same 9:16 frame */

.frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-frame);
  overflow: hidden;
  background: var(--sand);
}

.frame video,
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--olive);
  background: var(--bone-soft);
  aspect-ratio: 4 / 5;
}

.frame--placeholder span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  text-align: center;
  padding: 0 16px;
}

.section--dark .frame--placeholder {
  background: transparent;
  border-color: var(--sand);
}

.section--dark .frame--placeholder span {
  color: var(--sand);
}

.caption {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--olive);
  margin-top: 12px;
}

.section--dark .caption {
  color: var(--sand);
}

/* Feed: a row of vertical clips, like scrolling a social feed */

.feed {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 24vw, 300px);
  gap: clamp(14px, 1.6vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 12px;
  margin: 0 auto;
  max-width: calc(var(--container) + 2 * var(--gutter));
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
}

.feed > * {
  scroll-snap-align: start;
}

.feed__item:nth-child(even) {
  margin-top: 40px;
}

.feed__more {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-frame);
  border: 1px solid var(--charcoal);
  padding: 28px;
  text-decoration: none;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.feed__more:hover {
  background: var(--charcoal);
  color: var(--bone);
}

.feed__more strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.05;
  margin-bottom: 12px;
}

.feed-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.feed-head h2 {
  margin: 0;
}

/* Split layouts */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}

.split--media-left > :first-child {
  order: -1;
}

.split__media {
  max-width: 440px;
  width: 100%;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Category cards */

.categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin-top: 56px;
}

.category {
  text-decoration: none;
  display: block;
}

.category h3 {
  margin: 24px 0 10px;
}

.category p {
  color: var(--olive);
  margin-bottom: 18px;
}

.category .frame {
  transition: transform 0.7s var(--ease);
}

.category:hover .frame {
  transform: translateY(-6px);
}

.category__cta {
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.category__cta::after {
  content: "\2192";
  transition: transform 0.4s var(--ease);
}

.category:hover .category__cta::after {
  transform: translateX(6px);
}

@media (max-width: 860px) {
  .categories {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .category .frame {
    max-width: 340px;
  }
}

/* Packages */

.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: 48px;
}

.package {
  display: flex;
  flex-direction: column;
  background: var(--bone-soft);
  border-radius: 18px;
  padding: clamp(28px, 3vw, 40px);
  transition: transform 0.5s var(--ease);
}

.package:hover {
  transform: translateY(-4px);
}

.package--featured {
  background: var(--charcoal);
  color: var(--bone);
}

.package--featured .package__price small,
.package--featured .package__for,
.package--featured .eyebrow {
  color: var(--sand);
}

.package--featured ul li::before {
  background: var(--sand);
}

.package h3 {
  margin-bottom: 6px;
}

.package__price {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.1;
  margin: 10px 0 18px;
}

.package__price small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.package__for {
  color: var(--olive);
  font-size: 16px;
}

.package ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 16px;
}

.package li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-top: 1px solid rgba(94, 91, 69, 0.2);
}

.package--featured li {
  border-top-color: rgba(220, 207, 188, 0.2);
}

.package li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
}

.package__note {
  margin-top: auto;
  padding-top: 20px;
  font-size: 14px;
  color: var(--olive);
}

.package--featured .package__note {
  color: var(--sand);
}

.tailored {
  margin-top: 40px;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  max-width: 30em;
}

.addons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 32px;
  margin-top: 32px;
  border-top: 1px solid rgba(94, 91, 69, 0.25);
}

.addons div {
  padding: 18px 0;
  border-bottom: 1px solid rgba(94, 91, 69, 0.25);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.addons strong {
  font-weight: 500;
}

/* Process steps */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(28px, 3vw, 48px);
  margin: 56px 0 0;
  padding: 0;
}

.steps li {
  border-top: 1px solid currentColor;
  padding-top: 22px;
}

.steps .step-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 16px;
  opacity: 0.75;
}

.steps h3 {
  font-size: clamp(26px, 2.2vw, 32px);
}

.steps p {
  font-size: 16px;
  opacity: 0.88;
}

/* Testimonials */

.quote {
  margin: 0;
}

.quote blockquote {
  margin: 0;
}

.quote__lead {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.12;
  margin: 0 0 28px;
}

.quote__body {
  font-size: 17px;
  max-width: 40em;
}

.quote figcaption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 24px;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(48px, 6vw, 96px);
}

.quotes .quote__lead {
  font-size: clamp(26px, 2.6vw, 36px);
}

/* Pull quote (famous quotes) */

.pull {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.1;
  max-width: 18em;
  margin: 0 auto;
  text-align: center;
}

.pull cite {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 28px;
  color: var(--olive);
}

/* FAQ */

.faq {
  border-top: 1px solid rgba(43, 42, 39, 0.2);
  margin-top: 40px;
}

.faq details {
  border-bottom: 1px solid rgba(43, 42, 39, 0.2);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 300;
  flex: none;
  transition: transform 0.4s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 0 26px;
  max-width: 44em;
}

/* Facts list (about page) */

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.facts li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--olive);
  border-radius: 999px;
  padding: 8px 16px;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

@media (max-width: 700px) {
  .photo-row {
    grid-template-columns: 1fr 1fr;
  }

  .photo-row > :last-child {
    display: none;
  }
}

/* Simple list (brand services) */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.tag-list li {
  border: 1px solid rgba(43, 42, 39, 0.35);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 15px;
}

/* Form */

.form {
  display: grid;
  gap: 22px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 640px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 8px;
}

.field label .optional {
  text-transform: none;
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--charcoal);
  background: var(--bone-soft);
  border: 1px solid transparent;
  border-bottom-color: rgba(43, 42, 39, 0.35);
  border-radius: 10px 10px 0 0;
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.field ::placeholder {
  color: var(--olive);
  opacity: 0.55;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--charcoal);
  background: #fff;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232b2a27' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form__status {
  margin: 16px 0 0;
  font-size: 15px;
}

.form__status:empty {
  display: none;
}

.form__status.is-error {
  color: #8a3b24;
}

.form.is-sending button[type="submit"] {
  opacity: 0.6;
  pointer-events: none;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.contact-list li {
  border-top: 1px solid rgba(43, 42, 39, 0.2);
  padding: 16px 0;
}

.contact-list li:last-child {
  border-bottom: 1px solid rgba(43, 42, 39, 0.2);
}

.contact-list span {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
}

/* Closing call to action */

.cta {
  text-align: center;
}

.cta p {
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-row {
  justify-content: center;
}

/* Footer */

.site-footer {
  background: var(--charcoal);
  color: var(--bone);
  padding: 72px 0 40px;
  border-top: 1px solid rgba(239, 233, 223, 0.12);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.site-footer img {
  height: 64px;
  width: auto;
}

.site-footer h2 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 64px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--sand);
}

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* Motion: soft fade and rise as things scroll into view */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
