/* ======================================
   IMPORTS — Section-based modules
  ====================================== */
@import "css/sections/header.css";
@import "css/sections/hero.css";
@import "css/sections/footer.css";
@import "css/sections/cards.css";
@import "css/sections/content.css";
@import "css/sections/sidebar.css";
@import "css/sections/target.css";
@import "css/sections/process.css";
@import "css/sections/personnel.css";
@import "css/sections/technology.css";
@import "css/sections/tables.css";

/* ======================================
   CSS VARIABLES
  ====================================== */
:root {
  /* Color Tokens */
  --nero: #353535;
  --nero-light: #464646;
  --silverback: #afafaa;
  --mosswash: #ede8da;
  --offwhite: #f6f2e8;
  --pattens: #cfe2f3;
  --mutedpattens: #e4f5ff;
  --gray: #717171;
  --cadet: #8ea3af;

  --blue-sour: #1e6c93;

  --camel: #8f6448;
  --walnut: #644332;
  --appleseed: #a67c52;
  --collard: #8b6500;

  --red: #a32023;
  --terracottaroof: #a34547;
  --Kuwazome: #532728;

  --yellow: #d89c1f;
  --leather: #c8a255;
  --riverpanned: #ac7e1e;

  --green: #115f45;
  --verdant: #364640;
  --camo: #7c8f4b;
  --unakite: #71a34b;

  --blue: #1d3a65;
  --incremental: #113056;
  --kakitsubata: #3d67a5;

  /* Brand accent system (derived from logo/favicon family) */
  --accent-blue: var(--blue-sour);
  --accent-green: var(--green);
  --accent-yellow: var(--yellow);
  --accent-red: var(--red);
  --accent-gradient: linear-gradient(
    90deg,
    var(--accent-blue) 0%,
    var(--accent-green) 34%,
    var(--accent-yellow) 68%,
    var(--accent-red) 100%
  );

  --purple: #3f1f4a;
  --royale: #490072;
  --lilac: #7b4b8c;
  --portage: #8f86d8;
}

/* ======================================
   RESET & BASE STYLES
  ====================================== */
html, body, h1, h2, p, ul, ol {
  margin: 0;
  padding: 0;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background-color: var(--mosswash);
  color: var(--nero);
  font-weight: normal;
  line-height: 1.7;
}

:focus-visible {
  outline: 2px solid var(--blue-sour);
  outline-offset: 2px;
}

::selection {
  background: rgba(30, 108, 147, 0.2);
  color: var(--nero);
}

/* ======================================
   LAYOUT ELEMENTS
  ====================================== */
main,
.edition {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

section {
  --section-width: min(60rem, 100%);
  width: var(--section-width);
  margin: 0 auto;
  background-color: transparent;
}

@media (max-width: 768px) {
  section {
    width: 100%;
  }
}

/* ======================================
   TYPOGRAPHY
  ====================================== */
h1 {
  text-align: center;
  font-size: 1.75rem;
  margin: 0 1rem 0 0;
}

h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0;
}

p {
  margin: 0 1.25rem 0 0;
  font-size: 0.95rem;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  color: var(--incremental);
  text-decoration: underline;
}

.muted {
  color: var(--gray);
  font-style: italic;
}

/* ======================================
   IMAGES
  ====================================== */
img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  overflow: hidden;
}

.img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-container--cover img {
  object-fit: cover;
}

/* ======================================
   ICON UTILITIES
  ====================================== */
:root {
  --ui-icon-border: 1px solid var(--silverback);
  --ui-icon-bg: var(--offwhite);
  --ui-icon-shadow: 1px 1px 0 rgba(53, 53, 53, 0.26);
}

.ui-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--ui-icon-border);
  background-color: var(--ui-icon-bg);
  box-shadow: var(--ui-icon-shadow);
  flex-shrink: 0;
}

.ui-icon-box img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.ui-icon-box--sm {
  width: 1.1rem;
  height: 1.1rem;
}

.ui-icon-box--md {
  width: 1.3rem;
  height: 1.3rem;
}

.ui-icon-box--muted {
  background-color: rgba(237, 232, 218, 0.5);
}

.ui-label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ======================================
   BUTTONS
  ====================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.btn--primary {
  background-image: linear-gradient(180deg, var(--blue) 0%, var(--incremental) 100%);
  border-color: var(--incremental);
  color: var(--offwhite);
}

.btn--secondary {
  background-color: var(--yellow);
  border-color: var(--riverpanned);
  color: var(--nero);
}

/* ======================================
   OTHER COMPONENTS
  ====================================== */
.section-aside {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 clamp(1rem, 3vw, 3rem);
  text-align: center;
}

.aside__text {
  font-style: italic;
  text-align: center;
  margin: 0 auto;
  width: min(85%, 60rem);
  max-width: 60rem;
  padding: 0 1rem;
  line-height: 1.55;
}

.section-aside hr {
  border-top: 1px solid var(--silverback);
  margin: 0 auto;
  width: min(100%, 72rem);
}

.divider {
  border-top: 1px solid var(--silverback);
  margin: 0 auto;
  width: 90%;
  max-width: 60rem;
}

.box {
  border: 1px solid var(--silverback);
}
