/* The Unseamly Place, the.unseamly.place. Palette and type from docs/BRAND.md:
   the title page's fog grey, off-white ink, IBM Plex Serif for everything. */

@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/ibmplexserif.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #151613;
  --ink: #ede8db;
  --rule: #b9b5a3;
  --hover: #383d30;
  --fog: #5c6166;
  --fog-light: #9a9ea0;
  --card: #1f211d;
  --gutter: 16px;
  --measure: 68ch;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 0.15em; }
a:hover, a:focus-visible { background: var(--hover); outline: none; }

h1, h2, h3 { font-weight: 400; margin: 0; }
h2 {
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}
h3 {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rule);
  margin: 2rem 0 0.6rem;
}
p { margin: 0 0 1rem; }

/* Masthead: the wordmark is off-white on transparent, so it stays on the dark ground. */
.masthead {
  padding: 2rem var(--gutter) 1rem;
  text-align: center;
}
.masthead h1 img { margin: 0 auto; width: min(512px, 100%); }
.masthead nav { margin-top: 1rem; }
.masthead nav a {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  min-height: 44px;
  color: var(--rule);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

main { padding: 0 var(--gutter) 3rem; }

/* Hero: the portrait full width, the one-line and the button under it. */
.hero { margin: 0 auto 3rem; max-width: 960px; }
.hero > img { width: 100%; background: var(--fog); }
.hero-text { text-align: center; padding: 1.5rem 0 0; }
.one-line { font-size: 1.35rem; line-height: 1.35; margin: 0 auto 1.25rem; max-width: 30ch; }
.note { color: var(--rule); font-size: 0.95rem; margin-top: 1rem; }

.button {
  display: inline-block;
  min-height: 48px;
  min-width: 14rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}
.button::before { content: "\2013\00a0"; color: var(--rule); }
.button::after { content: "\00a0\2013"; color: var(--rule); }
.button:hover, .button:focus-visible { background: var(--hover); border-color: var(--ink); }

/* Sections sit in one column of about 68ch. */
#what, #press { max-width: var(--measure); margin: 0 auto 3.5rem; }

.features { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.features li {
  padding: 0.75rem 0 0.75rem 1.4rem;
  border-top: 1px solid var(--hover);
  position: relative;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.7rem;
  height: 1px;
  background: var(--rule);
}

/* The lay-by, full width of the measure; the hero is already above. */
.pictures {
  display: grid;
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto 3.5rem;
}
.pictures figure { margin: 0; }
.pictures img { width: 100%; background: var(--fog); }
.pictures figcaption { color: var(--rule); font-size: 0.95rem; padding: 0.5rem 0 0; }
/* Press: a facts table and blurbs set apart as copy to paste. */
table { border-collapse: collapse; width: 100%; margin: 0 0 1rem; }
th, td { text-align: left; vertical-align: top; padding: 0.45rem 0; border-top: 1px solid var(--hover); }
th { color: var(--rule); font-weight: 400; width: 7.5rem; padding-right: 1rem; white-space: nowrap; }
tr:last-child th, tr:last-child td { border-bottom: 1px solid var(--hover); }

.copy {
  background: var(--card);
  border-left: 2px solid var(--rule);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
}
.copy p:last-child { margin-bottom: 0; }

.credits { list-style: none; padding: 0; margin: 0; }
.credits li { padding: 0.5rem 0; border-top: 1px solid var(--hover); color: var(--rule); font-size: 0.95rem; }

footer {
  border-top: 1px solid var(--hover);
  padding: 2rem var(--gutter) 3rem;
  text-align: center;
  color: var(--rule);
  font-size: 0.9rem;
}
footer p { margin: 0 0 0.35rem; }

@media (min-width: 600px) {
  body { font-size: 18px; }
  .one-line { font-size: 1.6rem; }
  .masthead { padding-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none; animation: none; scroll-behavior: auto; }
}
