/* ============================================================
   ELYSIAN FALSE CEILING — CSS RESET
   Based on a modern CSS reset with opinionated base defaults.
   ============================================================ */

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

/* Remove default margins */
* {
  margin: 0;
  padding: 0;
}

/* Prevent font-size inflation on iOS */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto; /* Smooth scroll handled via JS with offset */
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* Remove list styles on ul/ol with a list role */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Remove default list styling for nav lists */
nav ul,
nav ol {
  list-style: none;
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts for form elements */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Remove default heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
}

/* Remove default anchor styles */
a {
  text-decoration: none;
  color: inherit;
}

/* Remove default blockquote / cite styles */
blockquote,
cite {
  font-style: normal;
}

/* Table reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default fieldset styles */
fieldset {
  border: none;
  padding: 0;
}

/* Remove default HR style */
hr {
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.2;
}

/* SVG fill inherits by default */
svg {
  fill: currentColor;
  flex-shrink: 0;
}

/* Remove default details/summary arrow */
details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Focus outline reset — custom focus styles applied in components.css */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent, #C9A84C);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Disable pointer events on hidden elements */
[hidden],
[aria-hidden="true"] {
  display: none;
}

/* Skip-to-content link (accessibility) */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 99999;
  padding: 12px 24px;
  background-color: var(--color-accent, #C9A84C);
  color: var(--color-primary, #1A1714);
  font-weight: 600;
  text-decoration: none;
  transition: top 200ms ease;
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid var(--color-primary, #1A1714);
  outline-offset: 2px;
}
