@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap");

 :root {
  --page-bg: #ffffff;
  --page-fg: #000000;
  --muted-fg: #7c7c7c;
  --label-fg: #000000;
  --meta-fg: rgba(0, 0, 0, 0.52);
  --footer-meta-fg: rgba(0, 0, 0, 0.42);
  --hover-fill: rgba(28, 117, 190, 0.045);
  --link-strong: rgba(0, 0, 0, 0.42);
  --link-accent: rgba(28, 117, 190, 0.45);
  --link-accent-text: #1c75be;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.36;
  overflow-x: hidden;
  transition: background-color 320ms ease, color 320ms ease;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(320px, 1fr);
  align-items: stretch;
  opacity: 0;
  animation: page-fade 420ms ease forwards;
}

.content {
  width: 100%;
  padding: 52px 28px 36px 28px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
}

.header-block {
  flex-shrink: 0;
}

.content-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.content-body__gap--top {
  flex: 1;
  min-height: 0;
}

.content-body__gap--bottom {
  flex: 2;
  min-height: 0;
}

.image-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--page-bg);
  min-height: 100vh;
  transition: background-color 320ms ease;
}

.ascii-frame {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  border: 0;
  display: block;
  background: var(--page-bg);
  transition: background-color 320ms ease;
}

h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.04em;
  font-weight: 760;
}

.location {
  margin: 2px 0 1.1em 0;
  font-size: 0.8em;
}

.location-label,
.location-meta {
  display: inline;
}

.location-divider {
  display: inline;
}

.weather {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.weather.is-loaded {
  opacity: 1;
}

.block {
  margin: 0 0 1.75em 0;
}

.label,
.label-inline {
  font-weight: 700;
}

.label {
  margin: 0 0 0.18em 0;
  font-size: 0.92em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--label-fg);
}

.line {
  margin: 0;
  line-height: 1.34;
  padding: 2px 3.5px;
  margin-top: -2px;
  margin-bottom: -2px;
  margin-left: -3.5px;
  margin-right: -3.5px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  font-weight: 400;
  font-size: 0.98em;
}

@media (hover: hover) {
  .line:hover {
    background-color: var(--hover-fill);
  }

  .footer a:hover {
    background-color: transparent;
  }
}

.line + .line {
  margin-top: 0.16em;
}

.line--support {
  max-width: 34ch;
  font-size: 0.84em;
  line-height: 1.42;
}

.logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.86em;
  height: 0.86em;
  margin: 0 0.14em 0 0.14em;
  vertical-align: middle;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.logo-wrapper.has-image {
  opacity: 0.92;
  visibility: visible;
}

.logo {
  width: 1em;
  height: 1em;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.logo--tundra {
  object-position: center 34%;
}

.muted {
  color: var(--muted-fg);
}

.company-link {
  color: inherit;
  text-decoration: none;
  display: inline;
}

.line-link {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.line-link:hover {
  border-color: var(--link-strong);
}

.company-name {
  margin: 0;
  font-weight: 520;
}

.company-link .logo-wrapper {
  transition: opacity 0.25s ease;
  transform: translateY(-1px);
}

.company-link:hover .logo-wrapper {
  transform: translateY(-1px);
}

.company-years {
  margin-left: 0.15em;
  font-weight: 400;
  color: var(--meta-fg);
  font-size: 1em;
}

.footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.16em;
  line-height: 1.4;
  font-size: 0.78em;
}

.footer::before {
  content: "";
  display: block;
  flex: 1 1 0;
  min-height: 0;
  max-height: 3.2em;
}

.footer-line {
  display: block;
}

.footer-line--secondary {
  font-size: 0.84em;
  color: var(--footer-meta-fg);
}

.footer a {
  color: inherit;
  text-decoration: none;
  padding: 2px 3.5px;
  margin: -2px -3.5px;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer a:hover {
  border-color: var(--link-accent);
  color: var(--link-accent-text);
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
  }

  .image-panel {
    order: -1;
    min-height: clamp(260px, 34vh, 420px);
  }

  .ascii-frame {
    min-height: clamp(260px, 34vh, 420px);
  }

  .content {
    padding: 24px 18px 30px 22px;
    max-width: none;
  }

  .content-body__gap--top {
    min-height: 0.7em;
  }

  .content-body__gap--bottom {
    min-height: 1.2em;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .content {
    padding: 24px 18px 30px;
  }

  h1 {
    font-size: 24px;
  }

  .location {
    margin-bottom: 1.2em;
  }

  .block {
    margin-bottom: 1.18em;
  }

  .line {
    line-height: 1.38;
  }

  .footer::before {
    max-height: 2.8em;
  }

}

@keyframes page-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
