:root {
  --as-ground: #e9ece6;
  --as-panel: #f7f8f3;
  --as-ink: #162026;
  --as-muted: #586563;
  --as-rule: #cbd3cb;
  --as-shale: #80918a;
  --as-lichen: #4f715f;
  --as-oxide: #a76534;
  --as-cobalt: #4b5f93;
  --as-pale: #dfe5dc;
  --as-shadow: rgba(22, 32, 38, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--as-ground);
  color: var(--as-ink);
  font-family: Tahoma, Geneva, Verdana, sans-serif;
}

a { color: inherit; }

.as-home,
.as-article-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px;
}

.as-masthead {
  position: relative;
  min-height: 520px;
  padding: 34px 34px 42px;
  border: 1px solid var(--as-rule);
  background: var(--as-panel);
  box-shadow: 0 18px 50px var(--as-shadow);
  overflow: hidden;
}

.as-masthead:before {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  top: 116px;
  height: 1px;
  background: var(--as-rule);
}

.as-kicker,
.as-section-label,
.as-premise-code,
.as-card-meta,
.as-article-brand,
.as-depth-rail p,
.as-authority-register h2 {
  margin: 0;
  color: var(--as-cobalt);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.as-masthead h1 {
  max-width: 820px;
  margin: 94px 0 0;
  font-family: "Lucida Bright", Georgia, serif;
  font-size: clamp(58px, 11vw, 132px);
  line-height: 0.84;
  letter-spacing: -0.075em;
  font-weight: 700;
}

.as-dek {
  max-width: 760px;
  margin: 30px 0 0;
  color: #263237;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.38;
}

.as-byline {
  max-width: 580px;
  margin: 22px 0 0;
  color: var(--as-muted);
  font-size: 14px;
  line-height: 1.55;
}

.as-byline strong { color: var(--as-ink); }

.as-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  max-width: 760px;
}

.as-topics a,
.as-topics span,
.as-topic,
.topic-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px 6px;
  border: 1px solid var(--as-rule);
  background: #eef2eb;
  color: #253039;
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
}

.as-coreline {
  display: grid;
  grid-template-columns: 1.4fr 0.45fr 1fr 0.7fr 1.8fr 0.55fr;
  gap: 0;
  width: min(600px, 82vw);
  height: 44px;
  border: 1px solid var(--as-ink);
  background: var(--as-pale);
}

.as-coreline span { display: block; border-right: 1px solid rgba(22,32,38,0.28); }
.as-coreline span:nth-child(1) { background: #d9dfd5; }
.as-coreline span:nth-child(2) { background: var(--as-oxide); }
.as-coreline span:nth-child(3) { background: #b9c4ba; }
.as-coreline span:nth-child(4) { background: var(--as-cobalt); }
.as-coreline span:nth-child(5) { background: var(--as-shale); }
.as-coreline span:nth-child(6) { background: var(--as-lichen); border-right: 0; }

.as-masthead .as-coreline {
  position: absolute;
  right: 34px;
  bottom: 38px;
}

.as-bore-premise {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  margin-top: 22px;
  padding: 30px 34px;
  border: 1px solid var(--as-rule);
  background: #eef1eb;
}

.as-bore-premise h2,
.as-strata h2,
.as-feature h2,
.as-collapse-warning h2,
.as-archive h2,
.as-article-cap h1 {
  margin: 0;
  font-family: "Lucida Bright", Georgia, serif;
  letter-spacing: -0.035em;
  color: var(--as-ink);
}

.as-bore-premise h2 {
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 0.98;
}

.as-bore-premise p {
  grid-column: 2;
  max-width: 740px;
  margin: -6px 0 0;
  color: #2d383c;
  font-size: 17px;
  line-height: 1.62;
}

.as-strata {
  margin-top: 22px;
  padding: 34px;
  border: 1px solid var(--as-rule);
  background: var(--as-panel);
}

.as-strata h2,
.as-archive h2 { font-size: clamp(28px, 3.4vw, 46px); }

.as-strata-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--as-rule);
}

