@font-face {
  font-family: "ABC Areal";
  src: url("/fonts/ABCAreal-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f88a03;
  --ink: #20231f;
  --margin: clamp(24px, 3.333vw, 48px);
  --gutter: 24px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --tools-duration: 240ms;
}

/* An orange-on-orange easter egg, with a usable keyboard and touch target. */
.tools-launcher {
  position: fixed;
  right: max(2px, env(safe-area-inset-right));
  bottom: max(7px, env(safe-area-inset-bottom));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.tools-launcher span {
  width: 10px;
  height: 10px;
  background: var(--paper);
  transition: background-color 160ms ease;
}
.tools-launcher:focus-visible span { background: currentColor; }
.tools-launcher[hidden] { display: none; }
.tools-launcher:focus-visible, .tools-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.tools-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #f2f1ed;
  color: var(--ink);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom left;
  transition: opacity var(--tools-duration) var(--ease-out), transform var(--tools-duration) var(--ease-out);
}
.tools-dialog.is-visible { opacity: 1; transform: none; }
.tools-dialog::backdrop { background: transparent; }
.tools-dialog[data-instant] { transition: none; }
.tools-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: #f2f1ed;
  color: inherit;
  cursor: pointer;
}
.tools-frame { display: block; width: 100%; height: 100%; border: 0; }
html:has(.tools-dialog[open]) { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .tools-launcher:hover span { background: color-mix(in srgb, var(--ink) 18%, var(--paper)); }
  .tools-close:hover { background: #e5e4df; }
}
@media (prefers-reduced-motion: reduce) {
  .tools-dialog { transform: none; transition: opacity 120ms ease; }
  .tools-launcher span { transition: none; }
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  font-family: "ABC Areal", Arial, sans-serif;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.428571;
  /* Areal's x-height is 519 units in a 1000-unit em. */
  font-size-adjust: .519;
  font-synthesis: none;
  font-kerning: normal;
}
::selection { background: var(--ink); color: var(--paper); }
h1, p { margin: 0; }

/* Twelve columns; four-unit spacing rhythm; shared text alignment. */
.composition {
  width: min(100%, 112.5rem);
  min-height: 100svh;
  margin-inline: auto;
  padding: var(--margin) var(--margin) max(24px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto clamp(6rem, 20svh, 14rem) auto 2rem auto minmax(4rem, 1fr) auto;
  column-gap: var(--gutter);
  align-content: start;
  align-items: start;
}
.wordmark {
  grid-column: 1 / 5;
  grid-row: 1;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: normal;
}
.wordmark svg { display: block; width: 2.739em; height: 1em; max-width: 100%; overflow: visible; }
.year {
  grid-column: 9 / -1;
  grid-row: 1;
  justify-self: end;
  font-size: .75rem;
  line-height: 1.333333;
}
.disciplines {
  grid-column: 5 / 9;
  grid-row: 3;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.statement {
  grid-column: 9 / -1;
  grid-row: 3;
  max-width: 27ch;
  text-wrap: pretty;
}
.contact {
  grid-column: 9 / -1;
  grid-row: 5;
  justify-self: start;
  display: block;
  padding-block: 12px;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}
.contact:hover { text-decoration-thickness: 2px; }
.contact:focus-visible { outline: 2px solid currentColor; outline-offset: .375rem; }

.studio-footer {
  grid-column: 1 / -1;
  grid-row: 7;
  display: grid;
  grid-template-columns: subgrid;
  font-size: .6875rem;
  line-height: 1.454545;
  align-items: baseline;
}
.studio-links { grid-column: 1 / 5; display: flex; flex-wrap: wrap; column-gap: 16px; margin-block: -14px; }
.studio-links a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.studio-links a:hover { text-decoration: underline; text-underline-offset: .25em; }
.studio-links a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.studio-address, .studio-clock {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 4px;
}
.studio-address { grid-column: 5 / 9; font-style: normal; }
.studio-clock { grid-column: 9 / -1; }
.studio-clock time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.studio-clock[hidden] { display: none; }

@media (max-width: 60rem) and (min-width: 40.001rem) {
  .disciplines { grid-column: 1 / 7; }
  .statement, .contact { grid-column: 7 / -1; }
  .studio-address { grid-column: 1 / 7; }
  .studio-clock { grid-column: 7 / -1; }
  .studio-links { grid-column: 1 / -1; margin-block: 0 8px; }
}

@media (max-width: 40rem) {
  body { font-size: 1rem; line-height: 1.5; }
  .composition {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto 6rem auto 2.5rem auto 1.5rem auto minmax(4rem, 1fr) auto;
    column-gap: 16px;
  }
  .wordmark { grid-column: 1 / -1; font-size: 2rem; }
  .year { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin-top: 1rem; }
  .disciplines { grid-column: 1 / -1; font-size: 1.125rem; line-height: 1.333333; }
  .statement { grid-column: 1 / -1; grid-row: 5; }
  .contact { grid-column: 1 / -1; grid-row: 7; }
  .studio-footer { grid-row: 9; grid-template-columns: 1fr; row-gap: 8px; }
  .studio-address, .studio-clock, .studio-links { grid-column: 1 / -1; }
  .studio-links { margin-block: 0; }
}
