:root {
  color-scheme: light;
  --pine: #12251f;
  --paper: #f5f3ed;
  --ink: #172720;
  --mint: #d4f0ad;
  --muted: #4e5c53;
  --line: #d8dcd0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 3px solid #467a39; outline-offset: 5px; }
.masthead a:focus-visible { outline-color: var(--mint); }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
.shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }

.skip {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 4;
  padding: .75rem 1rem;
  border-radius: .4rem;
  background: white;
  transform: translateY(-150%);
}

.skip:focus { transform: translateY(0); }
.masthead { background: var(--pine); color: var(--paper); }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
  border-bottom: 1px solid #40534a;
}

.brand, .header nav a { font-size: .9375rem; font-weight: 650; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand-apps { font-weight: 450; color: #bfcec3; }
.brand-mark { flex: none; margin-left: -.25rem; }

.hero {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: clamp(1.75rem, 5vw, 5rem);
  padding-block: clamp(3.25rem, 7vw, 6rem);
}

h1, .directory h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.065em; }
h1 { font-size: clamp(3.25rem, 6.5vw, 6.3rem); line-height: .98; }
h1 em { color: var(--mint); font-weight: inherit; }
.hero-copy > p { max-width: 29ch; margin-top: 1.5rem; color: #c8d5c9; font-size: 1.125rem; line-height: 1.6; }

.button {
  display: inline-block;
  margin-top: 1.75rem;
  padding: .86rem 1.2rem;
  border-radius: 2rem;
  background: var(--mint);
  color: var(--pine);
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: #eeffce; }

.featured {
  position: relative;
  display: grid;
  grid-template-columns: 1fr .93fr;
  isolation: isolate;
  overflow: hidden;
  min-height: 20rem;
  border: 1px solid #62795a;
  border-radius: 1.4rem;
  background: radial-gradient(ellipse at right bottom, #526c3a, transparent 75%), #253e2d;
  transition: border-color .18s ease;
}

.featured:hover, .featured:focus-within { border-color: var(--mint); }
.featured-copy { padding: 1.65rem 0 1.65rem 1.65rem; align-self: center; z-index: 1; }
.label { font-size: .875rem; font-weight: 650; }
.featured .label { margin-bottom: 1.45rem; color: var(--mint); }
.app-icon { flex: none; object-fit: contain; border-radius: 23%; }
.featured-icon { margin-bottom: .8rem; }
.featured h2 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -.04em; }
.featured h2 a, .app-card h3 a { text-decoration: none; }
.featured h2 a::after, .app-card:not(.app-card-platforms) h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.featured h2 a:focus-visible, .app-card:not(.app-card-platforms) h3 a:focus-visible { outline: none; }
.featured h2 a:focus-visible::after { outline: 3px solid var(--mint); outline-offset: -5px; }
.featured-copy > p:not(.label) { margin-top: .45rem; max-width: 19ch; color: #e0e8dc; line-height: 1.5; }
.featured-link { display: inline-block; margin-top: .95rem; font-size: .875rem; font-weight: 650; text-decoration: underline; text-underline-offset: .24em; }

.featured-art {
  align-self: stretch;
  position: relative;
  background: repeating-radial-gradient(ellipse at 67% 62%, transparent 0 17px, #def7c019 18px 19px, transparent 20px 28px);
}

.featured-art img {
  position: absolute;
  top: 2.9rem;
  left: 11%;
  width: min(82%, 10rem);
  height: auto;
  border: .3rem solid #142720;
  border-radius: 1.2rem;
  box-shadow: 0 1rem 2rem #08140e70;
  transform: rotate(9deg);
}

.directory { padding-block: clamp(2.75rem, 6vw, 5rem); }
.directory h2 { margin-bottom: 1.55rem; font-size: clamp(2.7rem, 5vw, 4.25rem); line-height: 1; }

.app-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.app-card {
  position: relative;
  display: flex;
  gap: .95rem;
  padding: 1.125rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fffef9;
  transition: border-color .18s ease, background-color .18s ease;
}

.app-card:hover, .app-card:focus-within { border-color: #78916f; background: #fafff2; }
.app-card h3 a:focus-visible::after { outline: 3px solid #467a39; outline-offset: 2px; }
.app-card .label { color: #46643d; }
.app-card h3 { margin-top: .22rem; font-size: 1.22rem; letter-spacing: -.035em; }
.summary { margin-top: .42rem; color: var(--muted); line-height: 1.45; }
.destination { display: block; margin-top: .85rem; color: #365332; font-size: .875rem; font-weight: 650; overflow-wrap: anywhere; }
.app-card:hover .destination, .app-card:focus-within .destination { text-decoration: underline; }
.app-card > div { min-width: 0; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.45rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9375rem;
}

@media (max-width: 62rem) {
  .app-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .featured { grid-template-columns: 1fr .85fr; }
  .featured-art img { left: 16%; top: 1.8rem; width: min(73%, 10rem); }
}

@media (max-width: 36rem) {
  .shell { width: calc(100% - 2rem); }
  .header { min-height: 4.15rem; }
  .hero { padding-top: 2.65rem; }
  .featured { min-height: 18rem; }
  .featured-copy { padding: 1.15rem 0 1.15rem 1.15rem; }
  .featured .label { margin-bottom: .85rem; }
  .app-list { grid-template-columns: minmax(0, 1fr); }
  .app-card .app-icon { width: 3.25rem; height: 3.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .app-card, .featured { transition: none; }
}

.aurora-icon { padding: .3rem; background: #14223c; }
.hosting-icon { padding: .3rem; border: 1px solid var(--line); background: white; }
.platform-links { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: .85rem; }
.platform-links a { color: #365332; font-size: .875rem; font-weight: 650; }

.app-card-platforms h3 a:hover { text-decoration: underline; }
