/* Superlative Advisory. Rising slope: every band meets the next on one
   straight diagonal that climbs from left to right. Olive, bark and
   bubblegum on porcelain and pumice. Anybody italic over Be Vietnam Pro. */

:root {
  --olive: #5A6619;
  --olive-deep: #46500F;
  --bark: #1C1F0E;
  --pink: #FF93C8;
  --porcelain: #FAFAF6;
  --pumice: #ECEAE2;
  --muted: #55584A;
  --rule: #D8D6CB;
  --rise: clamp(26px, 4vw, 60px);
  --display: "Anybody", "Arial Narrow", sans-serif;
  --text: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gut: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--bark);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--olive-deep); text-decoration-color: var(--pink); text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--bark); color: var(--porcelain); padding: .75rem 1rem; z-index: 50;
}
.skip:focus { left: var(--gut); top: var(--gut); }

main:focus { outline: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
@media (min-width: 700px) { :root { --gut: 32px; } }

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 115%;
  font-variation-settings: "wdth" 115;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: .4em; }

/* Every h2 opens with one bubblegum slash leaning with the italic. */
h2::before {
  content: "";
  display: inline-block;
  width: .2em;
  height: .82em;
  margin-right: .42em;
  background: var(--pink);
  transform: skewX(-18deg) translateY(.06em);
}
h2.plain::before, .foot h2::before { content: none; }

p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.55; max-width: 38em; }
.label {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.muted { color: var(--muted); }
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }

/* ---------- header ---------- */

.top {
  position: relative;
  z-index: 3;
  background: var(--olive);
  color: var(--porcelain);
  padding: .9rem 0 calc(var(--rise) + .9rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--rise)), 0 100%);
}
.top-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--porcelain); text-decoration: none;
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-variation-settings: "wdth" 115; font-size: 1.2rem; min-height: 44px;
}
.brand:hover { color: var(--porcelain); }
.brand .mark { width: 36px; height: 36px; background: var(--porcelain); padding: 2px; }

.menu {
  min-height: 44px; min-width: 64px; padding: 0 1rem;
  background: transparent; color: var(--porcelain);
  border: 1.5px solid var(--porcelain); font: 600 .95rem var(--text); cursor: pointer;
}
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 .2rem;
  color: var(--porcelain); text-decoration: none; font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--porcelain); text-decoration: underline; text-decoration-color: var(--pink);
  text-decoration-thickness: 3px; text-underline-offset: .35em;
}

@media (max-width: 859px) {
  .nav { display: none; width: 100%; }
  .nav.open { display: block; }
  .nav ul { padding: .4rem 0 .2rem; border-top: 1px solid rgba(250, 250, 246, .35); }
}
@media (min-width: 860px) {
  .menu { display: none; }
  .nav ul { display: flex; gap: 1.6rem; }
}

/* ---------- bands: the slope ---------- */

.band {
  position: relative;
  margin-top: calc(-1 * var(--rise));
  padding: calc(var(--rise) + 2.8rem) 0 calc(2.6rem + var(--rise));
  clip-path: polygon(0 var(--rise), 100% 0, 100% 100%, 0 100%);
}
.b-porcelain { background: var(--porcelain); }
.b-pumice { background: var(--pumice); }
.b-olive { background: var(--olive); color: var(--porcelain); }
.b-bark { background: var(--bark); color: var(--porcelain); }
.b-olive a, .b-bark a { color: var(--porcelain); text-decoration-color: var(--pink); }
.b-olive a:hover, .b-bark a:hover { color: var(--porcelain); }
.b-olive .label, .b-bark .label, .b-olive .muted, .b-bark .muted { color: #E4E6D2; }
.band.tight { padding-bottom: calc(1.4rem + var(--rise)); }

@media (min-width: 1500px) { :root { --rise: 60px; } }

.split { display: grid; gap: 1.5rem 3.5rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; align-items: start; }
}

/* ---------- hero: the three degrees ---------- */

.hero { padding-top: calc(var(--rise) + 2.2rem); padding-bottom: calc(3rem + var(--rise)); }
.hero h1 { max-width: 15em; }

