/* =============================================================================
   The Keystones Holder — shared stylesheet
   Edit colours, fonts, and spacing here; every page uses this one file.

   Fonts are self-hosted in /fonts so the site does not call Google at runtime.
   ============================================================================= */

@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cabin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/cabin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/open-sans-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/open-sans-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/open-sans-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/open-sans-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/open-sans-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/open-sans-700-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/open-sans-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Special Elite";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/special-elite-400-normal.woff2") format("woff2");
}

/* --- Colours taken from the live GoDaddy theme --- */
:root {
  --bg: #050300;
  --header-bg: #111111;
  --text: #e2e2e2;
  --text-bright: #f7f7f7;
  --text-muted: #919191;
  --white: #ffffff;
  --gold: #a16915;
  --gold-hover: #d1a600;
  --gold-active: #f1c000;
  --btn: rgb(77, 63, 29);
  --btn-hover: rgb(104, 85, 42);
  --btn-active: rgb(39, 31, 11);
  --form-btn: rgb(35, 26, 3);
  --form-btn-text: rgb(230, 226, 220);
  --line: rgba(255, 255, 255, 0.5);
  --input-border: #777777;
  --card: #ffffff;
  --card-text: #111111;
  --card-muted: #555555;
  --heading: "Cabin", Arial, sans-serif;
  --body: "Open Sans", Arial, sans-serif;
  --display: "Special Elite", "Courier New", serif;
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }
a:active { color: var(--gold-active); }

.wrap {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}
@media (max-width: 767px) {
  .wrap { width: min(var(--max), calc(100% - 40px)); }
}

/* =============================================================================
   Header — logo in the centre, Home/Store/Products on the left,
   The Archive of Ozmagog on the right (matches the live site).
   ============================================================================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
}
.site-header.is-solid {
  position: relative;
  background: var(--header-bg);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  min-height: 110px;
  padding: 12px 0;
}
@media (max-width: 767px) {
  .header-inner {
    width: min(var(--max), calc(100% - 32px));
    min-height: 88px;
  }
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
}
.logo img {
  height: 88px;
  width: auto;
}
@media (min-width: 1024px) {
  .logo img { height: 104px; }
}

.nav-toggle,
.nav-toggle-label { display: none; }

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }

.nav-left a,
.nav-right a,
.nav-drawer a {
  color: var(--text);
  font-family: var(--heading);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.nav-left a:hover,
.nav-right a:hover,
.nav-drawer a:hover { color: var(--gold); }
.nav-left a[aria-current="page"],
.nav-right a[aria-current="page"],
.nav-drawer a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--line);
}

/* Mobile: hamburger on the left, logo stays centred */
@media (max-width: 1023px) {
  .header-inner {
    display: flex;
    justify-content: center;
    position: relative;
  }
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: var(--text);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    position: relative;
  }
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-toggle-label span::before { top: -6px; }
  .nav-toggle-label span::after { top: 6px; }

  .nav-left,
  .nav-right { display: none; }

  .nav-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #161616;
    box-shadow: 0 3px 6px 3px rgba(0, 0, 0, 0.24);
    z-index: 30;
    padding: 8px 0;
  }
  .nav-drawer a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(76, 76, 76, 0.5);
    color: var(--text);
    font-family: var(--heading);
  }
  .nav-drawer a:last-child { border-bottom: 0; }
  .nav-toggle:checked ~ .nav-drawer { display: block; }
}

@media (min-width: 1024px) {
  .nav-drawer { display: none !important; }
}

/* =============================================================================
   Home hero — left-aligned title with a vertical rule, like the live site.
   Background is Nate's store photo instead of the Getty stock video.
   ============================================================================= */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-color: var(--bg);
  background-image:
    linear-gradient(to bottom, rgba(5, 3, 0, 0.75) 0%, rgba(5, 3, 0, 0.45) 28%, rgba(5, 3, 0, 0.58) 100%),
    url("/images/store-photo.jpg");
  background-size: cover;
  background-position: center 35%;
  padding: 140px 0 80px;
}
.hero-inner {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  text-align: left;
  border-left: 2px solid var(--line);
  padding-left: 32px;
}
.hero-inner h1,
.hero-inner .tagline { max-width: 720px; }
@media (max-width: 767px) {
  .hero { min-height: 70vh; padding: 120px 0 64px; }
  .hero-inner {
    width: min(var(--max), calc(100% - 40px));
    padding-left: 20px;
  }
}

.hero h1 {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.15;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 20px;
  border: 0;
  display: block;
}

.hero .tagline {
  font-family: var(--body);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--white);
  margin: 0 0 28px;
  max-width: 620px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 28px;
  background: var(--btn);
  color: var(--white);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn:hover { background: var(--btn-hover); color: var(--white); }
.btn:active { background: var(--btn-active); color: var(--white); }

.btn-form {
  background: var(--btn);
  color: var(--white);
  border: 0;
  min-width: 120px;
}
.btn-form:hover { background: var(--btn-hover); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--form-btn-text);
  border: 1px solid var(--form-btn-text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--form-btn-text); }

/* =============================================================================
   Page content
   ============================================================================= */
main { flex: 1; }

.section { padding: 64px 0 24px; }
.section.tight-bottom { padding-bottom: 24px; }
.section.contact-section { padding: 48px 0 64px; }

.section-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--text-bright);
  margin: 0 0 36px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}
