/* The home artwork is independent of the live, accessible interface. */
@font-face {
  font-family: AtlasHome;
  src: url('./assets/home-display.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

.home-page {
  --home-display: AtlasHome, var(--display);
}
.home-page {
  overflow-x: clip;
}

.home-page .site-header {
  position: relative;
  z-index: 2;
}

.home-page .brand {
  font-family: var(--home-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-page .header-link {
  color: var(--ink);
  text-decoration: none;
}

.home-page main {
  min-height: 0;
}

.island-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: 'intro scene' 'entry scene';
  column-gap: 50px;
  padding: 64px 0 62px;
}

.island-art {
  position: absolute;
  top: 0;
  right: -38px;
  width: 59%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.island-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 49%;
}

.island-intro {
  grid-area: intro;
}

.island-intro h1 {
  font-family: var(--home-display);
  font-size: clamp(52px, 5.3vw, 72px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: nowrap;
}

.island-intro .lead {
  font-size: 17px;
  line-height: 1.8;
  color: #345953;
  margin-top: 22px;
  max-width: 28em;
}

.island-scene-space {
  grid-area: scene;
  min-height: 475px;
}

.island-entry {
  grid-area: entry;
  margin-top: 52px;
  max-width: 410px;
}

.island-entry .test-meta {
  margin: 0;
  gap: 22px;
  font-size: 14px;
  color: #506b65;
}

.island-entry .test-meta span + span {
  border-left: 1px solid #b7c8bd;
  padding-left: 22px;
}

.island-entry .test-meta svg {
  width: 22px;
  height: 22px;
}

.island-start {
  width: 100%;
  min-height: 60px;
  border-radius: 999px;
  background: #306e66;
  font-family: var(--home-display);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  margin-top: 22px;
  gap: 16px;
}

.island-start svg {
  width: 24px;
  height: 24px;
}

.island-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 9px;
  font-size: 15px;
  margin: 14px auto 0;
}

.island-preview svg {
  width: 16px;
  height: 16px;
}

.island-note {
  margin-top: 6px;
  text-align: center;
  font-size: 12px;
}

.island-entry .home-resume {
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
}

.island-principle {
  position: relative;
  border-top: 1px solid #6d9587;
  padding: 30px 0 32px;
}

.island-principle h2 {
  font-family: var(--home-display);
  font-size: 27px;
  line-height: 1.5;
  font-weight: 800;
}

.island-principle p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.home-page .about-section {
  position: relative;
  margin-top: 12px;
}

@media (min-width: 761px) and (max-width: 1050px) {
  .island-hero { column-gap: 25px; padding-top: 42px; }
  .island-intro h1 { font-size: 55px; }
  .island-entry .test-meta { gap: 12px; font-size: 12px; }
  .island-entry .test-meta span + span { padding-left: 12px; }
  .island-entry .test-meta svg { width: 18px; height: 18px; }
}

@media (max-width: 760px) {
  .home-page .site-header {
    min-height: 56px;
    padding: 12px 20px;
  }
  .home-page .brand { font-size: 21px; gap: 9px; }
  .home-page .brand svg { width: 28px; height: 28px; }
  .home-page .header-link { font-size: 13px; }
  .home-page main { margin: 0 20px; }
  .island-hero { display: block; padding: 4px 0 28px; }
  .island-art {
    top: -61px;
    left: -20px;
    right: auto;
    width: calc(100% + 40px);
    height: auto;
    overflow: visible;
  }
  .island-art img { width: 100%; height: auto; object-fit: initial; }
  .island-intro h1 { font-size: clamp(38px, 11.28vw, 64px); line-height: 1.15; }
  .island-intro .lead {
    font-size: clamp(12px, 3.6vw, 19px);
    line-height: 1.8;
    margin-top: 8px;
    max-width: none;
  }
  .island-scene-space { min-height: 0; height: calc(55vw + 15px); }
  .island-entry { margin-top: 0; max-width: none; }
  .island-entry .test-meta { justify-content: center; gap: 15px; font-size: 12px; }
  .island-entry .test-meta span + span { padding-left: 15px; }
  .island-entry .test-meta svg { width: 21px; height: 21px; }
  .island-start { min-height: 54px; font-size: 20px; margin-top: 16px; }
  .island-preview { margin-top: 2px; font-size: 14px; }
  .island-note { font-size: 11px; margin-top: 4px; }
  .island-principle { padding: 24px 0 23px; }
  .island-principle h2 { font-size: clamp(19px, 5.35vw, 29px); letter-spacing: -.02em; }
  .island-principle p { font-size: 12px; margin-top: 6px; }
  .home-page .about-section { margin-top: 25px; }
}

@media (max-width: 359px) {
  .home-page main { margin: 0 18px; }
  .home-page .site-header { padding-left: 18px; padding-right: 18px; }
  .island-art { left: -18px; width: calc(100% + 36px); }
  .island-entry .test-meta { gap: 12px; font-size: 11px; }
  .island-entry .test-meta span + span { padding-left: 12px; }
}
