/*
    Innis & Gunn - Coming Soon holding page

*/
@font-face {
  font-family: 'Ivar Text';
  src: url('assets/fonts/IvarText-Regular.woff2') format('woff2'),
    url('assets/fonts/IvarText-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brandon Grotesque';
  src: url('assets/fonts/BrandonGrotesque-Regular.woff2') format('woff2'),
    url('assets/fonts/BrandonGrotesque-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brandon Grotesque';
  src: url('assets/fonts/BrandonGrotesque-Medium.woff2') format('woff2'),
    url('assets/fonts/BrandonGrotesque-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brandon Grotesque';
  src: url('assets/fonts/BrandonGrotesque-Bold.woff2') format('woff2'),
    url('assets/fonts/BrandonGrotesque-Bold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brandon Grotesque';
  src: url('assets/fonts/BrandonGrotesque-Black.woff2') format('woff2'),
    url('assets/fonts/BrandonGrotesque-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/*
  Root variables */

:root {
    --brand-font: "Brandon Grotesque", sans-serif;
    --font-base: 900;
    --color-dark: #030303;
    --color-light: #ffffff;
    --brand-cream: #f1e7dd;
    --brand-orange: #ab9f4f;
    --brand-cyan: #20c1dd;
    --brand-yellow: #fec529;
    --size-step-0: 1rem;
    --size-step-1: 1.5rem;
    --size-step-2: 2.5rem;
    --leading-standard: 1.5;
    --wrapper-max-width: 1230px;
    --gutter: 1.5rem;
    --gap: 1rem;
}

/* 
  Modern reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin-block-end: 0;
}

ul[role='list'],
ol[role='list'] {
    list-style: none;
}

body {
    min-height: 100vh;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
button,
input,
label {
    line-height: 1.1;
}

h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

img,
picture {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font: inherit;
}

textarea:not([rows]) {
    min-height: 10em;
}

:target {
    scroll-margin-block: 5ex;
}

/* 
  Global styles  */

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
    position: relative;
    background: var(--brand-cream);
    color: var(--color-dark);
    font-size: var(--size-step-0);
    font-family: var(--brand-font);
    line-height: var(--leading-standard);
}

:focus-visible {
	outline-width: 3px;
	outline-style: solid;
	outline-color: var(--brand-cyan);
	outline-offset: 2px;
}

/* 
  Fonts  */

h1 {
    margin: 0;
    font-family: inherit;
    font-size: 2.625rem;
    font-weight: var(--font-base);
    text-transform: uppercase;
    letter-spacing: 1px;

    @media screen and (min-width: 768px) {
        font-size: 4rem;
    }
}

/* 
  Content  */

.coming-soon {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 2rem;
    gap: 2rem;
    width: 100%;
    height: 100vh;
    z-index: 1;

    @media screen and (min-width: 768px) {
        padding-bottom: 4rem;
    }
}

/* 
  Background  */

.background {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: hidden;

    img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        object-position: calc(50% - 100px) center;
        
        @media screen and (min-width: 768px) {
            object-position: top center;
        }
    }

    @media screen and (min-width: 768px) {
        top: 0;
    }
}

/* 
  Links  */

.social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--brand-orange);
    border-radius: 6px;
    color: var(--color-light);
    transition: all 0.25s linear;

    &:hover {
        background-color: var(--color-dark);
    }
}

.terms-link {
    display: block;
    width: max-content;
    margin-inline: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-dark);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.16em;
    cursor: pointer;
    transition: color 0.25s linear;

    &:hover {
        color: var(--brand-orange);
    }
}

/* 
  Dialog
*/

.terms-dialog {
    width: min(90vw, 42rem);
    margin: auto;
    border: 0;
    border-radius: 0.75rem;
    padding: 0;
    background: var(--color-light);
    color: var(--color-dark);
    box-shadow: 0 1.5rem 3rem rgb(3 3 3 / 0.3);
}

.terms-dialog::backdrop {
    background: rgb(3 3 3 / 0.6);
}

.terms-dialog__inner {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;

    @media screen and (min-width: 768px) {
        padding: 2rem;
    }
}

.terms-dialog h2 {
    margin: 0;
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.terms-dialog p {
    margin: 0;
}

.terms-dialog__close {
    justify-self: start;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 0.375rem;
    background: var(--brand-orange);
    color: var(--color-light);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s linear;
    position: absolute;
    right: 1rem;
    top: 1rem;

    &:hover {
        background: var(--color-dark);
    }
}

/* 
  Icons  */

.icon {
    width: 1.5em;
    height: 1.5em;
    color: currentColor;
    fill: currentColor;
}

/* 
  Helpers  */

.visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.flow > * + * {
    margin-block-start: var(--size-step-0);
}

.text-center {
    text-align: center;
}