/* Products heading is title case in Special Elite, not uppercase */
.section-title.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 34px);
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-bright);
}

.lead,
.prose p {
  color: var(--text-muted);
  margin: 0 0 1em;
  text-wrap: pretty;
}
.prose p:last-child { margin-bottom: 0; }

.about-heading {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 22px;
  color: var(--text);
  margin: 0 0 20px;
  max-width: 640px;
  line-height: 1.35;
}
.about-copy { max-width: 640px; }
.about-copy p { margin: 0 0 0.35em; color: var(--text-muted); }
.about-copy p.gap { margin-top: 1.15em; }

/* Store: photo left, stacked text on the right */
.store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}
@media (min-width: 800px) {
  .store-grid { grid-template-columns: 300px 1fr; gap: 48px; }
}
@media (min-width: 1024px) {
  .store-grid { grid-template-columns: 340px 1fr; }
}
.store-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 30% 20%; /* close to the live site's crop, wizard + dice */
}
.store-blocks { display: grid; gap: 28px; }
.block-heading {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 22px;
  color: var(--text);
  margin: 0 0 12px;
}

/* Products gallery — two-column white cards, like the live RSS widget */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.product-card {
  display: block;
  background: var(--card);
  color: var(--card-text);
  overflow: hidden;
}
.product-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.product-card .card-body { padding: 20px 24px 24px; }
.product-card .date {
  font-size: 13px;
  color: var(--card-muted);
  margin: 0 0 8px;
}
.product-card h2 {
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 400;
  color: #111;
  margin: 0 0 8px;
}
.product-card p {
  color: #444;
  margin: 0 0 16px;
  font-size: 15px;
}
.product-card .continue {
  color: #111;
  font-size: 15px;
}
.product-card:hover h2,
.product-card:hover .continue { color: var(--gold); }

/* Single product / "blog post" layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #f3f3f3;
  color: #222;
  padding: 32px 24px 48px;
}
@media (min-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr 280px;
    gap: 40px;
    padding: 40px 40px 56px;
  }
}
.post-layout a { color: #333; }
.post-layout a:hover { color: var(--gold); }
.post-main h1 {
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  color: #111;
  margin: 8px 0 8px;
  text-transform: none;
}
.post-main .date { color: #666; font-size: 14px; margin: 0 0 24px; }
.post-main .product-hero-img {
  width: 100%;
  margin: 0 0 24px;
  background: #ddd;
}
.post-main .prose p { color: #333; font-size: 16px; }
.back-link { font-size: 14px; margin: 0 0 16px; }
.share { margin-top: 28px; font-size: 14px; color: #333; }
.share a { margin-right: 10px; }

.recent h2 {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 22px;
  color: #111;
  margin: 0 0 20px;
}
.recent-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin-bottom: 20px;
  color: inherit;
  align-items: start;
}
.recent-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.recent-item h3 {
  font-family: var(--heading);
  font-size: 15px;
  font-weight: 400;
  color: #111;
  margin: 0 0 4px;
}
.recent-item .date { font-size: 13px; color: #666; margin: 0; }
.recent-item:hover h3 { color: var(--gold); }

/* Archive — section title with rule, body indented */
.archive-entry { margin-bottom: 56px; }
.archive-kicker {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--text-bright);
  margin: 0 0 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 16px;
}
.archive-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}
.archive-body {
  max-width: 720px;
  margin-left: auto;
  margin-right: 4%;
}
@media (max-width: 767px) {
  .archive-body { margin-right: 0; }
}
.archive-body h2 {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 22px;
  color: var(--text);
  margin: 0 0 16px;
}

/* =============================================================================
   Contact
   ============================================================================= */
.contact-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}
.contact-intro h3 {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 22px;
  color: var(--text);
  margin: 0 0 12px;
}
.contact-intro p {
  color: var(--text-muted);
  margin: 0 0 1.5em;
}
.contact-intro h3 a { color: inherit; }
.contact-intro h3 a:hover { color: var(--gold); }
.contact-intro p a { color: var(--text-muted); }
.contact-intro p a:hover { color: var(--gold); }

/* The home form is hidden behind this button, same as the live site.
   Uses <details> so it works without JavaScript. */
.form-reveal {
  text-align: center;
  margin: 8px auto 0;
}
.form-reveal > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 28px;
  background: var(--btn);
  color: var(--white);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.form-reveal > summary::-webkit-details-marker { display: none; }
.form-reveal > summary:hover { background: var(--btn-hover); }
.form-reveal[open] > summary { margin-bottom: 32px; }

.form-narrow {
  width: min(640px, 100%);
  margin: 0 auto;
  text-align: center;
}
.form-narrow .form-title {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 22px;
  color: var(--text);
  margin: 0 0 24px;
  text-align: center;
}

.field { margin-bottom: 16px; text-align: left; }
.field-box input,
.field-box textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--input-border);
  border-radius: 0;
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  padding: 14px 12px;
  outline: none;
}
.field-box textarea { min-height: 140px; resize: vertical; }
.field-box input:focus,
.field-box textarea:focus { border-color: var(--gold); }
.field-box input::placeholder,
.field-box textarea::placeholder { color: #b0b0b0; }
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* =============================================================================
   Footer — copyright left, tagline right
   ============================================================================= */
.site-footer {
  padding: 28px 0 36px;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: auto;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
