/* EDIT HERE: shared design settings. Oswald and the original brown/gold palette. */
@font-face { font-family: "Oswald"; src: url("../fonts/Oswald-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --font-family: "Oswald", sans-serif;
  --page-background: #210e06;
  --primary: #4a370a;
  --secondary: #ad7424;
  --text: #fff;
  --muted: #e8dccb;
  --link: #ffe0a3;
  --border: #ffffff30;
  --content-max: 900px;
  --card-radius: 16px;
  --control-radius: 8px;
  --space: 1rem;
  --panel-padding: clamp(1.25rem, 4vw, 2rem);
  --shadow: 0 6px 20px #00000026;
  --motion: 180ms ease;
}
/* Base and typography */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 9rem; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; font-family: var(--font-family); font-size: 18px; line-height: 1.65; color: var(--text); background: var(--page-background); overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; }
a { color: var(--link);  text-decoration-thickness: 1px; transition: color var(--motion), background-color var(--motion), box-shadow var(--motion), transform var(--motion); }
a:hover { color: var(--text); }

h1, h2, h3, h4, h5, h6 { color: var(--text); line-height: 1.25; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
p, ul, ol { margin: 1rem 0; }
li + li { margin-top: .25rem; }
img, video { max-width: 100%; height: auto; }
blockquote { margin-inline: 0; padding: .5rem 1.25rem; border-left: 3px solid var(--secondary); background: #ffffff08; }
pre { overflow-x: auto; padding: 1rem; background: var(--page-background); border-radius: var(--control-radius); }
code { font-family: monospace; }
table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
th, td { padding: .6rem .9rem; border: 1px solid var(--border); text-align: left; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
/* One shared content surface, including short pages */
main.container { flex: 1; width: min(var(--content-max), calc(100% - 2rem)); margin: 2rem auto; padding: var(--panel-padding); background: var(--primary);  border-radius: var(--card-radius); box-shadow: var(--shadow); }
.content-wrapper, .content-card { margin: 0; padding: 0; }
main > :first-child, .content-card > :first-child, .bubble > :first-child { margin-top: 0; }
main > :last-child, .content-card > :last-child, .bubble > :last-child { margin-bottom: 0; }
.text-center, .homepage-container { text-align: center; }
.homepage-container { margin-inline: auto; }
.home-logo { display: block; width: 90px; height: 90px; margin: 0 auto 1rem; }
.bubble { background: var(--secondary); color: var(--text); padding: var(--panel-padding); border-radius: var(--card-radius); margin: 1.5rem 0; box-shadow: var(--shadow); transition: box-shadow var(--motion), border-color var(--motion); }
.bubble a { color: var(--text); }
.bubble:hover, .bubble:focus-within {  box-shadow: 0 9px 24px #00000033; }
/* Header: wrapping layout avoids absolute-position overlaps */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--primary); border-bottom: 3px solid var(--text); }
.navbar { max-width: 1440px; margin: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; padding: 1rem; }
.brand { margin-right: auto; }
.brand-link { display: flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; }
.brand-logo { display: block; width: 50px; height: 50px; object-fit: contain; transition: transform var(--motion); }
.brand-link:hover .brand-logo { transform: rotate(-4deg) scale(1.05); }
.navbar-links ul { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.navbar-links li { margin: 0; }
.navbar-links a, .footer-btn, .footer-credit { display: inline-block; color: var(--text); text-decoration: none; border-radius: var(--control-radius); padding: .5rem .8rem; }
.navbar-links a[aria-current="page"] { background: var(--secondary);}
.navbar-links a:hover, .footer-btn:hover { background: var(--secondary); transform: translateY(-2px); }
.toggle-button { display: none; }
/* Shared buttons: use .button or .cta-button for links */
button, .button, .cta-button, .close-btn, #modal-submit, #modal-close { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1.15rem; border-radius: var(--control-radius); background: var(--secondary); color: var(--text); cursor: pointer; text-decoration: none; transition: transform var(--motion), box-shadow var(--motion), background-color var(--motion); }
button:hover, .button:hover, .cta-button:hover, .close-btn:hover, #modal-submit:hover, #modal-close:hover { color: var(--text); background: var(--primary); box-shadow: 0 4px 12px #00000040; transform: translateY(-2px); }
button:active, .button:active, .cta-button:active { transform: translateY(0); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.cta-button { margin-top: 1rem; }
.site-footer { flex-shrink: 0; padding: 1rem; background: var(--primary); text-align: center; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-btn, .footer-credit { font-size: .95rem; }
/* Optional forms, packages and article components */
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: var(--control-radius); background: var(--page-background); color: var(--text); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--secondary); }
textarea { min-height: 9rem; resize: vertical; }
#modal-form { display: flex; flex-direction: column; gap: .75rem; }
#modal-form label { padding: .6rem; border-radius: var(--control-radius); }
#modal-form label:hover { background: #ffffff10; }
.packages { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin: 2rem auto; }
.addons { max-width: 420px; margin: 1.5rem auto; text-align: left; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.post-meta { color: var(--muted); }
.tag { display: inline-block; padding: .2rem .6rem; border: 1px solid var(--border); border-radius: var(--control-radius); }
.tag:hover { background: var(--secondary); }
.modal { display: none; position: fixed; inset: 0; z-index: 1100; justify-content: center; align-items: center; padding: 1rem; background: #000000b3; }
.modal-content { width: 100%; max-width: 680px; max-height: 80vh; overflow-y: auto; padding: var(--panel-padding); background: var(--primary); color: var(--text); border-radius: var(--card-radius); box-shadow: var(--shadow); }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 2000; padding: .6rem 1rem; background: var(--page-background); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 768px) {
  .navbar { justify-content: space-between; gap: .5rem; padding: .65rem 1rem; }
  .brand { flex: 1; min-width: 0; }
  .brand-link span { max-width: 65vw; }
  .js .toggle-button { display: inline-flex; }
  .navbar-links { width: 100%; max-height: 65vh; overflow-y: auto; }
  .js .navbar-links { display: none; }
  .js .navbar-links.active { display: block; }
  .navbar-links ul { flex-direction: column; }
  .navbar-links a { display: block; text-align: center; }
  main.container { margin-block: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  a:hover, button:hover, .brand-link:hover .brand-logo { transform: none; }
}

.badge-icon {
  display: inline-block;
  filter: brightness(0) invert(1);
}

/* Remove borders from the hamburger and Cookie Settings buttons */
.toggle-button,
.cookie-settings {
  border: none;
}