/* ABC Diatype, Dinamo Student Font Pack 1 (licence: Desktop + Web, order DINAMO-2026-4087099). */
@font-face {
  font-family: "Diatype";
  src: url("./assets/fonts/ABCDiatype-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Diatype";
  src: url("./assets/fonts/ABCDiatype-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --site-font: "Diatype";
  --label-font: var(--site-font);
  font-family: var(--site-font), ui-sans-serif, system-ui;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
  background: #fff;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Original global selection styling from Tame's published stylesheet. */
::-moz-selection {
  background: #141414 !important;
  color: #fff !important;
}

::selection {
  background: #141414 !important;
  color: #fff !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  cursor: default;
}

a[href] {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  isolation: isolate;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 20px 0;
}

.site-header::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 96px;
  pointer-events: none;
  content: "";
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}

.wordmark,
.labs-label {
  font-family: var(--label-font), ui-sans-serif, system-ui;
}

.wordmark,
.labs-label {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.wordmark {
  color: inherit;
  text-decoration: none;
  transition: opacity 150ms cubic-bezier(.4, 0, .2, 1);
}

.wordmark:hover {
  opacity: .7;
}

.wordmark:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.brand-menu {
  position: relative;
  z-index: 100;
}

.brand-control {
  display: flex;
  align-items: center;
}

.menu-toggle {
  position: relative;
  display: flex;
  width: 24px;
  height: 27px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle::before {
  position: absolute;
  inset: -8px -6px;
  content: "";
}

.menu-toggle svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: all 200ms cubic-bezier(.4, 0, .2, 1);
}

.brand-menu:hover .menu-toggle svg,
.brand-menu:focus-within .menu-toggle svg,
.brand-menu[data-open="true"] .menu-toggle svg {
  opacity: 1;
}

.brand-menu[data-open="true"] .menu-toggle svg {
  transform: rotate(180deg);
}

.menu-toggle:focus-visible,
.menu-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.menu-popover {
  position: absolute;
  top: 100%;
  left: -4px;
  z-index: 90;
  width: max-content;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.95);
  transition: opacity 200ms cubic-bezier(.4, 0, .2, 1), transform 200ms cubic-bezier(.4, 0, .2, 1), visibility 200ms;
}

.brand-menu[data-open="true"] .menu-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.menu-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  background: rgb(245 245 245 / .8);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.menu-link {
  display: block;
  width: 100%;
  padding: 6px 8px;
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  opacity: .7;
  transition: all 150ms cubic-bezier(.4, 0, .2, 1);
}

.menu-link:hover,
.menu-link:focus-visible {
  opacity: 1;
  transform: translateX(2px);
}

.trademark {
  display: inline-block;
  margin-left: -5px;
  transform: translateY(-5px);
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.1rem;
  letter-spacing: 0;
}

.site-canvas {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 96px 20px;
}

.interviews {
  width: min(100%, 24rem);
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.interview-logo {
  display: block;
  margin: 0 auto 20px;
}

.interviews > h1,
.interviews > p {
  max-width: 21rem;
  margin: 0 auto;
  font-size: .93rem;
  line-height: 1.625;
  letter-spacing: -.025em;
  font-weight: 400;
  text-wrap: balance;
}

.interviews > h1 {
  font-family: var(--label-font), ui-sans-serif, system-ui;
  font-weight: 500;
  max-width: none;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}

/* One line wherever it fits; narrow phones may still wrap it. */
@media (min-width: 640px) {
  .interviews > h1 {
    white-space: nowrap;
    /* Wider than its 24rem column: centred on the column instead of spilling to the right. */
    width: max-content;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}

.interviews > p {
  margin-block: 16px 24px;
}

.invitation-copy > span {
  display: inline-block;
}

.interview-open {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0a0a0a;
  font: 500 .85rem/1.1rem var(--site-font), ui-sans-serif, system-ui;
  cursor: pointer;
  white-space: nowrap;
}

.interview-pill[data-state="open"] .interview-open {
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease-out;
}

.interview-open:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#interview-form {
  --button-width: 10.25rem;
  position: relative;
  display: grid;
  align-items: center;
  min-height: 2rem;
  width: min(100%, calc(var(--button-width) * 1.5));
  margin-inline: auto;
}

.interview-pill {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  height: 2rem;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 9999px;
  background: rgb(0 0 0 / .05);
}

.interview-pill[data-state="closed"] {
  width: min(100%, var(--button-width));
}

.interview-pill[data-state="open"] {
  transition: width 450ms cubic-bezier(.2,.8,.2,1);
}

.interview-fields {
  display: flex;
  height: 100%;
  align-items: stretch;
  padding-right: 4px;
}

.interview-pill[data-state="closed"] .interview-fields {
  opacity: 0;
}

.interview-pill[data-state="open"] .interview-fields {
  transition: opacity 200ms ease-out 100ms;
}

.interview-fields input,
.interview-fields button {
  border: 0;
  background: transparent;
  font: inherit;
}

.interview-fields input {
  cursor: text;
  flex: 1;
  min-width: 0;
  padding: 0 4px 0 16px;
  font-size: .85rem;
  color: #171717;
}

.interview-fields input::placeholder {
  color: #606060;
}

.interview-fields button {
  display: flex;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 12px;
  color: #000;
  opacity: .6;
  cursor: pointer;
}

.interview-fields button svg {
  width: 16px;
  height: 16px;
}

.interview-fields button:hover,
.interview-fields button:focus-visible {
  opacity: 1;
}

.interview-fields button:disabled {
  opacity: .65;
  cursor: wait;
}

.interview-fields input:focus {
  outline: none;
}

.interview-fields input:focus-visible::placeholder {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.interview-fields button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -2px;
}

.interview-status {
  position: absolute;
  top: 100%;
  width: 100%;
  margin: 12px 0 0;
  font-size: .85rem;
  line-height: 1.1rem;
}

.interview-status:empty {
  margin: 0;
}

#interview-form[data-sent] .interview-status {
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  text-wrap: balance;
}

@media (prefers-reduced-motion: no-preference) {
  #interview-form[data-sent] .interview-pill {
    animation: interview-dissolve 360ms ease-out forwards;
  }

  #interview-form[data-sent] .interview-status {
    animation: interview-confirm 240ms ease-out 200ms both;
  }
}

