/* HookedBook site theme — dark forest, static HTML/CSS only. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype");
}

:root {
  --forest: #14251A;
  --moss: #3B6043;
  --lime: #9BD36A;
  --white: #FFFFFF;
  --ink: #F2F5F0;
  --gold: #D4AF37;
  --gold-bright: #F1D56F;
  /* deep-water refresh (5 Dec 2026): app forest tones (theme-colors.ts) into a dark teal */
  --deep: #0B1711;
  --pine: #1F3A28;
  --teal: #0F3B3C;
  --footer: rgba(6, 16, 10, 0.72);
  --bar: rgba(11, 23, 17, 0.88);
  color-scheme: dark;
}

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

html {
  background: var(--deep);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--white);
  min-height: 100vh;
  /* faint contour lines over a deep-water gradient (one tiny inline SVG, no request) */
  background-color: var(--forest);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'%3E%3Cg fill='none' stroke='%239BD36A' stroke-opacity='0.06' stroke-width='1.2'%3E%3Cpath d='M0 20 Q30 8 60 20 T120 20 T180 20 T240 20'/%3E%3Cpath d='M0 50 Q30 38 60 50 T120 50 T180 50 T240 50'/%3E%3Cpath d='M0 80 Q30 68 60 80 T120 80 T180 80 T240 80'/%3E%3Cpath d='M0 110 Q30 98 60 110 T120 110 T180 110 T240 110'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(170deg, var(--deep) 0%, var(--forest) 30%, var(--pine) 62%, var(--teal) 100%);
  background-attachment: scroll, fixed;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

/* Header: slim sticky bar, wordmark left, rounded link buttons, gold rule */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: -1.25rem -1rem 2rem;
  padding: 0.4rem 1rem;
  background: var(--bar);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold);
}

.site-name {
  margin: 0;
}

.site-name a {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  text-decoration: none;
}

.site-logo {
  display: block;
  width: 9.5rem; /* slim bar; same option 2 lockup */
  height: auto;
  max-width: 100%;
}

/* Text-logo: option 2 Dark lettering/colours, for standalone HookedBook in headings and footer only. */
.text-logo {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.heading-logo {
  /* the real wordmark (with the hook on the k) inside headings, sized to the heading text */
  display: inline-block;
  height: 0.86em;
  width: auto;
  vertical-align: -0.1em;
}

.text-logo .mark-book {
  color: var(--lime);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav ul {
  margin: 0;
}

/* Link buttons (top and bottom) */
header nav a,
footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.95rem;
  border: 1px solid rgba(155, 211, 106, 0.45);
  border-radius: 999px;
  background: rgba(11, 23, 17, 0.55);
  color: var(--lime);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

header nav a:hover,
footer nav a:hover {
  background: rgba(155, 211, 106, 0.14);
  border-color: var(--lime);
  color: var(--white);
}

header nav a:focus-visible,
footer nav a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

header nav a[aria-current="page"] {
  color: var(--white);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

/* One primary button: the privacy policy (the page the store and anglers need most) */
header nav a[href="privacy.html"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--deep);
  font-weight: 700;
}

header nav a[href="privacy.html"]:hover {
  background: #B4E38A;
  border-color: #B4E38A;
  color: var(--deep);
}

header nav a[href="privacy.html"][aria-current="page"] {
  box-shadow: 0 0 0 2px var(--gold);
}

a {
  color: var(--lime);
}

a:hover {
  text-decoration-thickness: 2px;
}

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

main h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

main h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 2rem 0 0.65rem;
  padding-bottom: 0.4rem;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 2.5rem 2px;
}

main p,
main li {
  max-width: 65ch;
}

main ul,
main ol {
  padding-left: 1.25rem;
}

main li + li {
  margin-top: 0.35rem;
}

.tagline {
  font-size: 1.125rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.notice {
  border: 1px solid var(--moss);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1rem;
  margin: 1rem 0 1.5rem;
  max-width: 65ch;
}

.placeholder {
  display: inline;
  font-weight: 600;
  color: var(--gold-bright);
  border: 1px dashed var(--gold);
  border-radius: 2px;
  padding: 0.05em 0.3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

footer {
  margin: 3rem -1rem -3rem;
  padding: 1.5rem 1rem 2rem;
  background: var(--footer);
  border-top: 1px solid var(--moss);
  font-size: 0.95rem;
}

footer nav ul {
  gap: 0.6rem;
  margin: 0 0 1rem;
}

footer p {
  margin: 0.35rem 0;
}

address {
  font-style: normal;
}

/* Narrow screens: keep the sticky bar to one slim row (the links scroll sideways) */
@media (max-width: 600px) {
  header {
    flex-wrap: nowrap;
  }
  header nav {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  header nav::-webkit-scrollbar {
    display: none;
  }
  header nav ul {
    flex-wrap: nowrap;
    padding: 2px;
  }
  header nav a {
    white-space: nowrap;
    padding: 0.3rem 0.75rem;
  }
  .site-logo {
    width: 7.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
