@font-face {
  font-family: Barlow;
  src: url("assets/barlow-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("assets/barlow-semibold.woff") format("woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-black.woff") format("woff");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f0e2;
  --ink: #10382a;
  --muted: #475b4c;
  --orange: #e95710;
  --rule: #a4ac98;
  --mono: "IBM Plex Mono", monospace;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper) url("assets/paper.png") repeat;
  color: var(--ink);
  font: 400 1rem/1.5 Barlow, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { color: white; background: #874017; }

.page {
  width: min(91%, 94rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.masthead, .footer, .preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.masthead {
  min-height: 6rem;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.055em;
}

.wordmark img { width: 2rem; height: auto; mix-blend-mode: multiply; }

.domain, .footer, figcaption, .destination {
  font-family: var(--mono);
}

.domain { font-size: .9rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3.25rem);
  align-items: center;
  padding-block: clamp(3.75rem, 8vh, 7rem);
}

.message::before {
  content: "";
  display: block;
  width: 2.8rem;
  height: .32rem;
  background: var(--orange);
  margin-bottom: 1.55rem;
}

h1 {
  margin: 0;
  font: 900 clamp(4.5rem, 8.15vw, 8rem)/.87 var(--display);
  text-transform: uppercase;
  letter-spacing: -.035em;
}

h1 > span { display: block; }
.period { color: var(--orange); }

.message p {
  max-width: 35ch;
  margin: 1.85rem 0 1.65rem;
  font-size: clamp(1.125rem, 1.55vw, 1.38rem);
  line-height: 1.48;
  color: #314b3e;
}

.preview-link {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  min-height: 3rem;
  padding: .65rem 1.12rem;
  border: 1px solid var(--ink);
  border-radius: .2rem;
  background: var(--ink);
  color: #fffaf0;
  font-size: 1.04rem;
  font-weight: 600;
  text-decoration: none;
}

.preview-link:hover { background: #244e3e; }
.preview-link:active { background: #07271b; }
:focus-visible { outline: 3px solid #aa3d08; outline-offset: 4px; }

.monitor-icon {
  width: 1.13rem;
  height: 1.13rem;
  background: currentColor;
  mask: url("assets/pc-display.svg") center/contain no-repeat;
}

.hardware { min-width: 0; margin: 0; }
.diagram {
  position: relative;
  aspect-ratio: 1.25;
  isolation: isolate;
  container-type: inline-size;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#204f3420 1px, transparent 1px),
    linear-gradient(90deg, #204f3420 1px, transparent 1px);
  background-size: 7.7% 9.6%;
  mask-image: radial-gradient(ellipse at 50% 49%, black 13%, #0009 65%, transparent 85%);
}

.register {
  position: absolute;
  width: .75rem;
  height: .75rem;
  color: #6d806b;
}

.register::before, .register::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.register::before { width: 100%; height: 1px; top: 50%; }
.register::after { height: 100%; width: 1px; left: 50%; }
.top-left { top: 0; left: 0; }
.top-right { top: 0; right: 0; }
.bottom-left { bottom: 0; left: 0; }
.bottom-right { bottom: 0; right: 0; }

.sata, .nvme { position: absolute; }
.sata img, .nvme img { display: block; width: 100%; height: auto; }

.sata {
  width: 73%;
  left: 8%;
  top: 8%;
  transform: rotate(-10deg);
  filter: drop-shadow(.2rem .55rem .3rem #192f2329);
}

.drive-label {
  position: absolute;
  left: 21%;
  top: 33%;
  color: #163d2f;
  text-transform: uppercase;
}

.drive-label span {
  display: block;
  font: 600 clamp(.7rem, 2.4cqw, 1rem)/1.2 Barlow, sans-serif;
  letter-spacing: .12em;
}

.drive-label strong {
  display: block;
  font: 900 9.4cqw/1 var(--display);
  letter-spacing: -.02em;
}

.drive-label i {
  display: block;
  width: 23%;
  height: .55cqw;
  background: var(--orange);
  margin-top: 1.8cqw;
}

.nvme {
  width: 74%;
  right: 3.2%;
  bottom: 15%;
  transform: rotate(7deg);
  filter: drop-shadow(.18rem .48rem .22rem #192f2330);
}

.connection {
  position: absolute;
  top: 36%;
  right: 11%;
  bottom: 23%;
  width: 28%;
  border: 2px dashed #bb5c28;
  border-width: 2px 2px 0 0;
  border-top-right-radius: .45rem;
  z-index: -1;
}

.destination {
  position: absolute;
  bottom: 4.7%;
  left: 25%;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: clamp(.75rem, 2.3cqw, .9rem);
  letter-spacing: .03em;
}

.destination::before {
  content: "";
  width: 1rem;
  height: .7rem;
  border: solid var(--ink);
  border-width: 0 0 1px 1px;
  transform: skewX(-15deg) translateY(-30%);
}

figcaption {
  margin-top: .6rem;
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.footer {
  min-height: 4.75rem;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: .85rem;
}

.footer small { font-size: inherit; }
.footer b { padding: 0 .45rem; color: #a0481c; font-weight: 400; }

dialog {
  width: min(64rem, 94vw);
  max-width: none;
  max-height: 94vh;
  max-height: 94dvh;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: .3rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1.5rem 5rem #081f1880;
  overflow: auto;
}

dialog::backdrop { background: #102a20c9; }
body:has(dialog[open]) { overflow: hidden; }
.preview-header { padding: .35rem .7rem .35rem 1rem; border-bottom: 1px solid var(--rule); }
.preview-header h2 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.preview-header h2 span { color: #ae4c17; }
.close-button {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: .15rem;
  background: transparent;
  color: var(--ink);
  font: 400 1.8rem/1 Barlow, Arial, sans-serif;
  cursor: pointer;
}
.close-button:hover { background: #e9e5d7; }
.app-screenshot { width: 100%; height: auto; display: block; }

@media (min-width: 96rem) {
  .hero { gap: 4rem; }
}

@media (max-width: 55rem) {
  .page { width: min(88%, 41rem); }
  .masthead { min-height: 4.9rem; }
  .hero { grid-template-columns: 1fr; gap: 2.8rem; padding: 3.25rem 0 2.5rem; }
  h1 { font-size: clamp(3rem, 15.9vw, 7.65rem); }
  .message p { margin: 1.4rem 0 1.25rem; }
  .hardware { width: min(100%, 33rem); justify-self: center; }
  .footer { min-height: 4.2rem; }
}

@media (max-width: 28rem) {
  .wordmark { gap: .48rem; font-size: 1.45rem; }
  .wordmark img { width: 1.7rem; }
  .domain, .footer { font-size: .78rem; }
  .footer { gap: .5rem; }
  .footer b { padding: 0 .1rem; }
  .message::before { margin-bottom: 1.2rem; }
  .hero { padding-top: 2.6rem; }
}
