/* mesterlabs.com. The studio's own kit: warm near-black, cream type and
   the amber ș. Instrument Sans throughout; Michroma only for the name
   Shadowlap, which is that app's display face. Never red. */

@font-face {
  font-family: "Michroma";
  src: url("/fonts/michroma-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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: "Michroma";
  src: url("/fonts/michroma-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  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: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #16130f;
  --surface: #1e1a15;
  --line: #2e2820;
  --text: #ece5d8;
  --muted: #a9a398;
  --amber: #ffb866;
  --display: "Michroma", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --measure: 36rem;
  --gutter: 1rem;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* On iPhone, follow the reader's Dynamic Type text size. */
@supports (font: -apple-system-body) {
  html {
    font: -apple-system-body;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Long words (email addresses) break rather than overflow with large text. */
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }
}

a {
  color: var(--amber);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

p {
  margin: 0 0 1rem;
}

h1,
h2 {
  margin: 0;
  line-height: 1.25;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  background: var(--bg);
  padding: 0.25rem 0.5rem;
  z-index: 1;
}

.hello {
  padding-top: clamp(3rem, 12vw, 6rem);
  padding-bottom: 2rem;
}

.hello h1 img {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  /* The wordmark's glow is part of the image; pull it in line with the text. */
  margin-left: -4.5%;
}

.label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.25rem 0 2.5rem;
}

.lead {
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.about {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 32rem;
}

h2.section {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3rem 0 1rem;
}

.app {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.app img {
  flex: none;
  width: 4.5rem;
  height: auto;
  background: #05080c;
  border-radius: 0.6rem;
  padding: 0.5rem 0.25rem;
}

.app > div {
  flex: 1 1 14rem;
  min-width: 0;
}

.app h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: min(1.05rem, 6vw);
  letter-spacing: 0.03em;
  margin: 0 0 0.25rem;
}

.app p {
  margin: 0;
  color: var(--muted);
}

.app p + p {
  margin-top: 0.4rem;
}

.email {
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3rem;
}

.site-footer .wrap {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.25rem;
}

.lost {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.lost h1 {
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
