/* =========================================================================
   EYIS Press · reset + base elements + typography
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--eyis-bg);
  color: var(--eyis-text-2);
  font-family: var(--eyis-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s var(--eyis-ease), color .3s var(--eyis-ease);
}

img, svg, canvas, video { max-width: 100%; height: auto; display: block; }
iframe, embed, object { max-width: 100%; }

/* Prevent DOI/URL/table/plugin content from forcing the whole page wider. */
.page, .main_entry, .pkp_block, .obj_article_details, .eyis-card { min-width: 0; overflow-wrap: anywhere; }
.page table, .main_entry table, .pkp_block table { display: block; max-width: 100%; overflow-x: auto; }
.page pre, .main_entry pre { max-width: 100%; overflow-x: auto; }
a { color: var(--eyis-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--eyis-ring); border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--eyis-font-heading);
  color: var(--eyis-text);
  line-height: 1.18;
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(30px, 4vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(19px, 2vw, 23px); }
p { margin: 0 0 1em; }
code, kbd, samp { font-family: var(--eyis-font-mono); font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--eyis-border); margin: 2rem 0; }

::selection { background: var(--eyis-accent); color: var(--eyis-on-accent); }

/* ---- Material Symbols ---- */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'opsz' 24;
  vertical-align: middle;
  user-select: none;
}

/* ---- helpers ---- */
.eyis-sr-only,
.pkp_screen_reader {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.eyis-shell { width: min(var(--eyis-max), 100% - var(--eyis-gutter) * 2); margin-inline: auto; }
.eyis-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--eyis-accent);
  margin-bottom: .6rem;
}
.eyis-heading-rule { display: flex; align-items: center; gap: 14px; margin-bottom: 1.4rem; }
.eyis-heading-rule h2 { margin: 0; }
.eyis-heading-rule::after { content: ""; flex: 1; height: 1px; background: var(--eyis-border); }

/* Skip links */
.cmp_skip_to_content a { position: absolute; left: -999px; }
.cmp_skip_to_content a:focus {
  left: 16px; top: 16px; z-index: 100000;
  padding: 10px 16px; background: var(--eyis-primary); color: #fff;
  border-radius: var(--eyis-radius-sm);
}
