/* Gladewater.shop - shared styles for the hub and place pages */

:root {
  --paper: #F4EDE0;
  --paper-deep: #EAE0CE;
  --card: #FBF7EF;
  --ink: #22201C;
  --ink-soft: #5B554B;
  --pine: #1B4A32;
  --rust: #8A6A2C;
  --gold: #C9A25E;
  --river: #3A7189;
  --rule: rgba(34, 32, 28, 0.14);
  --display: "Fraunces", "Georgia", serif;
  --body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

/* Construction notice */
.construction {
  background: #E3BB75; color: #22201C;
  text-align: center; padding: 0.55rem 1rem;
  font-size: 0.95rem; line-height: 1.4;
}

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  font-family: var(--display); font-weight: 600; font-size: 1.35rem;
  text-decoration: none; color: var(--pine);
  display: flex; align-items: center; gap: 0.6rem;
}
.brand img { width: auto; height: 40px; }
.brand-name span { color: var(--rust); }
.site-header nav a {
  font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
}
.site-header nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding: 3.5rem 0 3rem; text-align: center; }
.hero h1 { font-weight: 400; }
.hero h1 img { width: min(520px, 100%); height: auto; margin: 0 auto; display: block; }
.hero .tagline {
  display: block; margin-top: 1.75rem;
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.1;
  color: var(--pine);
}
.hero p { max-width: 36rem; margin: 0.9rem auto 0; font-size: 1.2rem; color: var(--ink-soft); }

/* Directory */
.directory { padding: 1rem 0 5rem; }
.directory-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem; margin-bottom: 2rem;
  border-bottom: 2px solid var(--ink);
}
.directory-head h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filters button {
  appearance: none; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 500;
  padding: 0.45rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--rule); background: transparent; color: var(--ink-soft);
}
.filters button:hover { border-color: var(--ink-soft); color: var(--ink); }
.filters button[aria-pressed="true"] {
  background: var(--pine); border-color: var(--pine); color: var(--paper);
}

.places {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem;
}
.place {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule); border-radius: 4px;
  padding: 1.6rem 1.6rem 1.4rem;
}
.place[hidden] { display: none; }
.place .tag {
  align-self: flex-start;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pine);
}
.place h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.15;
  margin: 0.4rem 0 0.6rem;
}
.place p { color: var(--ink-soft); font-size: 1rem; }
.place .where {
  margin-top: 0.9rem; font-size: 0.92rem; color: var(--ink);
}
.place .where a { text-decoration-color: var(--rule); text-underline-offset: 3px; }
.place .where a:hover { text-decoration-color: currentColor; }
.place .go {
  margin-top: auto; padding-top: 1.25rem;
  font-weight: 600; font-size: 0.95rem;
}
.place .go a { color: var(--rust); text-decoration: none; }
.place .go a:hover { text-decoration: underline; }
.place .go .soon { color: var(--ink-soft); font-weight: 500; font-style: italic; }

/* Listing callout */
.list-yours {
  background: var(--pine); color: var(--paper);
  padding: 3.5rem 0;
}
.list-yours .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem;
  flex-wrap: wrap;
}
.list-yours h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}
.list-yours p { color: #CFDCD4; max-width: 34rem; }

/* Footer */
.site-footer { padding: 2.5rem 0; font-size: 0.9rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.credit { flex-basis: 100%; }
.credit a { color: var(--pine); font-weight: 600; }
.disclosure {
  flex-basis: 100%;
  padding-top: 1rem; border-top: 1px solid var(--rule);
  font-size: 0.82rem;
}

@media (max-width: 700px) {
  .hero { padding: 3.5rem 0 2.5rem; }
  .places { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Photos on hub cards */
.place .photo {
  margin: -1.6rem -1.6rem 1.2rem;
  aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 4px 4px 0 0; background: var(--paper-deep);
}
.place .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Footer logo: also the way into the admin area */
.footer-logo { flex-basis: 100%; }
.footer-logo img { width: 110px; height: auto; display: block; }

/* Place page */
.place-page { padding: 3rem 0 4.5rem; }
.place-page .back { font-weight: 600; color: var(--pine); text-decoration: none; }
.place-page .back:hover { text-decoration: underline; }
.place-page .tag {
  display: block; margin-top: 2rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust);
}
.place-page h1 {
  font-family: var(--display); font-weight: 400; color: var(--pine);
  font-size: clamp(2.4rem, 7vw, 4.25rem); line-height: 1.02; margin: 0.5rem 0 1rem;
}
.place-page .lede { max-width: 40rem; font-size: 1.2rem; color: var(--ink-soft); }
.place-page .where { margin-top: 1rem; }
.place-page .where a { text-underline-offset: 3px; }
.place-page .site-link {
  display: inline-block; margin-top: 1.5rem; padding: 0.8rem 1.5rem; border-radius: 3px;
  background: var(--pine); color: var(--paper); font-weight: 600; text-decoration: none;
}
.place-page .site-link:hover { background: #235c3f; }
.gallery {
  margin-top: 2.75rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem;
}
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--paper-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery a:hover img { transform: scale(1.03); }
.no-photos { margin-top: 2.5rem; color: var(--ink-soft); font-style: italic; }
@media (prefers-reduced-motion: reduce) {
  .gallery img { transition: none; }
}
