/* Personal project index. Independent of the Sundial product pages. */
:root {
  --paper: #f6f5ee;
  --blue: #243cc8;
  --ink: #22251e;
  --line: #d7d9cc;
  --shell: min(1280px, 100% - 96px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--blue);
  color: var(--paper);
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 7px;
}
.shell {
  width: var(--shell);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -100px;
  padding: 14px;
  background: var(--blue);
  color: white;
  z-index: 10;
}
.skip-link:focus {
  top: 10px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 25px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -5px;
  line-height: 1;
  color: var(--blue);
}
.wordmark span {
  color: var(--ink);
}
nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
nav a:hover,
.project-footnote a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero {
  padding-top: 35px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  column-gap: 60px;
}
.intro-line {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
}
.intro-line p {
  margin: 0;
}
h1 {
  font-family: "Manrope", sans-serif;
  color: var(--blue);
  font-size: clamp(60px, 6.7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.045em;
  word-spacing: 0.04em;
  line-height: 1.12;
  margin: 29px 0 20px;
}
.building {
  position: relative;
  white-space: nowrap;
}
.building svg {
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 22px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
}
.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
  padding-bottom: 18px;
}
.hero-bottom p {
  font-size: 19px;
  line-height: 1.55;
  margin: 0;
  color: #56594e;
}
.explore {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.explore span {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  width: 43px;
  height: 43px;
  border-radius: 50%;
  font-size: 20px;
  transition:
    background 0.2s,
    color 0.2s;
}
.explore:hover span {
  background: var(--blue);
  color: white;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 21px 0;
  color: #56594e;
  font-size: 12px;
}
.section-label h2 {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-label > span {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.project {
  min-width: 0;
  overflow: hidden;
  border-radius: 5px;
}
.sundial {
  background: #1e252a;
  color: #faf8f2;
}
.cogniplane {
  background: #e1eac3;
  color: #243124;
}
.project-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 32px 0;
}
.project-main:focus-visible {
  outline-offset: -5px;
}
.project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.project-arrow {
  font-size: 26px;
  transition: transform 0.25s;
}
.project-main:hover .project-arrow {
  transform: translate(3px, -3px);
}
.project h3 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(35px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.055em;
  margin: 22px 0 13px;
  line-height: 1.2;
}
.sun-symbol {
  font-size: 39px;
  color: #ebaf5e;
  margin-left: 16px;
  vertical-align: 4px;
}
.project-description {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  min-height: 48px;
}
.sundial .project-description {
  color: #c6ccce;
}
.cogniplane .project-description {
  color: #4b5944;
}
.sundial-art,
.cogniplane-details {
  min-height: 300px;
  position: relative;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sundial-art {
  margin-inline: -14px;
}
.sundial-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px #0004);
  transition: transform 0.4s;
}
.project-main:hover .sundial-art img {
  transform: translateY(-4px);
}
.project-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  padding: 23px 0;
  margin-top: 18px;
  border-top: 1px solid #ffffff30;
}
.cogniplane .project-bottom {
  border-color: #24312430;
}
.project-bottom > span:last-child {
  font-weight: 600;
}
.project-footnote {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 19px;
  font-size: 12px;
  color: #606454;
}
.writing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 22px;
  padding: 42px;
  margin-block: 45px;
  background: var(--blue);
  color: var(--paper);
}
.writing-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.writing-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.cogniplane-details {
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-block: 25px;
}
.project-statement {
  font-family: "Manrope", sans-serif;
  font-size: clamp(27px, 3vw, 43px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0;
}
.cogniplane-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  font-size: 14px;
}
.cogniplane-details li {
  border-top: 1px solid #24312430;
  padding-block: 12px;
}
.asterisk {
  font-size: 65px;
  line-height: 1;
  color: var(--blue);
}
.writing h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0;
}
.writing-copy {
  padding-left: 32px;
}
.writing-copy p {
  margin: 0 0 17px;
  color: var(--paper);
  font-size: 16px;
}
.background {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 45px;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.background h2 {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
}
.background p {
  margin: 0;
  max-width: 66ch;
  font-size: 17px;
  line-height: 1.7;
  color: #56594e;
}
.background-copy p + p {
  margin-top: 18px;
}
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-list li + li {
  border-top: 1px solid #ffffff55;
}
.article-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-block: 18px;
  font-size: 17px;
  line-height: 1.5;
}
.article-list a:hover > span:first-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-list a > span:last-child {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .background {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 30px;
    padding-top: 24px;
  }
  .background p {
    font-size: 15px;
  }
  .article-list a {
    font-size: 16px;
  }
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-block: 25px 30px;
  font-size: 12px;
  color: #606454;
}
footer nav {
  font-size: 12px;
  gap: 23px;
}
@media (min-width: 1500px) {
  .hero {
    padding-block: 40px;
  }
}
@media (max-width: 900px) {
  :root {
    --shell: calc(100% - 48px);
  }
  .project-main {
    padding: 24px 22px 0;
  }
  .hero {
    column-gap: 30px;
  }
  .sundial-art {
    min-height: 0;
    flex: 1;
  }
  .desktop-break {
    display: none;
  }
  .project-bottom {
    font-size: 11px;
  }
  .writing-copy {
    padding-left: 22px;
  }
  .footer-place {
    display: none;
  }
}
@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 36px);
  }
  .masthead {
    padding-block: 14px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .wordmark {
    font-size: 36px;
  }
  nav {
    gap: 16px;
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .hero {
    display: block;
    padding-top: 24px;
    padding-bottom: 28px;
  }
  .masthead nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .intro-line {
    font-size: 12px;
  }
  h1 {
    font-size: clamp(42px, 10.7vw, 68px);
    margin-block: 22px 30px;
  }
  .building svg {
    bottom: -9px;
    height: 15px;
  }
  .hero-bottom p {
    font-size: 15px;
  }
  .hero-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 0;
  }
  .explore {
    font-size: 12px;
    gap: 10px;
  }
  .explore span {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .project-main {
    padding: 24px 25px 0;
  }
  .project h3 {
    font-size: 40px;
    margin-top: 12px;
  }
  .sundial-art {
    min-height: 0;
    margin-top: 22px;
  }
  .cogniplane-details {
    min-height: 0;
    gap: 20px;
    margin-top: 15px;
    padding-block: 10px;
  }
  .project-statement {
    font-size: 30px;
  }
  .project-bottom {
    font-size: 12px;
  }
  .project-footnote {
    flex-direction: column;
    gap: 10px;
    line-height: 1.5;
  }
  .writing {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px;
    margin-block: 30px;
  }
  .writing-label {
    gap: 15px;
  }
  .asterisk {
    font-size: 48px;
  }
  .writing h2 {
    font-size: 32px;
  }
  .writing-copy {
    padding-left: 0;
  }
  .writing-copy p {
    font-size: 15px;
  }
  footer {
    gap: 20px;
    font-size: 10px;
    flex-wrap: wrap;
  }
  footer nav {
    font-size: 14px;
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
