/* Echo Atlas: Crystal Caves - "survey instrument" look: abyss night, brass hairlines, chamfered plates, sonar rings.
   Every class carries the site prefix eac_*__7c2e. Fonts: Sora + IM Fell English (SIL OFL 1.1, shipped with the game). */
@font-face { font-family: "Sora"; src: url("/assets/fonts/Sora-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/Sora-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Fell"; src: url("/assets/fonts/IMFellEnglish-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Fell"; src: url("/assets/fonts/IMFellEnglish-Italic.ttf") format("truetype"); font-style: italic; font-display: swap; }

:root {
  --abyss: #070a12; --night: #0e1322; --slate: #18203a; --slate2: #27314f;
  --chalk: #e9f1f7; --mist: #8e9bb9; --brass: #e2b65e; --brass2: #f6d58e; --brassd: #8f6a2c;
  --parch: #eadbb8; --sepia: #3a291c; --low: #ff9f3d; --mid: #3fe0cf; --high: #c27bff;
  --cut: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.eac_body__7c2e { margin: 0; background: var(--abyss); color: var(--chalk); font: 600 17px/1.6 "Sora", system-ui, sans-serif;
  background-image: radial-gradient(circle at 78% -10%, rgba(63,224,207,.10), transparent 45%), radial-gradient(circle at 10% 40%, rgba(194,123,255,.07), transparent 40%); }
.eac_body__7c2e a { color: var(--brass2); }
.eac_body__7c2e a:focus-visible, .eac_body__7c2e button:focus-visible, .eac_body__7c2e input:focus-visible, .eac_body__7c2e textarea:focus-visible { outline: 3px solid var(--mid); outline-offset: 3px; }
.eac_body__7c2e img { max-width: 100%; height: auto; display: block; }
.eac_body__7c2e h1, .eac_body__7c2e h2, .eac_body__7c2e h3 { font-family: "Fell", Georgia, serif; font-weight: 400; line-height: 1.15; letter-spacing: .01em; }
.eac_skip__7c2e { position: absolute; left: -9999px; }
.eac_skip__7c2e:focus { left: 12px; top: 12px; background: var(--brass); color: var(--night); padding: 8px 12px; z-index: 10; }

/* header */
.eac_top__7c2e { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(226,182,94,.35); position: sticky; top: 0; background: rgba(7,10,18,.92); backdrop-filter: blur(6px); z-index: 5; }
.eac_brand__7c2e { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--chalk) !important; }
.eac_brand__7c2e span { display: flex; flex-direction: column; line-height: 1.05; }
.eac_brand__7c2e b { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; }
.eac_brand__7c2e i { font-family: "Fell", serif; color: var(--brass); font-size: 15px; }
.eac_nav__7c2e { display: flex; gap: clamp(10px, 2.4vw, 28px); flex-wrap: wrap; }
.eac_nav__7c2e a { color: var(--mist) !important; text-decoration: none; font-size: 15px; padding: 8px 2px; }
.eac_nav__7c2e a:hover, .eac_nav__7c2e a[aria-current] { color: var(--chalk) !important; box-shadow: inset 0 -2px 0 var(--brass); }

/* hero */
.eac_hero__7c2e { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 6vw, 80px) clamp(16px, 4vw, 56px) 40px; max-width: 1400px; margin: 0 auto; }
.eac_kicker__7c2e { color: var(--brass); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; margin: 0 0 10px; }
.eac_hero__7c2e h1 { font-size: clamp(40px, 6vw, 76px); margin: 0 0 16px; }
.eac_lead__7c2e { color: var(--chalk); font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; }
.eac_cta__7c2e { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0; }
.eac_btn__7c2e { display: inline-block; background: var(--brass); color: var(--night) !important; text-decoration: none; font-weight: 800; border: 0;
  padding: 14px 24px; font: 800 16px "Sora", sans-serif; cursor: pointer; min-height: 48px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.eac_btn__7c2e:hover { background: var(--brass2); }
.eac_btnoff__7c2e { background: var(--slate2); color: var(--mist) !important; cursor: default; }
.eac_btnghost__7c2e { display: inline-flex; align-items: center; padding: 12px 22px; min-height: 48px; color: var(--chalk) !important; text-decoration: none; border: 1px solid var(--brass); }
.eac_facts__7c2e { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; color: var(--mist); }
.eac_facts__7c2e b { color: var(--chalk); font-size: 22px; font-weight: 800; margin-right: 4px; }
.eac_heroshot__7c2e { position: relative; margin: 0; }
.eac_heroshot__7c2e img { border: 1px solid rgba(226,182,94,.55); position: relative; z-index: 1;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px); }
.eac_heroshot__7c2e figcaption, .eac_gallery__7c2e figcaption { font-family: "Fell", serif; font-style: italic; color: var(--mist); margin-top: 8px; }
.eac_rings__7c2e { position: absolute; inset: -12% -8%; pointer-events: none; }
.eac_rings__7c2e span { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; border: 2px solid var(--mid); border-radius: 50%;
  transform: translate(-50%, -50%) scale(.2); opacity: 0; animation: eac_ring__7c2e 4.5s ease-out infinite; }
.eac_rings__7c2e span:nth-child(2) { animation-delay: 1.5s; border-color: var(--low); }
.eac_rings__7c2e span:nth-child(3) { animation-delay: 3s; border-color: var(--high); border-style: dashed; }
@keyframes eac_ring__7c2e { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.2); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(4); } }
@media (prefers-reduced-motion: reduce) { .eac_rings__7c2e span { animation: none; opacity: .25; transform: translate(-50%, -50%) scale(2.5); } html { scroll-behavior: auto; } }

