/* Source Serif 4, self-hosted. License: /fonts/OFL.txt */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --crimson: #9e1b32;
  --paper: #f4e8d6;
  --crack: #e6d2b8;
  --name-size: clamp(5rem, 20vw, 11rem);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--paper);
  background-image: url("/textures/paper.png");
  background-repeat: repeat;
}

body {
  margin: 0;
  color: var(--crimson);
  font-family: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", "Liberation Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(158, 27, 50, 0.16);
}

.paper {
  background-color: var(--paper);
  background-image: url("/textures/paper.png");
  background-repeat: repeat;
  background-attachment: fixed;
}

.entrance {
  height: 100dvh;
  overflow: hidden;
  color: var(--crimson);
  background: transparent;
}

.sign {
  position: fixed;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  color: var(--crimson);
  font-size: var(--name-size);
  font-weight: 400;
  font-style: normal;
  line-height: 0.95;
  text-align: center;
  pointer-events: none;
  background: none;
}

.sign-text {
  padding: 0;
  letter-spacing: 0.04em;
  line-height: 0.85;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.doors {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100dvh;
  font-size: var(--name-size);
}

.doors::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    var(--crimson) 0,
    var(--crimson) calc(50% - 0.58em),
    transparent calc(50% - 0.58em),
    transparent calc(50% + 0.56em),
    var(--crimson) calc(50% + 0.56em)
  );
  pointer-events: none;
}

.door {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  z-index: 1;
  color: inherit;
  background: var(--crack);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.door:focus {
  outline: none;
}

.door:focus-visible .panel {
  outline: 1px solid var(--crimson);
  outline-offset: -1.5rem;
}

.panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 6rem 1.5rem;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.door-personal .panel {
  transform-origin: left center;
}

.door-professional .panel {
  transform-origin: right center;
}

.word {
  margin-top: 18vh;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

/* The door eases open a crack. Touch screens skip this so a tap does not leave it ajar. */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .door-personal:hover .panel,
  .door-personal:focus-visible .panel {
    transform: translate3d(-10px, 0, 0);
    box-shadow: 10px 0 28px rgba(158, 27, 50, 0.1);
  }

  .door-professional:hover .panel,
  .door-professional:focus-visible .panel {
    transform: translate3d(10px, 0, 0);
    box-shadow: -10px 0 28px rgba(158, 27, 50, 0.1);
  }

  .door:hover,
  .door:focus-visible {
    z-index: 1;
  }
}

@media (max-width: 720px) {
  .doors {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .door-personal .panel {
    transform-origin: center top;
  }

  .door-professional .panel {
    transform-origin: center bottom;
  }

  .doors::after {
    top: 50%;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(
      to right,
      var(--crimson) 0,
      var(--crimson) calc(50% - 1.15em),
      transparent calc(50% - 1.15em),
      transparent calc(50% + 1.15em),
      var(--crimson) calc(50% + 1.15em)
    );
  }

  .word {
    margin-top: 0;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .panel {
    padding: 4.5rem 1.25rem;
  }
}

@media (max-width: 720px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .door-personal:hover .panel,
  .door-personal:focus-visible .panel {
    transform: translate3d(0, -10px, 0);
    box-shadow: 0 10px 28px rgba(158, 27, 50, 0.1);
  }

  .door-professional:hover .panel,
  .door-professional:focus-visible .panel {
    transform: translate3d(0, 10px, 0);
    box-shadow: 0 -10px 28px rgba(158, 27, 50, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel {
    transition: none;
  }

  .door:hover .panel,
  .door:focus-visible .panel {
    transform: none;
  }
}

.plain {
  min-height: 100dvh;
  color: var(--crimson);
}

.return {
  position: absolute;
  top: 1.35rem;
  left: 1.5rem;
  color: inherit;
  font-style: italic;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.return:hover,
.return:focus-visible {
  border-bottom-color: currentColor;
}

.return:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.sheet {
  max-width: 38rem;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 4.5rem;
}

.sheet h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.lede {
  max-width: 34rem;
  margin: 0 0 2.75rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

.sheet section {
  padding: 1.15rem 0 1.35rem;
  border-top: 1px solid color-mix(in srgb, var(--crimson) 42%, transparent);
}

.sheet h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
}

.sheet p {
  margin: 0;
  line-height: 1.55;
}

.empty {
  font-style: italic;
}

.signature {
  margin-top: 2.5rem;
  font-style: italic;
}

.market {
  max-width: 68rem;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 4rem;
}

.market h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.notice {
  margin: 0 0 1rem;
  font-style: italic;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin: 0 0 1.5rem;
}

.filters a {
  color: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.filters a[aria-current="page"] {
  border-bottom: 1px solid currentColor;
}

.cards {
  display: grid;
  align-items: start;
  gap: 2rem;
}

.card {
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--crimson) 42%, transparent);
}

.card h2 {
  margin: 0.8rem 0 0.2rem;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 400;
}

.meta,
.status {
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

.photos {
  display: grid;
  gap: 0.4rem;
}

.photos img,
.card img {
  display: block;
  width: 100%;
  height: 11rem;
  object-fit: cover;
  background: var(--crack);
}

.card form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.card label {
  display: grid;
  gap: 0.3rem;
}

.card input,
.card textarea,
.card select {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--crimson) 55%, transparent);
  color: inherit;
  background: transparent;
  font: inherit;
}

.card textarea {
  min-height: 6rem;
  resize: vertical;
}

.card button {
  justify-self: start;
  padding: 0.45rem 0.8rem;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.check {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .photos {
    grid-template-columns: 1fr 1fr;
  }
}

@media print {
  .entrance {
    height: auto;
    overflow: visible;
  }

  .doors {
    display: block;
    height: auto;
  }

  .door {
    min-height: 42vh;
    break-inside: avoid;
  }

  .sign {
    position: static;
    display: block;
    margin: 0 0 1.5rem;
    text-align: center;
  }
}