.climb {
  display: grid;
  gap: .3rem;
  margin: 2.4rem 0 2rem;
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-variation-settings: "wdth" 115;
}
.deg { margin: 0; display: flex; flex-direction: column; line-height: 1; }
.deg-tag {
  font-family: var(--text); font-style: normal; font-weight: 500; font-size: .82rem;
  letter-spacing: .02em; color: var(--muted); margin-bottom: .35rem;
}
.deg-tag em { font-style: italic; color: var(--bark); font-weight: 600; }
.deg-name { overflow-wrap: anywhere; }
.deg-1 { grid-row: 3; justify-self: start; }
.deg-2 { grid-row: 2; justify-self: start; padding-left: 8%; }
.deg-3 { grid-row: 1; justify-self: end; text-align: right; }
.deg-1 .deg-name { font-size: clamp(1.05rem, 2.6vw, 1.7rem); color: var(--muted); font-weight: 700; }
.deg-2 .deg-name { font-size: clamp(1.4rem, 4vw, 2.7rem); color: var(--olive); }
.deg-3 .deg-name { font-size: clamp(1.9rem, 8.4vw, 6rem); letter-spacing: -.02em; white-space: nowrap; }
.deg-3 .deg-tag { align-self: flex-end; }
.dotcom {
  background: linear-gradient(transparent 64%, var(--pink) 64%, var(--pink) 92%, transparent 92%);
  padding: 0 .04em;
}
@media (min-width: 700px) {
  .deg-2 { justify-self: center; padding-left: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .deg { animation: climb .7s cubic-bezier(.2, .7, .2, 1) both; }
  .deg-1 { animation-delay: .1s; }
  .deg-2 { animation-delay: .35s; }
  .deg-3 { animation-delay: .6s; }
  @keyframes climb {
    from { opacity: 0; transform: translate(-28px, 22px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem;
  background: var(--olive); color: var(--porcelain);
  border: 0; font: 600 1rem var(--text); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -4px 0 transparent;
}
.btn:hover { background: var(--olive-deep); color: var(--porcelain); box-shadow: inset 0 -4px 0 var(--pink); text-decoration: none; }
.btn:disabled { opacity: .6; cursor: wait; }
.b-olive .btn, .b-bark .btn { background: var(--porcelain); color: var(--bark); }
.b-olive .btn:hover, .b-bark .btn:hover { background: var(--pumice); color: var(--bark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; }
.link-quiet { font-weight: 600; }

/* ---------- steps: roman numerals ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 2.5rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps.four { grid-template-columns: repeat(4, 1fr); } }
.steps li { border-top: 2px solid currentColor; padding-top: .8rem; }
.rn {
  display: block;
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-variation-settings: "wdth" 115; font-size: 2.6rem; line-height: 1;
  color: var(--olive); margin-bottom: .4rem;
}
.b-olive .rn, .b-bark .rn { color: var(--pink); }
.steps p { margin: 0; }

/* ---------- lists of pairs ---------- */

.pairs { margin: 0; display: grid; gap: 1.4rem; }
.pairs div { border-top: 1px solid var(--rule); padding-top: 1rem; }
.b-olive .pairs div, .b-bark .pairs div { border-color: rgba(250, 250, 246, .3); }
.pairs dt { font-weight: 600; margin-bottom: .25rem; }
.pairs dd { margin: 0; }
@media (min-width: 760px) { .pairs.cols { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2.5rem; } }

/* The comparison table on the degrees page. */
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .8rem .6rem .8rem 0; border-top: 1px solid var(--rule); }
.compare thead th { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.compare td:first-child { font-weight: 600; width: 32%; }
.compare .best { font-weight: 600; }
.table-scroll { overflow-x: auto; }
@media (max-width: 639px) {
  .compare thead { display: none; }
  .compare tr { display: block; border-top: 1px solid var(--rule); padding: .7rem 0; }
  .compare td { display: block; border: 0; padding: .15rem 0; width: auto !important; }
  .compare td[data-h]::before { content: attr(data-h) ": "; color: var(--muted); font-weight: 500; }
}

/* ---------- about ---------- */

.portrait {
  margin: 0;
  max-width: 420px;
}
.portrait picture { display: block; }
.portrait img {
  width: 100%;
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
}
.portrait figcaption { margin-top: .8rem; font-size: .92rem; color: var(--muted); }
.portrait figcaption strong { color: var(--bark); display: block; font-size: 1.05rem; }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 2.5rem 3.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 7fr 5fr; } }
.form { display: grid; gap: 1.1rem; }
.form .two { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .8rem;
  background: var(--porcelain); color: var(--bark);
  border: 0; border-bottom: 2px solid var(--bark); border-radius: 0;
  font: 400 1rem var(--text);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 2px; }
.status { margin: 0; padding: .8rem 1rem; background: var(--porcelain); border-left: 4px solid var(--olive); }
.status.bad { border-left-color: var(--pink); }
.fine { font-size: .88rem; color: var(--muted); margin: 0; }
.side h2 { font-size: 1.3rem; }
.side .pairs { margin-bottom: 1.5rem; }

/* ---------- 404 ---------- */

.lost .deg-3 .deg-name { color: var(--muted); }

/* ---------- footer ---------- */

.foot {
  position: relative;
  margin-top: calc(-1 * var(--rise));
  background: var(--bark);
  color: #D9DBC8;
  padding: calc(var(--rise) + 2.8rem) 0 1.6rem;
  clip-path: polygon(0 var(--rise), 100% 0, 100% 100%, 0 100%);
  font-size: .95rem;
}
.foot a { color: var(--porcelain); text-decoration-color: var(--pink); }
.foot a:hover { color: var(--porcelain); }
.foot-grid { display: grid; gap: 1.8rem 3rem; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 5fr 4fr 3fr; } }
.foot-name {
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-variation-settings: "wdth" 115; font-size: 1.35rem; color: var(--porcelain); margin-bottom: .4rem;
}
.foot-h { font: 600 .8rem var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin: 0 0 .6rem; }
.foot address { font-style: normal; line-height: 1.75; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a { display: inline-flex; min-height: 36px; align-items: center; }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid rgba(250, 250, 246, .18);
  font-size: .85rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
