/* ************************* */
/*           Reset           */
/* ************************* */

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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
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;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

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

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

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

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

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@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;
    }
}

/* ************************* */
/*         Variables         */
/* ************************* */

:root {

    --clr-primary-100: hsl(193, 38%, 86%);
    --clr-primary-400: hsl(150, 100%, 66%);

    --clr-neutral-400: hsl(217, 19%, 38%);
    --clr-neutral-700: hsl(217, 19%, 24%);
    --clr-neutral-800: hsl(218, 23%, 16%);

    --ff: 'Manrope', sans-serif;

    --base-size: 16px;

    /* 3:4 <-> 1.125*/
    --scale-90: calc(var(--base-size)*0.624);
    --scale-100: calc(var(--base-size)*0.702);
    --scale-200: calc(var(--base-size)*0.79);
    --scale-300: calc(var(--base-size)*0.889);
    --scale-400: var(--base-size);
    --scale-500: calc(var(--base-size)*1.125);
    --scale-600: calc(var(--base-size)*1.266);
    --scale-700: calc(var(--base-size)*1.424);
    --scale-800: calc(var(--base-size)*1.602);
    --scale-900: calc(var(--base-size)*1.802);
    --scale-1000: calc(var(--base-size)*2.027);
    --scale-1100: calc(var(--base-size)*2.281);
    --scale-1200: calc(var(--base-size)*2.566);
    --scale-1300: calc(var(--base-size)*2.887);
    --scale-1400: calc(var(--base-size)*3.247);
    --scale-1500: calc(var(--base-size)*3.653);
    --scale-1600: calc(var(--base-size)*4.11);

    /* font size */
    --fs-90: var(--scale-90);
    --fs-100: var(--scale-100);
    --fs-100: var(--scale-100);
    --fs-200: var(--scale-200);
    --fs-300: var(--scale-300);
    --fs-400: var(--scale-400);
    --fs-500: var(--scale-500);
    --fs-600: var(--scale-600);
    --fs-700: var(--scale-700);
    --fs-800: var(--scale-800);
    --fs-900: var(--scale-900);
    --fs-1000: var(--scale-1000);
    --fs-1100: var(--scale-1100);
    --fs-1200: var(--scale-1200);
    --fs-1300: var(--scale-1300);
    --fs-1400: var(--scale-1400);
    --fs-1500: var(--scale-1500);
    --fs-1600: var(--scale-1600);

    /* font weight */
    --fw-800: 800;
}

/* ************************* */
/*        Composition        */
/* ************************* */

body {
    background: var(--clr-neutral-800);
    color: var(--clr-primary-100);
    font-family: var(--ff);
    font-size: var(--fs-400);
    font-weight: var(--fw-800);

    padding: 1em;
    margin-inline: auto;
    max-width: 30em;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5rem;
}

img {
    width: 100%;
}

footer {
    text-align: center;
}

footer a {
    color: var(--clr-primary-400);
}

/* ************************* */
/*         Utilities         */
/* ************************* */

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

.fs-x-sm {
    font-size: var(--fs-100);
}

.fs-sm {
    font-size: var(--fs-300);
}

.fs-m {
    font-size: var(--fs-400);
}

.fs-l {
    font-size: var(--fs-600);
}

.fs-x-l {
    line-height: 1;
    font-size: var(--fs-900);
}

/* ************************* */
/*          Blocks           */
/* ************************* */

.flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.advice-card {
    background: var(--clr-neutral-700);
    border-radius: 1rem;
    text-align: center;
    padding: 3rem 1rem 4rem;

    position: relative;
}

.advice-card-title {
    color: var(--clr-primary-400);
    text-transform: uppercase;
    font-size: var(--fs-100);
    letter-spacing: 4px;
}

.advice-card-text {
    font-size: var(--fs-700);

    transition: all 100ms ease-out;
}

.advice-card-text::before {
    content: open-quote;
}

.advice-card-text::after {
    content: close-quote;
}

.advice-card-button {
    background: var(--clr-primary-400);
    border-color: transparent;
    border-radius: 50%;
    padding: 1rem;

    position: absolute;
    left: calc(50% - 30px);
    bottom: -30px;

    transition: box-shadow 100ms ease-out, rotate 100ms ease-out;
}

.advice-card-button:active {
    rotate: 45deg;
}

/* ************************* */
/*        Exceptions         */
/* ************************* */




/* Primary Input is a fine pointer device such as a mouse or stylus */
@media (pointer:fine) {

    .advice-card-button:hover,
    .advice-card-button:focus-visible {
        cursor: pointer;
        box-shadow: 0 0 15px var(--clr-primary-400);
        rotate: 45deg;
    }

    .advice-card-button:active {
        transform: scale(0.95);
    }
}

@media (min-width: 48em) {
    .advice-card {
        padding: 3rem 3rem 4rem;
        ;
    }
}