/* Unnatural History Museum: static rebuild of the Weebly site (Nov 2026) */
:root {
  --ink: #2a2a2a;
  --heading: #4a4a4a;
  --on-dark: #cfcfcf;
  --on-dark-heading: #ececec;
  --accent: #e0782f;
  --panel: #2f2f2f;
  --pad-x: clamp(24px, 6vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(680px, 100% - 2 * var(--pad-x)); margin: 0 auto; }

h1, h2 { font-weight: 700; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.4vw, 44px); color: var(--heading); text-wrap: balance; }
/* Short orange rule above section headings, echoing the bar in the logo */
h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 22px;
  background: var(--accent);
}
p { margin: 0 0 1em; text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  padding: 16px 30px;
  border: 1px solid #111;
  background: transparent;
  color: #111;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover, .btn:focus-visible { background: #111; color: #fff; }
.btn--light { background: #fff; border-color: #fff; }
.btn--light:hover, .btn--light:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #ebebeb;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero .wrap { position: relative; width: min(1100px, 100% - 2 * var(--pad-x)); padding-left: clamp(0px, 14vw, 160px); }
.hero h1 { margin: 0; }
.hero h1 img { width: min(437px, 78vw); }
.hero .btn { margin-top: clamp(48px, 12vh, 140px); margin-left: 9px; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-right: 2px solid rgba(0,0,0,.45);
  border-bottom: 2px solid rgba(0,0,0,.45);
  transform: rotate(45deg) scale(.55);
}

/* Phones: logo sits over the white wall at the top, the fish shows below it */
@media (max-width: 700px) {
  .hero { align-items: flex-start; background: linear-gradient(#e4e4e4, #eeeeee 45%, #f1f1f1); }
  .hero > img {
    top: auto;
    height: 60%;
    object-position: 74% 30%;
    -webkit-mask-image: linear-gradient(transparent 0, #000 18%);
    mask-image: linear-gradient(transparent 0, #000 18%);
  }
  .hero .wrap { padding: 12svh 0 0; }
  .hero h1 img { width: min(300px, 76vw); }
  .hero .btn { margin-top: 28px; margin-left: 6px; background: #111; border-color: #111; color: #fff; }
  .hero > img { object-position: 84% 30%; }
}

/* Photo bands: fixed-image parallax. clip-path + position:fixed works in iOS Safari,
   where background-attachment: fixed is ignored. */
.band {
  position: relative;
  height: 88vh;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  background: #e9e9e9;
}
.band img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
}
/* Phones (portrait): a pinned full-screen image would crop each photo to a sliver, so the
   photo stays nearly whole and drifts a little as you scroll (transform set in forms.js). */
@media (max-width: 700px) {
  .band { height: 66vw; overflow: hidden; }
  .band img {
    position: absolute;
    top: -9vw;
    height: calc(66vw + 18vw);
    will-change: transform;
  }
}

/* Dark texture text panels */
.panel {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: clamp(80px, 12vh, 120px) 0;
  background: var(--panel) url("/img/texture-dark.jpg") center / cover;
  color: var(--on-dark);
}
.panel h2 { color: var(--on-dark-heading); }
.panel a { color: var(--on-dark-heading); font-weight: 600; }
.panel a:hover { color: var(--accent); }
.panel .plain-list { list-style: none; padding: 0; margin: 0; font-size: clamp(18px, 2vw, 20px); }
.panel .plain-list li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.panel .plain-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.panel address { font-style: normal; font-size: clamp(18px, 2vw, 20px); line-height: 1.7; }
.panel .lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.65; }
@media (max-width: 700px) { .panel { min-height: 0; } }

/* Gentle fade-in as sections scroll into view (only when JS runs and motion is OK) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Mailing list */
.signup {
  padding: clamp(88px, 14vh, 140px) 0;
  background: #c4c4c4 url("/img/texture-light.jpg") center / cover;
  color: #2d2d2d;
}
.signup h2 { color: #2d2d2d; margin-bottom: .3em; }
.signup .lede { font-size: 19px; }
.signup .inline { display: flex; gap: 0; max-width: 480px; }
.signup .inline input[type=email] { margin: 0; max-width: none; flex: 1; border-right: 0; border-color: #555; }
.signup .inline .btn { flex: none; background: #111; color: #fff; border-color: #111; }
.signup .inline .btn:hover { background: var(--accent); border-color: var(--accent); }
.signup .after { margin-top: 18px; }
@media (max-width: 480px) {
  .signup .inline { flex-direction: column; }
  .signup .inline input[type=email] { border-right: 1px solid #555; margin-bottom: 12px; }
}

/* Instagram */
.insta { padding: clamp(72px, 12vh, 112px) 0 clamp(88px, 14vh, 128px); text-align: center; }
.insta .follow {
  display: inline-block;
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 28px;
}
.insta .follow:hover { color: var(--accent); }
.insta svg { width: 20px; height: 20px; display: block; margin: 0 auto 10px; }
.insta img { width: min(560px, 100% - 2 * var(--pad-x)); margin: 0 auto; transition: transform .4s ease; }
.insta a:hover img { transform: scale(1.015); }

/* Forms */
.form { margin-top: 28px; }
.form .req-note { font-family: Montserrat, Helvetica, Arial, sans-serif; font-size: 11px; font-style: italic; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 16px; }
.form .req { color: #c62828; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; max-width: 480px; }
.form label {
  display: block;
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.form input[type=text], .form input[type=email], .form textarea {
  display: block;
  width: 100%;
  max-width: 480px;
  font: 16px Montserrat, Helvetica, Arial, sans-serif; /* 16px stops iOS zooming in on focus */
  padding: 12px 12px;
  margin: 0 0 22px;
  border: 1px solid #9a9a9a;
  border-radius: 0;
  background: #fff;
  color: #000;
  -webkit-appearance: none;
  appearance: none;
}
.form input:focus, .form textarea:focus { border-color: #111; outline: 2px solid var(--accent); outline-offset: 0; }
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .status { margin: 14px 0 0; font-weight: 600; }
.form .status:empty { margin: 0; }
.form .btn[type=submit] { background: #111; border-color: #111; color: #fff; }
.form .btn[type=submit]:hover, .form .btn[type=submit]:focus-visible { background: var(--accent); border-color: var(--accent); }
.form .btn[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 560px) {
  .form .row { grid-template-columns: 1fr; }
  .form .btn { width: 100%; padding: 18px 20px; }
}

/* Inner pages */
.page-banner {
  position: relative;
  height: 42vh;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ddd;
}
.page-banner > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.35); }
.page-banner a { position: relative; z-index: 1; }
.page-banner a img { width: min(340px, 72vw); }
.page-main { padding: clamp(56px, 9vh, 88px) 0 clamp(88px, 14vh, 128px); }
.back { display: inline-block; margin-top: 32px; font-size: 15px; }

/* Archive table */
.hours { width: 100%; border-collapse: collapse; margin: 32px 0 40px; font-size: 16px; }
.hours th, .hours td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid #ddd; vertical-align: top; }
.hours th { font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.map { width: 100%; height: 360px; border: 0; display: block; }

/* Footer */
.site-footer { background: #1f1f1f; color: #9a9a9a; padding: 30px var(--pad-x); font-size: 14px; text-align: center; }
.site-footer p { margin: 0; }
.site-footer a { color: #d6d6d6; }
.site-footer a:hover { color: var(--accent); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }
