/** === A more modern CSS Reset by Andy Bell ===
https://andy-bell.co.uk/a-more-modern-css-reset/
*/

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;

  /* Uncomment to detect overflow */
  /* outline: 2px solid lime */
}

/* Allow animations to auto and more */
:root {
  interpolate-size: allow-keywords;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;

}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding-inline-start: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4, h5, h6 {
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture,
svg,
video,
iframe,
canvas {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* End of Reset */

/* Basics */

html {
    --gutter: max(16px, 5vi);
    --section-padding: max(32px, 5vb);
    --content-gap: 1lh;

    --radius: 4px;

    --base-font-size: clamp(1.125rem, 1.038rem + 0.4348vw, 1.375rem);
    --base-font-family: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
    --text-color: white;
}

body {
    font-family: var(--base-font-family);
    font-size: var(--base-font-size);
    color: var(--text-color);
    line-height: 1.35;
}

section {
    padding-inline: var(--gutter);
    padding-block: var(--section-padding);
}

h1 {
    font-size: 2.25em;
    font-weight: normal;

}

a[class] {
    text-decoration-color: transparent;

}

/* Components */

.hero {
    min-block-size: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: safe end;
    gap: var(--content-gap);
}

.hero__content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--content-gap);
    padding: 1.5lh 2lh;
    background-color: hsl(0 0 0 / .65);
    border-radius: var(--radius);

}

.hero__img {
    block-size: 100%;
    inline-size: 100%;
    object-position: 25% 0%;
}

.hero__cta {
    color: inherit;
    font-size: 1.25em;
    transition: letter-spacing 200ms ease-out,
        text-decoration-color 200ms ease-in-out;
    overflow-wrap: anywhere;

    &:hover {
        text-decoration-color: currentColor;
        letter-spacing: .05ex;
    }

}

/* Utilities */

.is-bg {
    position: absolute;
    inset: 0;
    z-index: -9;
}

:has(.is-bg) {
    position: relative;
    isolation: isolate;
}