/* Geology Suite — Shared base styles */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--text-main);
  background-color: var(--bg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Paper grain overlay utility */
.surface-parchment {
  background-color: var(--color-parchment);
  color: var(--text-on-light);
  position: relative;
}

.surface-parchment::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* Basalt striation for dark surfaces */
.surface-basalt {
  background-color: var(--color-basalt);
  position: relative;
}

.surface-basalt::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(242, 235, 224, 0.08) 3px,
    rgba(242, 235, 224, 0.08) 4px
  );
}

/* Brass entablature — signature element */
.brass-rule-top {
  border-top: var(--rule-brass) solid var(--color-brass);
}

/* Specimen panel base */
.specimen-panel {
  background: var(--color-shale);
  border: 1px solid var(--border-default);
  border-top: var(--rule-brass) solid var(--color-brass);
  box-shadow: var(--shadow-none);
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-none);
  background: var(--color-brass);
  color: var(--color-ink);
  font-family: var(--font-structure);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration-micro) var(--ease-survey);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-brass-deep);
}

.btn-primary:disabled {
  background: var(--color-slate);
  cursor: not-allowed;
}

/* Secondary button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--color-brass-deep);
  border-radius: var(--radius-none);
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-structure);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--duration-micro) var(--ease-survey),
    border-color var(--duration-micro) var(--ease-survey);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(242, 235, 224, 0.06);
}

.btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Survey stamp badge */
.badge-stamp {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-structure);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-stamp.available {
  border-color: var(--color-brass);
  color: var(--color-brass);
}

.badge-stamp.coming-soon {
  border-color: var(--color-slate);
  color: var(--text-muted);
}

/* Section header — Josefin structure label */
.section-label {
  font-family: var(--font-structure);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-2);
}

/* Stratigraphic loading — no shimmer */
@keyframes strata-draw {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.loading-strata {
  pointer-events: none;
  opacity: 0.75;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 6px,
    rgba(138, 111, 71, 0.15) 6px,
    rgba(138, 111, 71, 0.15) 7px
  );
  animation: strata-draw 1.2s linear infinite;
}

.hidden {
  display: none !important;
}
