:root {
  --fg: #dcdcdc;
  /* not used */
  --bg: rgba(19, 19, 19, 1);
  --bg-lighter: #252525;
  --bg-dark: rgba(19, 19, 19, 1);
  --bg-headline: #8b6508;
  --link-lighter: #ffea99;
  --content-width: min(100% - 2rem, 980px);
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: clamp(16px, 1vw + 0.75rem, 20px);
  scroll-behavior: smooth;
  scroll-padding-block-start: 10vh;
}

body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  color: var(--fg);
}

main {
  display: flex;
  flex-direction: column;
}

.content {
  width: var(--content-width);
  margin-inline: auto;
}

/* numeronym: d9n: declaration; d8n: definition */
.d9n {
  font-size: 2rem;
  font-weight: 600;
  margin-block: 0;
}
.d8n {
  font-size: 1.15rem;
  font-weight: 400;
  margin-block: .8rem;
}
.d9n_smaller {
  font-size: 1.4rem;
  font-weight: 600;
  margin-block: 0;
}
/* unused */
.d8n_smaller {
  font-size: 1rem;
  font-weight: 400;
  margin-block: .8rem;
}
/* unused */
.prose {
  font-size: 1.2rem;
  font-weight: 400
}
.hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* temporily hide an element */
.hide {
  display: none !important;
}
small {
  color: #909090;
}
/* unused */
u {
  text-decoration-color: gold;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
/* unused */
ul {
  padding-left: 1.2ch;
  margin: 0.3rem;
}
ul li {
  margin-block: 0.35rem;
}
ul li::marker {
  color: gold;
}
ul.positive li::marker {
  content: "+ ";
}
/* unused */
mark {
  background-color: transparent;
  color: gold;
}

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.hero__heading {
  font-size: 2.5rem;
  margin-block: 0;
}
.hero__prose {
  font-size: 3rem;
  font-weight: 150;
  margin-block: 0;
}

.signboard {
  display: flex;
  border: 2px solid gold;
  padding: 0.6rem;
  border-radius: 3px;
  background-color: inherit;
  color: gold;
  font-weight: 500;
  font-size: 1.2rem;
  text-align: center;
  text-decoration: none;
  align-items: center;
  align-self: center;
  margin-block: 50px;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  z-index: 1000;
}
.header-content {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 0.5rem;
  margin: 0 auto;
  box-sizing: border-box;
}
header a {
  width: fit-content;
  text-decoration: none;
  color: inherit;
}
header a:hover {
  color: var(--link-lighter);
}
.logo {
  display: block;
  height: 1.1rem;
  margin: 0;
}
.menu {
  display: flex;
  gap: 0.7rem;
  margin-left: auto;
  font-weight: 300;
  font-size: .8rem;
}
a svg {
  display: inline-block;
  vertical-align: middle;
  height: .9em;
}
[popover] {
  margin: 0;
  inset: auto;
  position-area: bottom;
}
[popover]:popover-open {
  background-color: black;
  color: var(--fg);
  padding: 10px;
  border: 1px var(--fg) solid;
}
.lighter {
  font-weight: 200;
}

/* HEADLINE */
.headline {
  display: flex;
  flex-direction: column;
  background: var(--bg-headline);
  align-items: center;
}
.headline__content {
  text-align: center;
}
.headline__heading {
  font-size: 2.5rem;
  margin-block: 1.2rem;
}

/* PILLAR */
.pillar {
  display: flex;
  flex-direction: column;
  background: var(--bg-lighter);
  align-items: center;
  gap: 2.2rem;
  padding-block: 80px;
}
.pillar__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.pillar__heading {
  font-size: 2rem;
  font-weight: 600;
  margin-block: 0;
  text-align: center;
}
.pillar__option {
  font-size: 1.2rem;
  font-weight: 250;
  text-align: center;
}
.pillar__prose {
  font-size: 1.4rem;
  margin-block: 0;
  text-align: center;
}

/* unused */
.link {
  font-size: 1.1rem;
  color: grey;
  text-decoration: none;
}
.link:hover {
  color: var(--link-lighter);
}

/* WHY */
/* unused */
.why-tag {
  font-size: .8rem;
  font-weight: 300;
  color: var(--fg);
  margin: 0;
}
.why {
  display: flex;
  flex-direction: column;
  background: inherit;
  align-items: center;
  gap: 3rem;
  padding-block: 100px;
}

.pillar__content p {
  margin: 0.5rem 0;
}

/* PORTFOLIO */
.portfolio {
  background-color: var(--bg-lighter);
  padding-block: 100px;
  text-align: center;
}
.portfolio__heading {
  font-size: 1.5rem;
  font-weight: 250;
  margin-block: 0 20px;
  margin-bottom: 100px;
}
.portfolio__box {
  display: flex;
  flex-wrap: wrap;
  row-gap: clamp(100px, 15vw, 120px);
  column-gap: clamp(30px, 15vw, 70px);
  justify-content: space-evenly;
}
.portfolio button {
  all: unset;
  cursor: pointer;
}
.portfolio__logo {
  display: flex;
  width: 140px;
  height: 25px;
  align-items: center;
  justify-content: center;
}
.portfolio__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  filter: grayscale(1) invert(1);
  opacity: .75;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2rem;
  font-weight: 400;
  font-size: .75rem;
  background-color: var(--bg-dark);
  padding: .3rem 0;
}
