* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #ffffff;
  color: #000000;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:visited {
  color: inherit;
}

:root {
  --cell-gap: 14px;
  --cell-pad: 8px;
  --grid-cols: 6;
  --grid-rows: 4;
  --row-header: 54px;
  --row-info: 200px;
  --row-cta: 200px;
  --row-empty: 200px;
  --write-color: #000000;
  --index-bg: rgba(255, 255, 255, 0.88);
  --index-title-size: 10px;
  --index-title-weight: 500;
}

.grid-shell {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  grid-template-rows:
    minmax(var(--row-header), auto)
    minmax(var(--row-info), auto)
    minmax(var(--row-cta), auto)
    minmax(var(--row-empty), auto);
  gap: var(--cell-gap);
  padding: var(--cell-gap);
  min-height: 100vh;
  align-content: start;
  position: relative;
  z-index: 0;
}

.cell {
  padding: var(--cell-pad);
  display: flex;
  align-items: flex-start;
  grid-column: var(--col-start) / span var(--col-span, 1);
  grid-row: var(--row-start) / span var(--row-span, 1);
}

.cell--info {
  background: var(--index-bg);
  color: #111111;
  text-shadow: none;
}

.cell--thin {
  min-height: 40px;
}

.cell-title {
  margin: 0;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.cell-text {
  display: grid;
  gap: 6px;
  width: 100%;
}

.cell-text h2 {
  margin: 0;
  font-size: var(--index-title-size);
  font-weight: var(--index-title-weight);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: left;
}

.cell-text p {
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.1;
}

.nav-list {
  display: grid;
  gap: 2px;
}

.nav-list a {
  color: inherit;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: var(--index-title-size);
  font-weight: var(--index-title-weight);
}

.nav-list a:hover {
  background: #000000;
  color: #ffffff;
  padding: 1px 4px;
}

@keyframes write-on {
  from {
    background-size: 0% 100%;
  }
  to {
    background-size: 100% 100%;
  }
}

.cell:not(.cell--nav):hover .cell-text,
.cell:not(.cell--nav):hover .cell-text * {
  color: transparent;
  background-image: linear-gradient(var(--write-color) 0 0);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  animation: write-on var(--write-speed, 1.2s) steps(18, end) forwards;
}

.cell-text > *:nth-child(1) {
  --write-speed: 0.7s;
}

.cell-text > *:nth-child(2) {
  --write-speed: 1.4s;
}

.cell-text > *:nth-child(3) {
  --write-speed: 1.9s;
}

.cell--cta {
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  justify-content: center;
  align-items: center;
  text-align: center;
  --write-color: #ffffff;
}

.cell--cta h2 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: none;
  color: #ffffff;
  font-size: 12px;
}

.center-link {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  z-index: 1;
}

.center-link img {
  display: block;
  width: min(46vmin, 420px);
  height: auto;
}

.about-page {
  background: #ffffff;
  color: #000000;
}

.about-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--cell-gap);
}

.about-panel {
  width: 33.333vw;
}

.about-panel .cell-text {
  gap: 10px;
}

.about-panel .cell-text h1 {
  margin: 0;
  font-size: var(--index-title-size);
  font-weight: var(--index-title-weight);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.about-home {
  position: fixed;
  top: var(--cell-gap);
  left: var(--cell-gap);
  text-decoration: none;
  color: inherit;
  z-index: 2;
}

.dashboard-back {
  position: fixed;
  top: calc(var(--cell-gap) + 22px);
  left: var(--cell-gap);
  text-decoration: none;
  color: inherit;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 10px;
  opacity: 0.84;
  transition: opacity 120ms ease;
}

.dashboard-back:hover {
  opacity: 1;
}

.form-block {
  border: 1px solid #000000;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.form-block h3 {
  margin: 0;
  font-size: var(--index-title-size);
  font-weight: var(--index-title-weight);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.form-stack {
  display: grid;
  gap: 8px;
}

.form-field {
  display: grid;
  gap: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  font: inherit;
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  padding: 6px 8px;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  font: inherit;
  border: 1px solid #000000;
  background: #000000;
  color: #ffffff;
  padding: 6px 10px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn--ghost {
  background: #ffffff;
  color: #000000;
}

.btn--danger {
  background: #c00000;
  border-color: #c00000;
  color: #ffffff;
}

.status-text {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.billing-readonly {
  border: 1px solid #000000;
  display: grid;
}

.billing-readonly-row {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  gap: 10px;
  padding: 6px 8px;
  border-top: 1px solid #000000;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.billing-readonly-row:first-child {
  border-top: 0;
}

.billing-readonly-row strong {
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  word-break: break-word;
}

.account-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
}

.account-modal[aria-hidden="false"] {
  display: flex;
}

.account-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.account-modal__box {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #ffffff;
  border: 1px solid #000000;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.account-modal__box h3 {
  margin: 0;
  font-size: var(--index-title-size);
  font-weight: var(--index-title-weight);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

@media (max-width: 700px) {
  .billing-readonly-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

.submissions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.submission {
  border-top: 1px solid #000000;
  padding-top: 8px;
  display: grid;
  gap: 4px;
}

.submission-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.submission-meta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.about-home:visited {
  color: inherit;
}

.dashboard-back:visited {
  color: inherit;
}

.bird-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.bird-flight {
  position: absolute;
  width: 64px;
  height: 24px;
}

.bird svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #000000;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (prefers-color-scheme: dark) {
  :root {
    --write-color: #c9c7b3;
    --index-bg: rgba(26, 24, 25, 0.92);
  }

  body,
  .about-page {
    background: #111111;
    color: #c9c7b3;
  }

  .cell--info {
    background: var(--index-bg);
    color: #c9c7b3;
  }

  .nav-list a:hover {
    background: #c9c7b3;
    color: #111111;
  }

  .cell--cta {
    background: #ffffff;
    color: #111111;
    --write-color: #111111;
  }

  .cell--cta h2 {
    color: #111111;
  }

  .form-block {
    border-color: #c9c7b3;
  }

  .form-field input,
  .form-field textarea,
  .form-field select {
    border-color: #c9c7b3;
    background: #1a1819;
    color: #c9c7b3;
  }

  .btn {
    border-color: #c9c7b3;
    background: #c9c7b3;
    color: #111111;
  }

  .btn--ghost {
    background: transparent;
    color: #c9c7b3;
  }

  .submission {
    border-top-color: #c9c7b3;
  }

  .bird svg {
    stroke: #c9c7b3;
  }
}

@media (max-width: 1200px) {
  :root {
    --grid-cols: 4;
    --grid-rows: auto;
    --row-info: 200px;
    --row-cta: 200px;
    --row-empty: 200px;
  }
}

@media (max-width: 960px) {
  :root {
    --grid-cols: 2;
    --grid-rows: auto;
    --row-info: 200px;
    --row-cta: 200px;
    --row-empty: 200px;
  }
}

@media (max-width: 760px) {
  .grid-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .cell {
    min-height: auto;
    grid-column: auto;
    grid-row: auto;
  }

  .cell--info {
    aspect-ratio: auto;
  }

  .about-center {
    padding: var(--cell-gap);
  }

  .about-panel {
    width: 100%;
  }

  .form-block {
    width: 100%;
  }

  .dashboard-back {
    position: static;
    display: inline-block;
    margin: calc(var(--cell-gap) + 20px) var(--cell-gap) 0;
  }
}
