/* The Habit Coffee Co
 * Palette and typefaces carried over from the original site, so it still
 * reads as the same place. */

:root {
  --cream:      #faf7f2;
  --cream-deep: #f3ece1;
  --tan:        #e0daca;
  --ink:        #240c0c;
  --brown:      #8c664a;
  --brown-deep: #4a2c1b;
  --soft:       #6b5b4f;
  --white:      #ffffff;

  --f-display: "Inria Serif", Georgia, "Times New Roman", serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --measure: 38rem;
  --r: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brown-deep); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.measure { max-width: var(--measure); margin-inline: auto; }
.center  { text-align: center; }

/* ---------------------------------------------------------------- wordmark */

.mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18em;
  text-decoration: none;
  color: var(--brown-deep);
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.mark-the,
.mark-co {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.32em;
  letter-spacing: 0.36em;
  text-indent: 0.36em;      /* balances the trailing letterspace */
}

.mark-the::before,
.mark-the::after,
.mark-co::before,
.mark-co::after {
  content: "";
  display: block;
  width: 2.4em;
  height: 1px;
  background: currentColor;
  flex: none;
}

.mark-main {
  font-size: 1em;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
}

.mark--small { font-size: 1.15rem; }

.mark--hero {
  font-size: clamp(2.8rem, 9vw, 4.8rem);
  margin-block: 0.5rem 0.75rem;
}

/* ---------------------------------------------------------------- header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.25rem 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--soft);
  transition: color 0.15s;
}

.nav a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  transition: transform 0.12s ease, background 0.15s, color 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn--dark {
  background: var(--brown-deep);
  color: var(--cream);
}
.btn--dark:hover { background: var(--ink); }

.btn--ghost {
  border: 1px solid var(--tan);
  color: var(--brown-deep);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--brown); background: var(--white); }

.btn--lg { padding: 0.9rem 1.6rem; font-size: 1rem; }

.nav .btn { color: var(--cream); }
.nav .btn:hover { color: var(--cream); }

/* ---------------------------------------------------------------- type */

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0 0 0.75rem;
}

.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--soft);
  margin: 0 0 1rem;
}

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 2rem 1.5rem 3.5rem;
}

.hero-text { text-align: center; }

.hero-lede {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.hero-sub {
  color: var(--soft);
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-photo img {
  width: 100%;
  border-radius: var(--r);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------------------------------------------------------------- strip */

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  background: var(--cream-deep);
  border-block: 1px solid var(--tan);
  padding: 2.5rem 1.5rem;
  max-width: none;
}

.strip-item {
  max-width: 20rem;
  margin-inline: auto;
  width: 100%;
}

.strip-label {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0 0 0.5rem;
}

.strip-item p {
  margin: 0 0 0.35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.strip-item > p { display: block; }
.strip-item p span + span { color: var(--soft); }
.strip-item > p span { display: inline; }

.strip-link {
  font-size: 0.95rem;
  color: var(--brown-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--tan);
  padding-bottom: 1px;
}
.strip-link:hover { border-color: var(--brown); }

/* ---------------------------------------------------------------- sections */

.section { padding: 4.5rem 0; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.split--reverse .split-text { order: 2; }
.split--reverse .split-photo { order: 1; }

.split-photo img {
  width: 100%;
  border-radius: var(--r);
  object-fit: cover;
}

.section--about .split-photo img { aspect-ratio: 4 / 5; }
/* the take & bake menu is a tall graphic with its own black background —
   let it keep its own proportions instead of being boxed into a ratio */
.section--bake  .split-photo img { aspect-ratio: auto; border-radius: var(--r); }
.section--catering .split-photo img { aspect-ratio: 1 / 1; }

.ticks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.98rem;
  color: var(--soft);
}

.ticks li {
  position: relative;
  padding-left: 1.4rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brown);
}

/* ---------------------------------------------------------------- gallery */

.section--gallery { background: var(--cream-deep); border-block: 1px solid var(--tan); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.gallery figure { margin: 0; }

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r);
}

.gallery figcaption {
  font-size: 0.9rem;
  color: var(--soft);
  margin-top: 0.7rem;
}

/* ---------------------------------------------------------------- beans + apps */

.beans-copy {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

.section--beans { padding-block: 3.5rem; border-top: 1px solid var(--tan); }
.section--apps { padding-block: 4.5rem; }

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--brown-deep);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.footer-meta {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(250, 247, 242, 0.72);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 247, 242, 0.3);
  padding-bottom: 1px;
  width: fit-content;
}
.footer-links a:hover { border-color: var(--cream); }

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 247, 242, 0.16);
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.6);
}
.footer-legal p { margin: 0; }

/* ---------------------------------------------------------------- mobile */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 1rem; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 16 / 10; }

  .strip { grid-template-columns: 1fr; gap: 1.75rem; text-align: center; }
  .strip-item p { justify-content: center; }

  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse .split-text { order: 1; }
  .split--reverse .split-photo { order: 2; }

  .gallery { grid-template-columns: 1fr; }
  .gallery img { aspect-ratio: 3 / 2; }

  .section { padding: 3rem 0; }

  .nav { gap: 1.1rem; font-size: 0.9rem; }
  .nav a:not(.btn) { display: none; }
}

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