/* ==========================================================================
   ficto.pet — shared site stylesheet
   Link this on every page: <link href="/style.css" rel="stylesheet">

   Individual pages can override any --variable in their own <style> block
   (see ocs/owl.html for an example of per-character re-theming) and layer
   page-specific classes below it.
   ========================================================================== */

:root {
  --text: #514455;
  --section: #E6DDE3;
  --border: #46A097;
  --link: #4281AC;
  --text-rgb: 81, 68, 85;
  --section-rgb: 230, 221, 227;
  --border-rgb: 70, 160, 151;
  --link-rgb: 66, 129, 172;
  --bgimage: linear-gradient(180deg, #46A097 0%, #4281AC 100%);
  --headingfont: Georgia;
  --bodyfont: helvetica;
  --borderwidth: 2px;
  --borderstyle: dashed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--bodyfont), sans-serif;
  color: var(--text);
  background: var(--bgimage);
  background-attachment: fixed;
}

::selection {
  color: var(--section);
  background-color: var(--text);
}

a {
  color: var(--link);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:visited {
  color: var(--text);
}

a:hover {
  color: var(--border);
}

img {
  max-width: 100%;
}

/* ---- page shell ---- */

.container {
  width: 100%;
}

.banner {
  width: 100%;
  max-height: 120px;
  overflow: hidden;
}

.banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main {
  padding: 30px 40px 60px;
}

/* ---- top nav (bare <ul> right inside .container) ---- */

.container > ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 15px 30px;
  background: var(--section);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 18px rgba(81, 68, 85, 0.4);
}

.container > ul li {
  list-style: none;
}

.container > ul a {
  color: var(--link);
  text-decoration: none;
  font-family: var(--headingfont), serif;
  font-weight: bold;
  font-size: 17px;
  transition: all 0.2s ease;
}

.container > ul a:hover {
  color: var(--border);
  font-weight: 900;
  letter-spacing: 0.8px;
}

@media (max-width: 600px) {
  .container > ul {
    padding: 15px 20px;
    gap: 12px 20px;
  }
  main {
    padding: 20px;
  }
}

/* ---- reusable heading style for content sections ---- */

.section-heading {
  font-family: var(--headingfont), serif;
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: var(--borderwidth) var(--borderstyle) var(--border);
}

/* ---- rounded content card, used to group a page's sections ---- */

.panel {
  background: var(--section);
  border: var(--borderwidth) var(--borderstyle) var(--border);
  border-radius: 14px;
  padding: 25px 30px 30px;
}

.panel h1,
.panel h2 {
  font-family: var(--headingfont), serif;
  font-size: 1.3rem;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.panel p {
  line-height: 1.6;
  font-size: 15px;
}

.panel a {
  color: var(--link);
}

.panel a:hover {
  color: var(--border);
}

/* ---- back-to-top button ---- */

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--section);
  color: var(--link);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 100;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover {
  background: var(--border);
  color: var(--section);
}

/* ---- shared animation used for playful hover wiggles ---- */

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}
