@font-face {
  font-family: "Erstellen Sans";
  src: url("/fonts/dm-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Erstellen Sans";
  src: url("/fonts/dm-sans-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Erstellen Inter";
  src: url("/fonts/erstellen-inter-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #002536;
  --white: #fafafa;
  --muted: #b9c8ce;
  --red: #ef4454;
  --rule: #ffffff33;
  --grid: #b9c8ce14;
  font-family: "Erstellen Sans", Arial, sans-serif;
  background: var(--night);
  color: var(--white);
}

* { box-sizing: border-box; }

body {
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.frame {
  width: min(90%, 100rem);
  margin-inline: auto;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 5px;
}

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

.site-header {
  min-height: 5.5rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font: 700 clamp(1.15rem, 3vw, 1.6rem)/1 "Erstellen Inter", Arial, sans-serif;
  letter-spacing: -.055em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  position: relative;
  width: 1.3em;
  aspect-ratio: 1;
  flex: none;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
}

.brand-mark::before {
  inset: 0;
  background: currentColor;
  mask: url("/brand-mark.svg") center / contain no-repeat;
}

.brand-mark::after {
  inset: 40% 0 40% 80%;
  background: var(--red);
}

.accent { color: var(--red); }

.studio-link,
.contact {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  min-height: 44px;
  text-decoration: none;
}

.studio-link {
  font-size: .875rem;
  text-align: right;
}

.studio-link:hover,
.site-footer a:hover { color: var(--red); }

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 5rem);
  padding-block: clamp(3rem, 9vh, 8rem);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 9rem);
  line-height: .97;
  letter-spacing: -.075em;
}

.intro {
  max-width: 29rem;
  margin: 1.75rem 0 1.5rem;
  padding-inline-start: 1rem;
  border-inline-start: 2px solid var(--red);
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.contact {
  min-height: 3.25rem;
  padding: .7rem 1rem;
  border: 1px solid var(--red);
  background: #c1121f;
  font-size: .9375rem;
  font-weight: 700;
}

.contact:hover { background: #a6101b; }

.drawing {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.05;
  border: 1px solid var(--rule);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 1.65rem 1.65rem;
  background-position: center;
}

.corner {
  position: absolute;
  width: .75rem;
  height: .75rem;
  border: solid var(--muted);
  border-width: 0;
}

.top-left { inset: -1px auto auto -1px; border-width: 1px 0 0 1px; }
.top-right { inset: -1px -1px auto auto; border-width: 1px 1px 0 0; }
.bottom-left { inset: auto auto -1px -1px; border-width: 0 0 1px 1px; }
.bottom-right { inset: auto -1px -1px auto; border-width: 0 1px 1px 0; }

.sheet {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 9%;
  width: 46%;
  aspect-ratio: 4 / 5;
  padding: 7%;
  border: 1px solid #91aab5;
  background: #0b3343;
  transform: rotate(-9deg);
}

.drawing::before,
.drawing::after {
  content: "";
  grid-area: 1 / 1;
  position: absolute;
  z-index: -1;
  width: 46%;
  aspect-ratio: 4 / 5;
  border: 1px solid #66818c;
  background: #0b3343;
}

.drawing::before { transform: translateX(14%) rotate(12deg); }
.drawing::after { transform: translateX(7%) rotate(2deg); }

.sheet-header { display: flex; justify-content: space-between; align-items: center; }
.sheet-header > span:last-child { width: 29%; border-top: 1px solid var(--muted); }
.sheet-title { width: 75%; min-height: .45rem; background: var(--white); }
.sheet-lines { display: grid; align-content: start; gap: .35rem; }
.sheet-lines i { border-top: 1px solid #7a96a2; }
.sheet-lines i:last-child { width: 65%; }
.sheet-grid { display: grid; grid-template-columns: 1.3fr 1fr; border: 1px solid #648390; }
.sheet-grid i { min-height: clamp(.4rem, 1.3vw, 1.3rem); border: 1px solid #648390; }
.sheet-grid i:first-child { background: var(--red); border-color: var(--red); }
.sheet-footer { width: 32%; border-top: 2px solid var(--red); }

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

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 660px) {
  .site-header { min-height: 4.5rem; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  h1 { font-size: clamp(2.75rem, 11vw, 4.75rem); }
  .drawing { max-width: 26rem; }
  .studio-link, .site-footer { font-size: .8rem; }
}

.proposal { max-width: 78rem; }

.proposal-intro { padding-block: clamp(3rem, 8vw, 7rem); }

.proposal h1 {
  font-size: clamp(2.75rem, 8vw, 7.5rem);
  overflow-wrap: anywhere;
}

.proposal .intro { max-width: 40rem; }

.proposal-section {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr);
  gap: 1.5rem 3rem;
  padding-block: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}

.proposal-section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.proposal-section h3 { margin: 0 0 .5rem; }

.proposal-section p {
  max-width: 47rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}

.proposal-section p:last-child { margin-bottom: 0; }

@media (max-width: 660px) {
  .proposal-section { grid-template-columns: 1fr; }
}