.as-strata-list li {
  min-height: 230px;
  padding: 18px 16px;
  border-right: 1px solid var(--as-rule);
  background: #eef2ec;
}

.as-strata-list li:nth-child(even) { background: #e4eae3; }
.as-strata-list li:last-child { border-right: 0; }

.as-strata-list span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--as-oxide);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.as-strata-list strong {
  display: block;
  font-size: 17px;
  line-height: 1.15;
}

.as-strata-list em {
  display: block;
  margin-top: 10px;
  color: var(--as-muted);
  font-size: 13px;
  line-height: 1.45;
  font-style: normal;
}

.as-feature,
.as-collapse-warning {
  margin-top: 22px;
  border: 1px solid var(--as-rule);
  background: #f4f6f0;
}

.as-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 28px;
  padding: 34px;
}

.as-feature .as-section-label { grid-column: 1 / -1; }
.as-feature h2 { font-size: clamp(34px, 5vw, 72px); line-height: 0.94; }
.as-feature p:not(.as-section-label) { margin: 6px 0 0; font-size: 18px; line-height: 1.6; color: #2d383c; }

.as-load-strip {
  align-self: stretch;
  display: grid;
  grid-template-rows: 1.1fr 0.5fr 1.6fr 0.8fr 1.2fr;
  min-height: 260px;
  border: 1px solid var(--as-ink);
}

.as-load-strip b { display: block; border-bottom: 1px solid rgba(22,32,38,0.28); }
.as-load-strip b:nth-child(1) { background: var(--as-shale); }
.as-load-strip b:nth-child(2) { background: var(--as-oxide); }
.as-load-strip b:nth-child(3) { background: #dbe1d7; }
.as-load-strip b:nth-child(4) { background: var(--as-cobalt); }
.as-load-strip b:nth-child(5) { background: var(--as-lichen); border-bottom: 0; }

.as-collapse-warning {
  padding: 28px 34px;
  border-left: 9px solid var(--as-oxide);
}

.as-collapse-warning h2 { font-size: 34px; }
.as-collapse-warning p { max-width: 900px; margin: 12px 0 0; color: #2d383c; font-size: 16px; line-height: 1.65; }

.as-archive {
  margin-top: 22px;
  padding: 34px;
  border: 1px solid var(--as-rule);
  background: #eef1eb;
}

.as-archive-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.as-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.as-core-card { min-width: 0; }

.as-core-card-link {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 330px;
  padding: 0;
  border: 1px solid var(--as-rule);
  background: var(--as-panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease;
}

.as-core-card-link:hover {
  transform: translateY(-2px);
  border-color: var(--as-ink);
}

.as-card-sample {
  display: grid;
  grid-template-columns: 1.2fr 0.45fr 1.8fr 0.8fr;
  height: 28px;
  border-bottom: 1px solid var(--as-rule);
}

.as-card-sample span:nth-child(1) { background: var(--as-shale); }
.as-card-sample span:nth-child(2) { background: var(--as-oxide); }
.as-card-sample span:nth-child(3) { background: #dfe5dc; }
.as-card-sample span:nth-child(4) { background: var(--as-cobalt); }

.as-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
  color: var(--as-muted);
  letter-spacing: 0.08em;
}

.as-core-card h3 {
  margin: 28px 16px 0;
  font-family: "Lucida Bright", Georgia, serif;
  font-size: 27px;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.as-core-card p {
  margin: 14px 16px 20px;
  color: #374448;
  font-size: 14px;
  line-height: 1.55;
}

.as-card-test {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--as-rule);
}

.as-card-test b {
  padding: 10px 8px;
  border-right: 1px solid var(--as-rule);
  color: var(--as-muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.as-card-test b:last-child { border-right: 0; }

.as-article-cap {
  padding: 26px 28px 34px;
  border: 1px solid var(--as-rule);
  background: var(--as-panel);
}

.as-article-back { margin-top: 16px; font-size: 14px; color: var(--as-muted); }
.as-article-back a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

.as-coreline-small {
  width: min(520px, 100%);
  height: 22px;
  margin: 34px 0 24px;
}

.as-article-cap h1 {
  max-width: 920px;
  font-size: clamp(42px, 6.8vw, 86px);
  line-height: 0.96;
}

.as-article-meta {
  margin-top: 18px;
  color: var(--as-muted);
  font-size: 13px;
  line-height: 1.45;
}

.as-borehole-report {
  display: grid;
  grid-template-columns: 190px minmax(0, 720px) 230px;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.as-depth-rail,
.as-authority-register,
.as-article-body {
  border: 1px solid var(--as-rule);
  background: var(--as-panel);
}

.as-depth-rail,
.as-authority-register {
  position: sticky;
  top: 18px;
  padding: 18px;
}

.as-depth-rail ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-left: 3px solid var(--as-shale);
}

.as-depth-rail li {
  position: relative;
  padding: 0 0 22px 16px;
  color: var(--as-muted);
  font-size: 12px;
  line-height: 1.35;
}

.as-depth-rail li:before {
  content: "";
  position: absolute;
  left: -7px;
  top: 2px;
  width: 9px;
  height: 9px;
  background: var(--as-oxide);
}

.as-depth-rail span {
  display: block;
  color: var(--as-ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.as-article-body {
  padding: clamp(28px, 5vw, 56px);
}

.as-article-body > *:first-child { margin-top: 0; }
.as-article-body > *:last-child { margin-bottom: 0; }

.as-article-body p,
.as-article-body li {
  color: #263237;
  font-size: 18px;
  line-height: 1.75;
}

.as-article-body h2,
.as-article-body h3 {
  margin: 2.1em 0 0.7em;
  font-family: "Lucida Bright", Georgia, serif;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.as-article-body h2 { font-size: clamp(30px, 4vw, 46px); }
.as-article-body h3 { font-size: 25px; }

.as-article-body blockquote {
  margin: 32px 0;
  padding: 18px 22px;
  border-left: 8px solid var(--as-cobalt);
  background: #eef2ec;
  color: #233035;
}

.as-article-body code {
  padding: 2px 4px;
  background: #e4eae3;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.92em;
}

.as-authority-register h2 { color: var(--as-cobalt); }
.as-authority-register dl { margin: 18px 0 0; }
.as-authority-register div { padding: 13px 0; border-top: 1px solid var(--as-rule); }
.as-authority-register dt { color: var(--as-ink); font-weight: 700; font-size: 13px; }
.as-authority-register dd { margin: 5px 0 0; color: var(--as-muted); font-size: 12px; line-height: 1.45; }

@media (max-width: 980px) {
  .as-strata-list,
  .as-card-grid,
  .as-borehole-report,
  .as-feature,
  .as-bore-premise { grid-template-columns: 1fr; }
  .as-bore-premise p { grid-column: 1; margin-top: 0; }
  .as-strata-list li { min-height: 0; border-right: 0; border-bottom: 1px solid var(--as-rule); }
  .as-strata-list li:last-child { border-bottom: 0; }
  .as-strata-list span { margin-bottom: 18px; }
  .as-depth-rail,
  .as-authority-register { position: static; }
}

@media (max-width: 620px) {
  .as-home,
  .as-article-shell { padding: 14px; }
  .as-masthead,
  .as-strata,
  .as-feature,
  .as-archive,
  .as-bore-premise,
  .as-collapse-warning,
  .as-article-cap { padding: 22px; }
  .as-masthead { min-height: 500px; }
  .as-masthead .as-coreline { left: 22px; right: auto; bottom: 24px; width: calc(100% - 44px); }
  .as-archive-head { display: block; }
  .as-archive-head h2 { margin-top: 8px; }
}