:root {
  --ink: #1a222c;
  --muted: #5a6570;
  --paper: #f4f6f8;
  --stage: #14202c;
  --brass: #c4a35a;
  --door: #b42318;
  --line: #c5ced6;
  --focus: #14202c;
  --space: clamp(1.15rem, 4vw, 2.4rem);
  --measure: 40rem;
  --display: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
}

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

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

a {
  color: var(--stage);
}

a:hover {
  color: var(--door);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-200%);
  background: var(--stage);
  color: var(--paper);
  padding: 0.75rem 1rem;
  min-height: 44px;
  text-decoration: none;
  z-index: 3;
}

.skip:focus {
  transform: none;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--space);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.desk {
  display: none;
}

.desk ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desk a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  text-decoration: none;
}

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu ul {
  margin: 0.4rem 0 0;
  padding: 0.5rem 0;
  list-style: none;
  position: absolute;
  right: 0;
  min-width: 14rem;
  background: var(--paper);
  border: 1px solid var(--line);
  z-index: 2;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  text-decoration: none;
}

@media (min-width: 52rem) {
  .desk {
    display: block;
  }

  .menu {
    display: none;
  }
}

.wrap {
  width: min(68rem, calc(100% - 2 * var(--space)));
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
  flex: 1;
}

.hero {
  max-width: 36rem;
  padding: 1.5rem 0 2.5rem;
}

.mark {
  margin: 0 0 1.25rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  color: var(--muted);
}

.mark span:nth-child(odd) {
  color: var(--brass);
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 7vw, 3.35rem);
}

h2 {
  margin: 2.5rem 0 0.85rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 34rem;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1rem;
}

.crumb {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.crumb a {
  text-decoration: none;
}

.directory {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.directory li {
  border-bottom: 1px solid var(--line);
}

.directory a {
  display: grid;
  gap: 0.2rem;
  padding: 1.05rem 0;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}

.directory a:hover h3 {
  color: var(--door);
}

.directory p {
  margin: 0;
  color: var(--muted);
}

.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
}

.facts th,
.facts td {
  text-align: left;
  padding: 0.7rem 0.6rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.facts th {
  font-weight: 600;
  width: 9.5rem;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.visit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0.5rem 0 0;
  font-weight: 600;
}

.lot {
  margin: 1.5rem 0 2rem;
  width: min(36rem, 100%);
}

.lot svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  background: #dce6ea;
}

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

footer {
  padding: 1.15rem var(--space) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.foot {
  width: min(68rem, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* v0.3.0 — screenshots, featured platforms, services */
h2 {
  font-family: var(--display);
  font-weight: 600;
  margin: 3rem 0 1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

.hero-cta .visit,
.feature .visit {
  background: var(--stage);
  color: var(--paper);
  padding: 0 1.1rem;
  border-radius: 999px;
  text-decoration: none;
}

.hero-cta .visit:hover,
.feature .visit:hover {
  background: var(--door);
  color: #fff;
}

.ghost {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--stage);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.hero-shots {
  position: relative;
  margin: 0 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.hero-shots img,
.feature-visual img,
.screen img,
.thumb img {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(20, 32, 44, 0.55);
  background: #fff;
}

.hero-shots img:nth-child(n + 2) {
  display: none;
}

@media (min-width: 52rem) {
  .hero-shots {
    grid-template-columns: 1.15fr 1fr 0.32fr;
    align-items: end;
  }
  .hero-shots img:nth-child(n + 2) {
    display: block;
  }
  .hero-shots img:nth-child(2) {
    transform: translateY(1.5rem);
  }
}

.notice {
  margin: 1.5rem 0 0.5rem;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--brass);
  background: #fff;
  border-radius: 6px;
}

.notice h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.notice p {
  margin: 0;
}

.feature {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.feature h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
}

.feature .lede {
  margin: 0 0 0.75rem;
}

.sigil {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #2b4257, var(--stage));
  color: var(--brass);
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-align: center;
  padding: 1rem;
}

@media (min-width: 52rem) {
  .feature {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
  .feature:nth-of-type(even) .feature-visual {
    order: 2;
  }
}

.directory.cards,
.directory.ask-grid {
  display: grid;
  gap: 1rem;
  border-top: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

.directory.cards li,
.directory.ask-grid li {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.directory.cards a {
  padding: 0 0 1rem;
}

.directory.cards h3,
.directory.cards p {
  padding: 0 1rem;
}

.thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 0 0 0.75rem;
}

.thumb img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.directory.cards a:hover .thumb img {
  transform: scale(1.03);
}

.thumb.blank {
  display: grid;
  place-items: center;
  background: var(--stage);
  color: var(--brass);
  font-family: var(--display);
  font-size: 3rem;
}

.directory.ask-grid li {
  padding: 1rem 1.1rem 0.5rem;
}

.directory.ask-grid h3 {
  margin: 0.15rem 0 0.35rem;
}

.directory.ask-grid p {
  margin: 0 0 0.6rem;
}

.tag {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--door) !important;
  font-weight: 600;
}

.ask {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.gallery {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.screen {
  margin: 0;
}

.screen figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

@media (min-width: 52rem) {
  .gallery {
    grid-template-columns: 1fr 0.28fr;
    align-items: start;
  }
  .gallery .screen:nth-child(n + 3) {
    grid-column: 1 / -1;
  }
}

/* v0.3.0 — photography */
.photo,
.ask-photo,
.wide-photo img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.photos {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  margin: 0 0 2rem;
}

.photos figure,
.wide-photo {
  margin: 0;
}

.photo {
  aspect-ratio: 3 / 2;
  border-radius: 10px;
}

.wide-photo {
  margin: 1.25rem 0 1.5rem;
}

.wide-photo img {
  aspect-ratio: 21 / 9;
  border-radius: 10px;
}

.wide-photo figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.directory.ask-grid li:has(.ask-photo) {
  padding-top: 0;
}

.ask-photo {
  aspect-ratio: 16 / 9;
  margin: 0 -1.1rem 0.85rem;
  width: calc(100% + 2.2rem);
  max-width: none;
}
