/* Lois' Candies — site styles */

:root {
  --chocolate: #2a0e08;
  --chocolate-deep: #1a0806;
  --cocoa: #4a1a0f;
  --caramel: #6e2a10;
  --caramel-hover: #541e0b;
  --gold: #c4a36a;
  --gold-soft: #e8d5b0;
  --cream: #f8f1e8;
  --cream-dark: #efe4d4;
  --paper: #fffdf9;
  --text: #2a0e08;
  --text-muted: #5c4336;
  --line: #e0d3c4;
  --fb: #1877f2;
  --fb-hover: #0d65d9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(42, 14, 8, 0.08);
  --shadow-soft: 0 4px 16px rgba(42, 14, 8, 0.06);
  --font-display: "Fraunces", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1100px;
  --header-h: 5.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--caramel);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--caramel-hover);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--chocolate);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: var(--paper);
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Header */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(196, 163, 106, 0.35);
}

.site-header::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(
    90deg,
    #2a0e08 0%,
    #6e2a10 25%,
    #c4a36a 50%,
    #6e2a10 75%,
    #2a0e08 100%
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 4.5rem;
  border-radius: 0;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 0.35rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--caramel);
  background: var(--cream);
}

.nav a[aria-current="page"] {
  color: var(--caramel);
  background: var(--cream-dark);
}

.nav .btn {
  margin-left: 0.35rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.btn-primary,
.nav .btn-primary {
  background: var(--caramel);
  color: var(--paper);
  border-color: var(--caramel);
}

.btn-primary:hover,
.nav .btn-primary:hover {
  background: var(--caramel-hover);
  border-color: var(--caramel-hover);
  color: var(--paper);
}

.btn-secondary {
  background: transparent;
  color: var(--caramel);
  border-color: var(--caramel);
}

.btn-secondary:hover {
  background: var(--caramel);
  color: var(--paper);
}

.btn-facebook {
  background: var(--fb);
  color: #fff;
  border-color: var(--fb);
}

.btn-facebook:hover {
  background: var(--fb-hover);
  border-color: var(--fb-hover);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

/* Hero */

.hero {
  padding: 2.5rem 0 2.75rem;
  background:
    radial-gradient(ellipse at top left, rgba(196, 163, 106, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(112, 50, 15, 0.08), transparent 50%),
    var(--cream);
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
}

.hero-logo {
  display: block;
  width: min(100%, 17.5rem);
  height: auto;
  margin: 0 0 1.35rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--chocolate);
}

.welcome {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.welcome strong {
  color: var(--chocolate);
  font-weight: 700;
}

.hours-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem 1.5rem;
  position: relative;
}

.hours-card::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}

.hours-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.hours-list {
  list-style: none;
  margin: 0.35rem 0 0.85rem;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.hours-list li:last-child {
  border-bottom: 0;
}

.hours-list .day {
  font-weight: 600;
}

.hours-list .time {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.hours-list .time.is-closed {
  color: var(--text-muted);
  font-weight: 400;
}

.hours-note {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.45;
}

.hours-card p {
  margin: 0 0 0.35rem;
}

.hours-card p:last-child {
  margin-bottom: 0;
}

.hours-card a {
  color: var(--text);
  text-decoration-color: var(--gold);
}

.hours-card a:hover {
  color: var(--caramel);
}

.cta-note {
  margin-top: 1rem !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel);
}

/* Facebook */

.section {
  padding: 2.5rem 0;
}

.section-fb {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.follow-card {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem 1.6rem 2.15rem;
}

.follow-card::before {
  content: "";
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  top: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}

.follow-card img {
  width: auto;
  height: 8.5rem;
  margin: 0 auto 1.2rem;
}

.follow-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--chocolate);
}

.follow-card p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: var(--text-muted);
}

.follow-card .btn {
  width: 100%;
  max-width: 26rem;
}

@media (max-width: 480px) {
  .follow-card {
    padding: 1.85rem 1.2rem 1.75rem;
  }

  .follow-card img {
    height: 7rem;
  }

  .follow-card .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding: 0.8rem 1rem;
  }
}