@keyframes interview-dissolve {
  to {
    opacity: 0;
    transform: scale(.96);
    filter: blur(2px);
  }
}

@keyframes interview-confirm {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (pointer: coarse) {
  .interview-fields input {
    font-size: 16px;
  }

  .interview-fields input::placeholder {
    font-size: .85rem;
  }
}

.about-page {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding-block: 96px 80px;
}

.about-copy {
  display: flex;
  width: 83.333333%;
  flex-direction: column;
  gap: 32px;
  font-size: .93rem;
  line-height: 1.625;
  letter-spacing: -.025em;
  text-align: center;
}

.about-copy p {
  margin: 0;
}

.document-page {
  min-height: 100vh;
  min-height: 100dvh;
}

.document-copy {
  width: 66.666667%;
  margin: 48px auto 0;
  padding: 96px 0 192px;
  font-size: 1rem;
  line-height: 1.5;
}

.updated-date {
  display: inline-block;
  margin-block: 8px;
  padding: 6px 10px;
  background: #f5f5f5;
  border-radius: 16px;
  font-size: .85rem;
  line-height: 1.1rem;
  letter-spacing: 0;
}

.document-copy h1 {
  margin: 32px 0 16px;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.85rem;
  letter-spacing: -.03em;
}

.document-copy h2 {
  margin: 32px 0 16px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.document-copy p {
  margin: 0 0 16px;
}

.document-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.document-copy a:hover {
  text-decoration: none;
}

.document-copy .related-page {
  margin-top: 32px;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 10;
  isolation: isolate;
  display: none;
  width: 100%;
  align-items: center;
  /* The reference centers this line beside a 28px icon with 8px of padding. */
  min-height: 44px;
  padding: 8px 24px;
  pointer-events: none;
}

.copyright {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  -webkit-font-smoothing: antialiased;
  font-size: .85rem;
  font-weight: 400;
  line-height: 1.1rem;
  letter-spacing: 0;
}

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

@media (min-width: 640px) {
  .site-footer {
    display: flex;
  }

  .site-footer::before {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 320px;
    height: 64px;
    border-radius: 16px;
    transform: translateY(-20px);
    pointer-events: none;
    content: "";
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 100%);
    mask-image: linear-gradient(to top, #000 40%, transparent 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .interview-pill[data-state="open"],
  .interview-pill[data-state="open"] .interview-fields,
  .interview-pill[data-state="open"] .interview-open {
    transition: none;
  }

  .wordmark,
  .menu-toggle svg,
  .menu-popover,
  .menu-link {
    transition-duration: 0s;
  }
}

@media (min-width: 768px) {
  .about-copy {
    font-size: .85rem;
  }
}

@media (min-width: 1024px) {
  .about-copy {
    width: 20%;
  }

  .document-copy {
    width: 50%;
  }
}

@media (hover: none) {
  .menu-toggle svg {
    opacity: 1;
  }
}
