/* --------------------- */
/* Custom properties     */
/* --------------------- */

:root {
    /* colours */
    --clr-dark:  230 35% 7%;
    --clr-light: 231 77% 90%;
    --clr-white: 0 0% 100%;

    /* font-sizes (rem=px/16) */
    --fs-900: 9.375rem;
    --fs-800: 6.25rem;
    --fs-700: 3.5rem;
    --fs-600: 2rem;
    --fs-500: 1.75rem;
    --fs-400: 1.125rem;
    --fs-300: 1rem;
    --fs-200: 0.875rem;

    /* font-families */
    --ff-serif: "Bellefair", serif;
    --ff-sans-cond: "Barlow Condensed", sans-serif;
    --ff-sans-normal: "Barlow", sans-serif;
}


/* --------------------- */
/* Fonts                 */
/* --------------------- */

@font-face 
{ 
font-family: 'Legalitere';  
src: url("./fonts/Legalitere/Legalitere.ttf"); 
}

@font-face 
{ 
font-family: 'Rockabye';  
src: url("./fonts/Rockabye/RockabyeRegular.otf"); 
}


/* --------------------- */
/* Reset                 */
/* --------------------- */

/* https://piccalil.li/blog/a-modern-css-reset/ */

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

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6, 
p {
    font-weight: 400;
}


/* set up the body */
body {
    font-family: var(--ff-sans-cond);
    font-size: var(--fs-400);
    background-color: hsl( var(--clr-dark) );
    color: hsl( var(--clr-white) );
    line-height: 1.5;
    min-height: 100vh;
}

/* make images easier to work with */
img:not([hidden]), 
picture:not([hidden]) {
    max-width: 100%;
    display: block;
}

/* make form elements easier to work with */
input,
button,
textarea,
select {
    font: inherit;
}

/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
     scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }


/* --------------------- */
/* Utility classes       */
/* --------------------- */

.debug {
    outline: 1px solid red !important;
}

.flex {
    display: flex;
    gap: var(--gap, 1rem);
}

.grid {
    display: grid;
    gap: var(--gap, 1rem);
}

.flow > *:where(:not(:first-child)) { /* same as: .flow > * + *  */
    margin-top: var(--flow-space, 1rem);
}

.container {
    padding-inline: 2em;
    margin-inline: auto;
    max-width: 80rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* colours */
.bg-dark  { background-color: hsl( var(--clr-dark ) ); }
.bg-light { background-color: hsl( var(--clr-light) ); }
.bg-white { background-color: hsl( var(--clr-white) ); }

.text-dark  { color: hsl( var(--clr-dark ) ); }
.text-light { color: hsl( var(--clr-light) ); }
.text-white { color: hsl( var(--clr-white) ); }

/* typography */
.ff-serif { font-family: var(--ff-serif); }
.ff-sans-cond { font-family: var(--ff-sans-cond); }
.ff-sans-normal { font-family: var(--ff-sans-normal); }

.letter-spacing-1 { letter-spacing: 4.75px; }
.letter-spacing-2 { letter-spacing: 2.7px; }
.letter-spacing-3 { letter-spacing: 2.35px; }

.uppercase { text-transform: uppercase; }

.fs-900 { font-size: var(--fs-900); }
.fs-800 { font-size: var(--fs-800); }
.fs-700 { font-size: var(--fs-700); }
.fs-600 { font-size: var(--fs-600); }
.fs-500 { font-size: var(--fs-500); }
.fs-400 { font-size: var(--fs-400); }
.fs-300 { font-size: var(--fs-300); }
.fs-200 { font-size: var(--fs-200); }

.fs-900, 
.fs-800, 
.fs-700, 
.fs-600 {
    line-height: 1.1;
}


/* Complex Utilities */

/* .numbered-title {
    font-family: var(--ff-sans-cond);
    font-size: var(--fs-500);
    text-transform: uppercase;
    color: hsl( var(--clr-white) );
    letter-spacing: 4.72px;
}

.numbered-title span {
    color: hsl( var(--clr-light) / .55);
    font-weight: 700;
    margin-right: 0.5em;
} */

.large-button {
    position: relative;
    z-index: 1;
    display: grid; /* other option is inline-block*/
    place-items: center;
    /* padding: 0 2em; */
    width: 8em;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    text-decoration: none;
}

.large-button::after {
    content: '';
    position: absolute;
    z-index: -1;
    background: hsl( var(--clr-white) / .2);
    width: 100%;
    height: 100%;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 500ms linear, transform 750ms ease;
}

.large-button:hover::after,
.large-button:focus::after {
    opacity: 1;
    transform: scale(1.5);
}

.primary-header {
    display: flex;
    justify-content: stretch;
}

nav {
    flex-grow: 1;
}

.primary-navigation {
    list-style: none;
    justify-content: space-around;
    align-items: center;
    margin-top: 2.0rem;
    padding: 0;
}

.primary-navigation a {
    text-decoration: none;
    display: flex;
    padding: 1.7rem 0;
}

.primary-navigation a > span {
    font-weight: 700;
    margin-right: .5em;
    color:hsl( var(--clr-light) / .55)
}


.underline-indicators > * {
    cursor: pointer;
    border: 0;
    border-bottom: .2rem solid hsl( var(--clr-white) / 0 );
    transition: all 500ms ease; /* this transition is causing flashes on reload */
}

.underline-indicators > *:hover, 
.underline-indicators > *:focus {
    border-color: hsl( var(--clr-white) / .5);
}

.underline-indicators > .active,
.underline-indicators > [aria-selected="true"] {
    /* color: hsl( var(--clr-white) ); */
    border-color: hsl( var(--clr-white) / 1);
}

.tabs-navigation {
    --gap: 2.5rem;
}

.dots-navigation {
    --gap: 1.25rem;
}

.dots-navigation > * {
    cursor: pointer;
    border: 0;
    background-color: hsl( var(--clr-white) / .25);
    padding: 0.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
}

.dots-navigation > *:hover {
    background-color: hsl( var(--clr-white) / .5);
}

.dots-navigation > [aria-selected="true"] {
    background-color: hsl( var(--clr-white) );
}

.numbers-navigation {
    --flow-space: 2rem;
}

.numbers-navigation > * {
    cursor: pointer;
    border: .15rem solid hsl( var(--clr-white) / .5);
    display: grid;
    place-items: center;
    width: 4rem;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    transition: all 200ms;
}

.numbers-navigation > *:hover {
    border-color: hsl( var(--clr-white) );
}

.logo1 {
    font-family: 'Legalitere';
}

.logo2 {
    z-index: 2; 
    position: absolute; 
    top: 3.8rem; 
    left: 0; 
    right: 0; 
    padding-left: 0.15rem;
    text-align: center;
}

.logo3 {
    z-index: 2; 
    position: absolute; 
    top: 8.0rem; 
    left: 0; 
    right: 0; 
    text-align: center;
}

.primary-body {
    justify-content: center;
    align-items: center;
}

.resume-button {
    padding: 20px 40px;
    font-size: 24px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 300ms ease;
}

.resume-button:hover {
    background-color: #0056b3;
}

.resume-button:active {
    background-color: #0042a2;
}

.resume-button:focus {
    outline: none;
}

.resume-button:visited {
    color: #fff;
}

.resume-button > a {
    color: #fff;
    text-decoration: none;
}


.example-component {
    background-color: hsl( var(--clr-light) / .2);
}

.box {
    background: lightblue;
    padding: 3rem;
}


.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

