/* atmosphericdust.com — one page, one column. */

@font-face {
  font-family: "Wasted Year";
  src: url("fonts/Wasted-Year-Regular.woff2") format("woff2"),
       url("fonts/Wasted-Year-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- the font. Change these two lines and the <link> in build.py to swap it. */
  --font: "Newsreader", Georgia, serif;          /* body */
  --font-ui: "Newsreader", Georgia, serif;       /* links, captions */
  --font-display: "Wasted Year", "Newsreader", Georgia, serif;  /* headings */

  --paper: #ffffff;
  --ink: #333333;          /* dark grey body text, not black */
  --muted: #767676;
  --rule: #e4e4e4;
  --accent: #2f6f9f;       /* links: muted blue */
  --accent-dark: #1f4f74;  /* link hover */
  --width: 60rem;
}

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

body {
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 2rem) 4rem;
  max-width: var(--width);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Section headings and the subtitle use the display face; the name stays in
   the text face so it does not compete with the wordmark above it. */
h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;   /* the display face has one weight; bold would be faked */
}

h1 { font-weight: 600; letter-spacing: -0.015em; }

h1 {
  font-size: clamp(2.5rem, 7.5vw, 3.25rem);
  letter-spacing: .01em;
  line-height: 1.05;
  margin: 0 0 .5rem;
}

.subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  color: var(--muted);
  letter-spacing: .02em;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: 1.625rem;
  letter-spacing: .01em;
  margin: 3.5rem 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--rule);
}

h3 { font-size: 1.25rem; margin: 2rem 0 .5rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration-color: rgba(47, 111, 159, .35); text-underline-offset: .15em; }
a:hover { color: var(--accent-dark); text-decoration-color: var(--accent-dark); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.toplinks, .jump {
  font-family: var(--font-ui);
  font-size: .9375rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.jump { margin-bottom: 2rem; }

.photos { display: flex; gap: .75rem; margin: 1.5rem 0 2rem; }
.photos img {
  width: 100%;
  height: clamp(180px, 34vw, 300px);
  object-fit: cover;
  object-position: center 30%;
  border-radius: 2px;
  background: #f0f0ee;
}

ol, ul { margin: 0 0 1rem; padding-left: 1.6rem; }
li { margin-bottom: .6rem; }

ol.pubs li::marker { color: var(--muted); font-size: .875em; }
ol.pubs .authors { color: var(--muted); }
ol.pubs strong { color: var(--ink); font-weight: 600; }
ol.pubs em { font-style: italic; }
ol.pubs .extra { color: var(--muted); }

ul.plain { list-style: none; padding-left: 0; }
ul.plain li { margin-bottom: .9rem; }
ul.plain .when { color: var(--muted); font-size: .9375rem; }

.note { color: var(--muted); font-size: .9375rem; }

/* Links to the other pages — these are navigation, not footnotes, so they
   stay at body size and in the normal ink colour. */
.pointer {
  font-size: 1.0625rem;
  color: var(--ink);
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
  color: var(--muted);
}

@media (max-width: 34rem) {
  .photos { flex-direction: column; }
  .photos img { height: 260px; }
}

@media print {
  body { max-width: none; font-size: 10pt; }
  .jump, .photos { display: none; }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin: 2.5rem 0 0;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
  background: #f0f0ee;
}
.gallery + h2 { margin-top: 1.25rem; }
h2 + .gallery { margin-top: 1rem; }

@media (max-width: 40rem) {
  .videos { grid-template-columns: 1fr !important; }
}

/* The column count is set inline by the build, so the strips keep their
   shape on phones — two images side by side rather than stacked. */

.logo {
  display: block;
  width: 100%;
  max-width: 24rem;
  height: auto;
  margin: 0 0 1.75rem;
}

.videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* overridden inline by the build */
  gap: 1.5rem 1rem;
  margin: 1.5rem 0 0;
  align-items: start;
}
.videos figure { margin: 0; }
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #ebebe8;
  border-radius: 2px;
  overflow: hidden;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.videos figcaption {
  margin-top: .45rem;
  font-size: .9375rem;
  line-height: 1.35;
}
.videos figcaption .when { display: block; color: var(--muted); font-size: .875rem; }

.embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* ---------- contact form ---------- */

.contactform {
  max-width: 34rem;
  margin: 1.5rem 0 0;
}

.contactform label {
  display: block;
  font-size: .9375rem;
  margin: 1.1rem 0 .3rem;
}

.contactform input[type="text"],
.contactform input[type="email"],
.contactform textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .55rem .7rem;
}

.contactform textarea { resize: vertical; min-height: 9rem; }

.contactform input:focus,
.contactform textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* Honeypot: bots fill it, people never see it. */
.botcheck {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
}

.contactform button {
  font-family: var(--font);
  font-size: 1rem;
  margin-top: 1.4rem;
  padding: .55rem 1.4rem;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
}
.contactform button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.contactform button:disabled { opacity: .55; cursor: default; }

.formstatus {
  margin: .9rem 0 0;
  font-size: .9375rem;
  min-height: 1.4em;
  color: var(--muted);
}
.formstatus.ok { color: #1f6b3a; }
.formstatus.err { color: #9a2b1f; }
