/* FDT site styles: base layout, then type and colour, then menus. */

@font-face {
  font-family: "FDT Sans";
  src: url("/fonts/fdt-sans.woff2") format("woff2-variations"), url("/fonts/fdt-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  /* Vertical metrics tuned so text sits evenly in its line. */
  ascent-override: 96.8%;
  descent-override: 35.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Pinyon Script";
  src: url("/fonts/pinyon-script.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Swap the site's main typeface here. */
  --font-sans: "FDT Sans";
  --base-size: 0.9vw;          /* set by the inline sizing script in each page */
  --viewport-height: 100vh;
  --mobile-scale: 0.98;
  --mobile-padding-offset: 0.61;
  --pad: 2rem;
}

/* ---- 1. Layout basics --------------------------------------------------- */

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

html {
  font-size: var(--base-size);
  touch-action: manipulation;
}
html.mobile {
  font-size: calc(var(--base-size) * var(--mobile-scale));
  --pad: calc(var(--mobile-padding-offset) * 2rem);
}
html, body { margin: 0; padding: 0; min-height: var(--viewport-height); }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  background-color: #f0e2ff;
}

img { border: 0; }
a { color: inherit; }

/* Blocks that only show on one kind of screen. */
html.mobile .desktop-only { display: none !important; }
html:not(.mobile) .mobile-only { display: none !important; }

/* Full-viewport backgrounds that stay put while the page scrolls. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-size: 100% 100%;
}
.backdrop.wallpaper {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Pinned header blocks (logo, menu). */
.pin {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  pointer-events: none;
}
.pin a, .pin img { pointer-events: auto; }
.pin-bottom { top: auto; bottom: 0; }

.page-content {
  padding: var(--pad);
  text-align: left;
  position: relative;
}
html.mobile .page-content { padding: var(--pad); }

/* The size lives on the wrapper so only the logo itself is clickable, not the
   whole width of the page beside it. */
.logo-wrap { display: block; width: 18.3%; pointer-events: auto; }
html.mobile .logo-wrap { width: 30%; }
.logo { display: block; width: 100%; height: auto; }

bodycopy { display: block; }

/* Icons that sit in a line of text (globe, instagram, …). */
.text-icon {
  aspect-ratio: 1;
  height: 1.2em;
  width: 1.2em;
  margin-top: -1em;
  margin-bottom: -.25em;
  display: inline-block;
  vertical-align: baseline;
  position: relative;
}
.text-icon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: currentColor;
  display: block;
}

/* A 12-column row; spans set the widths. */
column-set {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 0 var(--gutter, 0px);
}
column-unit {
  display: block;
  min-width: 0;
  flex: 0 0 calc((100% - var(--gutters, 0px)) * var(--span) / 12);
}
html.mobile column-set[mobile-stack="true"] { flex-direction: column; }
html.mobile column-set[mobile-stack="true"] > column-unit { flex-basis: auto; width: 100%; }
html.mobile column-set[mobile-stack="true"] > column-unit:empty { display: none; }

.media { display: inline-block; max-width: 100%; height: auto; vertical-align: top; }
.video-frame { display: block; margin: 0 auto; border: 0; height: auto; }

/* ---- 2. Type and colour -------------------------------------------------- */

body {
  --swatch-1: rgba(0, 0, 0, 0.85);
  --swatch-2: rgba(0, 0, 0, 0.75);
  --swatch-3: rgba(0, 0, 0, 0.6);
  --swatch-4: rgba(0, 0, 0, 0.4);
  --swatch-5: rgba(0, 0, 0, 0.25);
  --swatch-6: #ff0000;
  --swatch-7: #f8c7bd;
}

@media screen and (max-width: 700px) {
  h2 { font-size: 7vw !important; }
  h4 { font-size: 4vw !important; text-align: center; }
  column-set {
    flex-direction: column-reverse !important;
    flex-wrap: wrap-reverse !important;
  }
}

a:active, .linked:active { opacity: 0.7; }
a.active { color: #8280ef !important; }

sub { position: relative; vertical-align: baseline; top: 0.3em; }
sup { position: relative; vertical-align: baseline; top: -0.4em; }

ol { margin: 0; padding: 0 0 0 2.5em; }
ul { margin: 0; padding: 0 0 0 2.0em; }
blockquote { margin: 0; padding: 0 0 0 2em; }
hr { background: rgba(127, 127, 127, 0.4); border: 0; height: 1px; display: block; }

bodycopy {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.75);
  font-family: var(--font-sans);
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0em;
  display: block;
}
html.mobile bodycopy { font-size: 4.05rem; }
bodycopy a { color: rgba(0, 0, 0, 0.75); text-decoration: none; }
bodycopy a:hover { text-decoration-color: #8280ef; }

h1 {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  margin: 0;
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.85);
  letter-spacing: -0.02em;
}
html.mobile h1 { font-size: 3rem; }
a:hover { text-decoration-color: #8280ef; }
.heading-2-mobile a:hover { color: #8280ef; }
h1 a { color: rgba(0, 0, 0, 0.85); text-decoration: none; }
h1 a:hover { text-decoration: none; text-decoration-color: #8280ef; }

h2 {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  margin: 0;
  color: rgba(0, 0, 0, 0.75);
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: 0em;
  text-decoration: none;
}
h2 a { color: rgba(0, 0, 0, 0.75); text-decoration: none; }
h2 a:hover { text-decoration: none; color: #8280ef !important; }

.cursive {
  font-size: 2.95rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  font-family: "Pinyon Script";
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0;
  display: block;
}
html.mobile .cursive { font-size: 4.05rem; }
.cursive a { color: rgba(0, 0, 0, 0.75); text-decoration: none; }

.heading-2-mobile {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.75);
  font-family: var(--font-sans);
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0em;
}
html.mobile .heading-2-mobile { font-size: 2.0rem; }
.heading-2-mobile a { color: rgba(0, 0, 0, 0.75); text-decoration: none; }

.adam-style {
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.75);
  font-family: var(--font-sans);
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0em;
  display: block;
}
html.mobile .adam-style { font-size: 2.2rem; }
.adam-style a { color: rgba(0, 0, 0, 0.75); text-decoration: none; }
.adam-style a:hover { text-decoration: none; color: #8280ef !important; }

.cursive-small {
  font-size: 1.50rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.75);
  font-family: "Pinyon Script";
  font-style: normal;
  line-height: 1.05;
  letter-spacing: 0.153em;
  display: inline-block;
}
html.mobile .cursive-small { font-size: 2.05rem; }

@media screen and (max-width: 768px) {
  h2 { font-size: 2rem !important; line-height: 1.4em !important; }
}

/* Force columns into rows in mobile view and reorder them */
@media screen and (max-width: 768px) {
  column-set { flex-direction: column; }
  column-unit[slot="1"] { order: 2; }
  column-unit[slot="2"] { order: 1; }
  column-unit[slot="0"], column-unit[slot="3"] { order: 0; }
}

/* Figtree's slash is tall; keep it at about cap height. */
.slash {
  display: inline-block;
  font-size: 0.84em;
  transform: translateY(-0.07em);
  padding: 0 0.06em;
}

/* ---- 3. Menus ------------------------------------------------------------ */

.menu h1 a:hover {
  font-family: cursive;
  text-decoration: none;
  color: #b8899a;
}
.menu.menu-artist h1 a:hover { color: #b889b5; }
