/**
 * @file
 * Base element styles + small utilities. Reproduces the campsaturna_fluid look
 * with tokens, no Bootstrap.
 */

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

/* Show a focus ring for keyboard users only (not on mouse click). */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--color-green-bright);
  outline-offset: 2px;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Offset anchored scroll targets for the fixed navbar (replaces campAnchors JS). */
[id] { scroll-margin-top: var(--nav-height); }

body {
  margin: 0;
  min-width: 360px;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  /* Contain the full-bleed 100vw content bands. `hidden` (not `clip`) so the
     value propagates to the viewport and actually clips the horizontal overflow;
     `clip` is excluded from that propagation and lets a scrollbar back in. */
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  -ms-interpolation-mode: bicubic;
}

svg {
  max-width: 100%;
}

/* Form controls don't inherit font by default across browsers. */
button,
input,
select,
textarea {
  font: inherit;
}

.condensed {
  font-family: var(--font-condensed);
}

/* Headings */
h1,
h2,
h3,
h4 {
  color: var(--color-green-dark);
  font-weight: bold;
  line-height: 1.5;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }

h1.page-header {
  font-family: var(--font-script);
  color: var(--color-green-dark);
  text-transform: uppercase;
  font-weight: lighter;
}

/* Decorative script headings used inside body content */
h1.shadows-g, h2.shadows-g, h3.shadows-g {
  font-family: var(--font-script);
  color: var(--color-green-dark);
}
h1.shadows-w, h2.shadows-w, h3.shadows-w {
  font-family: var(--font-script);
  color: var(--color-white);
}

/* Links */
a,
a:link {
  color: var(--color-green-dark);
  cursor: pointer;
  text-decoration: none;
}
a:hover {
  color: var(--color-green-bright);
}

p {
  margin: 0 0 var(--space-sm);
}

blockquote {
  border-left: 0;
  margin: 0 0 0 var(--space-lg);
  padding: 0;
}
blockquote p {
  font-size: 14px;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-md) 0;
}

/* .visually-hidden, .clearfix and .align-* come from core's system/base library
   (loaded on every page), so this theme doesn't redefine them. .nowrap/.overflow
   were unused and dropped. */

/* Buttons */
.btn,
.button {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}
a.btn { color: var(--color-white); }
.btn-primary {
  background-color: var(--color-green-dark);
  color: var(--color-white);
}

/* Saturna coloured link-button. Only the white-green variant is used in
   content; other colours were dropped (restore from git if editors need them). */
a.saturna-btn-white-green {
  display: inline-block;
  padding: 13px;
  margin-top: var(--space-lg);
  font-size: 18px;
  text-align: center;
  border-radius: 0;
  background: var(--color-green-dark);
  color: var(--color-white);
  border: 1px solid var(--color-white);
}
a.saturna-btn-white-green:hover { background: var(--color-green-dark); color: var(--color-white); }

/* Forms */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="tel"],
textarea,
select {
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
}
label {
  display: block;
  margin-top: var(--space-xs);
  font-weight: bold;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: var(--space-md);
}