/* loop */
.eac_loop__7c2e, .eac_feats__7c2e, .eac_biomes__7c2e, .eac_gallery__7c2e, .eac_story__7c2e, .eac_access__7c2e, .eac_doc__7c2e { max-width: 1240px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 56px); }
.eac_loop__7c2e h2, .eac_biomes__7c2e h2, .eac_access__7c2e h2 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 22px; }
.eac_loop__7c2e h2::after, .eac_biomes__7c2e h2::after, .eac_access__7c2e h2::after { content: ""; display: block; width: 120px; height: 2px; margin-top: 12px; background: linear-gradient(90deg, var(--brass), transparent); }
.eac_steps__7c2e { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.eac_steps__7c2e li { background: var(--night); border: 1px solid var(--slate2); padding: 22px; position: relative;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.eac_steps__7c2e h3 { font-size: 28px; margin: 10px 0 6px; color: var(--brass2); }
.eac_steps__7c2e p { margin: 0; color: var(--mist); }
.eac_glyph__7c2e { display: block; width: 46px; height: 46px; }
.eac_g1__7c2e { border: 3px solid var(--low); border-radius: 50%; box-shadow: 0 0 0 7px rgba(255,159,61,.18); }
.eac_g2__7c2e { width: 0; height: 0; border-left: 25px solid transparent; border-right: 25px solid transparent; border-bottom: 44px solid var(--mid); }
.eac_g3__7c2e { width: 38px; height: 38px; margin: 4px; background: var(--high); transform: rotate(45deg); }

/* features */
.eac_feat__7c2e { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(18px, 3vw, 40px); align-items: center; margin: 0 0 40px; }
.eac_flip__7c2e { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.eac_flip__7c2e img { order: 2; }
.eac_feat__7c2e img { border: 1px solid var(--slate2); }
.eac_feat__7c2e h3 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 10px; color: var(--chalk); }
.eac_feat__7c2e p { color: var(--mist); margin: 0; }

/* biomes */
.eac_biomegrid__7c2e { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.eac_biome__7c2e { background: var(--night); border-top: 2px solid var(--brass); }
.eac_biome__7c2e h3 { font-size: 22px; margin: 12px 14px 4px; }
.eac_biome__7c2e h3 span { font-family: "Sora", sans-serif; font-weight: 800; font-size: 14px; color: var(--night); background: var(--brass); padding: 1px 7px; margin-right: 4px; vertical-align: middle; }
.eac_biome__7c2e p { margin: 0 14px 16px; color: var(--mist); font-size: 15px; }

/* gallery */
.eac_gallery__7c2e { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.eac_gallery__7c2e figure { margin: 0; }
.eac_gallery__7c2e img { border: 1px solid var(--slate2); }

/* story (parchment) */
.eac_paper__7c2e { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: center; background: var(--parch); color: var(--sepia);
  padding: clamp(18px, 3vw, 36px); box-shadow: 0 0 0 1px var(--brassd), 0 18px 40px rgba(0,0,0,.45); }
.eac_paper__7c2e h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 12px; color: var(--sepia); }
.eac_paper__7c2e p { font-family: "Fell", serif; font-size: 20px; margin: 0 0 12px; }
.eac_quote__7c2e { font-style: italic; border-left: 3px solid var(--brassd); padding-left: 14px; }

/* access */
.eac_access__7c2e ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.eac_access__7c2e li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--slate2); position: relative; color: var(--mist); }
.eac_access__7c2e li::before { content: ""; position: absolute; left: 0; top: 21px; width: 9px; height: 9px; background: var(--brass); transform: rotate(45deg); }
.eac_access__7c2e b { color: var(--chalk); }

/* documents */
.eac_doc__7c2e { max-width: 860px; }
.eac_doc__7c2e h1 { font-size: clamp(36px, 5vw, 56px); margin: 10px 0 12px; }
.eac_doc__7c2e h2 { font-size: 28px; margin: 32px 0 8px; color: var(--brass2); }
.eac_doc__7c2e p, .eac_doc__7c2e li { color: #c9d3e6; }
.eac_meta__7c2e { color: var(--mist) !important; font-size: 14px; }
.eac_entry__7c2e h2 small { color: var(--mist); font-family: "Sora", sans-serif; font-size: 14px; }
.eac_tips__7c2e { background: var(--night); border: 1px solid var(--slate2); padding: 6px 22px 12px; margin: 24px 0; }
.eac_form__7c2e { display: grid; gap: 16px; }
.eac_form__7c2e label { display: grid; gap: 6px; color: var(--chalk); }
.eac_form__7c2e input, .eac_form__7c2e textarea { background: var(--night); color: var(--chalk); border: 1px solid var(--slate2); padding: 12px; font: 600 16px "Sora", sans-serif; min-height: 48px; }
.eac_ok__7c2e { border-left: 4px solid #9be36e; padding: 12px 16px; background: var(--night); }
.eac_err__7c2e { border-left: 4px solid #ff4d6a; padding: 12px 16px; background: var(--night); }
.eac_lost__7c2e { text-align: center; padding-top: 80px; padding-bottom: 80px; }
.eac_ringmark__7c2e { width: 120px; height: 120px; margin: 0 auto 10px; border-radius: 50%; border: 2px dashed var(--mid); box-shadow: 0 0 0 18px rgba(63,224,207,.08), 0 0 0 36px rgba(63,224,207,.04); }

/* footer */
.eac_foot__7c2e { border-top: 1px solid rgba(226,182,94,.35); margin-top: 40px; padding: 30px clamp(16px, 4vw, 56px) 24px; background: var(--night); }
.eac_footgrid__7c2e { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; color: var(--mist); font-size: 15px; }
.eac_footgrid__7c2e p { margin: 0 0 6px; }
.eac_footname__7c2e { font-family: "Fell", serif; color: var(--chalk); font-size: 22px; }
.eac_footh__7c2e { color: var(--brass); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.eac_copy__7c2e { max-width: 1240px; margin: 18px auto 0; color: var(--mist); font-size: 13px; }

@media (max-width: 960px) {
  .eac_hero__7c2e, .eac_feat__7c2e, .eac_flip__7c2e, .eac_paper__7c2e { grid-template-columns: 1fr; }
  .eac_flip__7c2e img { order: 0; }
  .eac_biomegrid__7c2e { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eac_steps__7c2e, .eac_gallery__7c2e, .eac_access__7c2e ul, .eac_footgrid__7c2e { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .eac_biomegrid__7c2e { grid-template-columns: 1fr; }
  .eac_top__7c2e { flex-direction: column; align-items: flex-start; position: static; }
  .eac_nav__7c2e a { padding: 10px 4px; }
}