/* Action cards */

.section-actions {
  padding-top: 2.75rem;
  padding-bottom: 1rem;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.3rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
}

.action-card:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.action-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.45rem;
  border-radius: 12px;
  background: var(--cream-dark);
  color: var(--caramel);
}

.action-card .icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.action-card.facebook .icon {
  background: #e8f1fd;
  color: var(--fb);
}

.action-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.action-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Visit / map */

.section-visit {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.visit-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--cream-dark);
  min-height: 220px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.visit-copy h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 600;
}

.visit-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.visit-copy .btn-row {
  margin-top: 0.25rem;
}

/* History */

.page-history {
  padding: 2.5rem 0 3.5rem;
}

.history-wrap {
  width: min(100% - 2rem, 40rem);
  margin-inline: auto;
}

.history-wrap h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.history-lede {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--cocoa);
}

.history-photo {
  margin: 0 0 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.7rem 1rem;
  box-shadow: var(--shadow);
}

.history-photo img {
  width: 100%;
  border-radius: 10px;
  background: var(--cream-dark);
}

.history-photo figcaption {
  margin: 0.7rem 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.history-body p {
  margin: 0 0 1.15rem;
}

.history-body p:last-child {
  margin-bottom: 0;
}

/* 404 */

.page-not-found {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0 4.5rem;
  text-align: center;
}

.not-found-inner {
  width: min(100% - 2rem, 34rem);
  margin-inline: auto;
}

.not-found-logo {
  display: block;
  width: min(100%, 13.5rem);
  height: auto;
  margin: 0 auto 1.25rem;
}

.page-not-found .code {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--gold);
}

.page-not-found h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 600;
}

.page-not-found p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.page-not-found .btn-row {
  justify-content: center;
  margin-top: 0;
}

/* Footer */

.site-footer {
  background: var(--chocolate);
  color: #f0e4d4;
  padding: 2.25rem 0 1.5rem;
  margin-top: auto;
}

.site-footer a {
  color: #f0e4d4;
  text-decoration-color: var(--gold);
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-logo {
  display: inline-block;
  background: var(--cream);
  border-radius: 14px;
  padding: 0.55rem 0.7rem 0.5rem;
  margin: 0 0 0.9rem;
  line-height: 0;
  text-decoration: none;
}

.footer-logo img {
  width: auto;
  height: 5.25rem;
}

.footer-brand {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.site-footer p {
  margin: 0 0 0.25rem;
}

.footer-label {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-note {
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(232, 213, 176, 0.2);
  font-size: 0.9rem;
  color: #d4c3b0;
}

.footer-note p {
  margin: 0;
}

/* Desktop */

@media (min-width: 700px) {
  .brand img {
    height: 5.25rem;
    width: auto;
  }

  .hero {
    padding: 3.5rem 0 3.75rem;
  }

  .hero-logo {
    width: min(100%, 20rem);
  }

  .hero-grid {
    grid-template-columns: 1.3fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
  }

  .action-grid {
    grid-template-columns: 1fr 1fr;
  }

  .visit-grid {
    grid-template-columns: 1.3fr 0.9fr;
    gap: 2rem;
    align-items: center;
  }

  .map-frame iframe {
    height: 340px;
  }

  .footer-inner {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 960px) {
  .action-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .hero-logo {
    width: min(100%, 22rem);
  }
}

@media (max-width: 699px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0 0.8rem;
  }

  .brand img {
    height: 4.35rem;
    width: auto;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .nav .btn {
    margin-left: 0.15rem;
    padding: 0.55rem 0.95rem;
  }

  .hero-logo {
    width: min(100%, 15.5rem);
    margin-inline: auto;
  }

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

  .hero-copy .welcome {
    margin-inline: auto;
  }

  .hero-copy .btn-row {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .brand img {
    height: 4rem;
    width: auto;
  }

  .nav a:not(.btn) {
    padding: 0.45rem 0.55rem;
  }

  .footer-logo img {
    height: 4.75rem;
  }
}

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

  .action-card,
  .btn {
    transition: none;
  }

  .action-card:hover {
    transform: none;
  }
}
