body {
  margin: 0;
  background: #f5f5f5;
  font-family: "Work Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}

main {
  padding: 1rem;
}

.view.hidden {
  display: none;
}

textarea,
input {
  display: block;
  margin: 0.5rem 0;
  width: 100%;
  max-width: 500px;
}

h1 {
  font-family: "Times New Roman", Times, serif;
  font: x-large;
}

:root {
  --ink: #0e5563;
  --ink-soft: #3f7f8b;
  --accent: #ef8354;
  --floor: #cfe6ea;
  --floor-rule: #8ec2ca;
  --wash-1: #f4fafa;
  --wash-2: #dceef1;
}

* {
  box-sizing: border-box;
}

.site-header {
  position: relative;
  height: 150px;
  width: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-image: url("/img/pt-header-figures.svg");
  background: linear-gradient(
    105deg,
    var(--wash-1) 0%,
    #e7f2f4 55%,
    var(--wash-2) 100%
  );
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 24px;
  background: var(--floor);
  border-top: 2px solid rgba(142, 194, 202, 0.55);
  z-index: 0;
}

.brand {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 0 34px;
  padding-bottom: 8px;
}

.wordmark {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav button {
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 9px 14px;
  border: transparent;
  border-radius: 999px;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.site-nav button:hover {
  background: rgba(14, 85, 99, 0.09);
  color: var(--ink);
}

.site-nav button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-nav .login {
  margin-left: 10px;
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}

.site-nav .login:hover {
  background: #db6f3f;
  color: #fff;
}

.header-art {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  background-image: url("https://angelpt.us/img/pt-header-figures.svg");
  background-repeat: repeat-x;
  background-position: right bottom;
  background-size: auto 150px;
  /* soften the cut where the artwork meets the nav */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 110px);
  mask-image: linear-gradient(to right, transparent 0, #000 110px);
}

@media (max-width: 900px) {
  .header-art {
    display: none;
  }
  .brand {
    padding: 0 20px 8px;
  }
  .site-nav {
    flex-wrap: wrap;
    gap: 2px;
  }
  .site-nav button {
    padding: 8px 11px;
    font-size: 14px;
  }
  .wordmark {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.demo {
  max-width: 62ch;
  margin: 56px auto;
  padding: 0 24px;
  font-size: 17px;
  line-height: 1.65;
  color: #37474a;
}

.demo h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

#ratab,
table,
th,
td {
  border: 1px solid green;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
}
