/* Studio Indotin — landing page
   Type scale follows the Yosemite reference, made fluid so it scales
   continuously rather than jumping at a few breakpoints. */

@font-face {
  font-family: Yosemite;
  src: url(../fonts/YosemiteSans-Medium.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #00005f;
  --white: #fafafa;
  --font-sans: Yosemite, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Fluid from the 320px floor to the 1000px ceiling, then held.
     Anchors match the reference: 36px small, 58px large. */
  --pad: clamp(20px, 4.2vw, 45px);
  --h1: clamp(2rem, 1.06rem + 4.7vw, 3.625rem);
  --h1-lh: 1.17;
  --body: clamp(0.9375rem, 0.83rem + 0.53vw, 1.125rem);
  --body-lh: 1.55;
  --contact: clamp(0.9375rem, 0.9rem + 0.19vw, 1rem);
  --logo: clamp(56px, 1.7rem + 3.4vw, 78px);
  --measure: 34em;
  /* The floor sits above any phone's content width, so `width: 100%` still
     wins on small screens and this only ever caps the reel on large ones. */
  --reel: clamp(360px, 45vw, 810px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--navy);
}

body {
  margin: 0;
  line-height: 1.5;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img,
svg {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  opacity: 0.8;
}

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

.page {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(48px, 8vw, 96px);
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--pad);
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  /* Keep the composition from sprawling on ultrawide displays. */
  max-width: 1800px;
  margin-inline: auto;
}

.logo {
  width: var(--logo);
  flex: none;
}

h1 {
  margin: 0;
  font-size: var(--h1);
  line-height: var(--h1-lh);
  font-weight: 300;
}

/* Extra break that only applies below the wide breakpoint, as in the reference. */
@media (min-width: 973px) {
  .brk-sm {
    display: none;
  }
}

.lede {
  margin: clamp(20px, 2.6vw, 32px) 0 0;
  max-width: var(--measure);
  font-size: var(--body);
  line-height: var(--body-lh);
  font-weight: 300;
  text-wrap: pretty;
}

/* Showreel ------------------------------------------------------------- */

.reel {
  margin: clamp(28px, 4vw, 52px) 0 0;
  width: 100%;
  max-width: var(--reel);
}

.reel video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #00004a;
}

/* Contact -------------------------------------------------------------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0 52px;
  font-size: var(--contact);
  line-height: 1.5;
}

.contact > * {
  flex: none;
}

/* The address sits on one line once there is room beside the email. */
.addr-brk {
  display: none;
}

@media (min-width: 574px) {
  .contact {
    align-items: flex-start;
  }

  .addr-comma {
    display: none;
  }

  .addr-brk {
    display: inline;
  }
}

@media (max-width: 573px) {
  .contact {
    flex-direction: column;
  }
}

/* Respect a reduced-motion preference: the poster frame stands in for the
   loop, and the inline script pauses playback. */
@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
