/* Nothing You Could Do */
@font-face {
  font-family: 'Nothing You Could Do';
  src: url('../fonts/nothingyoucoulddo-regular.woff') format('woff');
  src: url('../fonts/nothingyoucoulddo-regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Inter Regular */
@font-face {
  font-family: 'Inter Regular';
  src: url('../fonts/InterDisplay-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Inter Semibold */
@font-face {
  font-family: 'Inter Semibold';
  src: url('../fonts/InterDisplay-SemiBold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ----------- clear browser styles and set base ----------- */

:root {
  --transition: 300ms ease-in-out;
  --padding-body: 1rem;
  --color-black: #000;
  --color-white: #fff;
  --color-blue: #01427C;
  --color-orange: #f19b38;
  --color-grey: rgb(163, 163, 163);
  --font-extra: 'Nothing You Could Do', cursive;
  --font-body: 'Inter Regular', Geneva, Verdana, sans-serif;
  --font-body--bold: 'Inter Semibold', Geneva, Verdana, sans-serif;
  --font-size-body: clamp(16px, 1.9vw, 21px);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: 0;
}

html {
  background-color: var(--color-white);
  color: var(--color-blue);
  font-size: 62.5%;
  position: relative;
}

/* html font-size and body font-size make it easy to calculate rem on the base of 16px = 1rem */
body {
  font-family: 'Inter Regular', Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
  margin: auto;
  scroll-behavior: smooth;
}

button {
  background: var(--color-orange);
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  cursor: pointer;
}

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

a {
  color: currentColor;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 1px dashed var(--color-black);
  outline-offset: 2px;
}

ul, ol {
  list-style-type: disc;
  font-size: var(--font-size-body);
}

p {
  font-size: var(--font-size-body);
  line-height: 1.3;
}

a.is-button {
  font-family: var(--font-body--bold);
  font-style: italic;
  font-size: clamp(16px, 2.2vw, 21px);
  background-color: var(--color-orange);
  padding-top: clamp(10px, 1.9vw ,16px);
  padding-right: clamp(15px, 2.1vw , 26px);
  padding-bottom: clamp(10px, 1.9vw ,16px);
  padding-left: clamp(15px, 2.1vw , 26px);
  border-radius: 13px;
  transition: var(--transition);
}

a.is-button:hover,
a.is-button:focus-visible {
  color: var(--color-orange);
  background-color: var(--color-blue);
}

h2 {
  margin-bottom: clamp(10px, 1vw , 20px);
}

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


/* ----------- website styles ----------- */

.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 3;
  background-color: var(--color-white);
  margin-bottom: 10px;
  padding-top: clamp(10px, 4%, 20px);
  padding-left: clamp(10px, 4%, 20px);
}

.header__logo {
  max-height: 80px;
}

.page-header {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.page-header__image {
  position: relative;
  width: 100%;
  max-width: 768px; /* Tablet width */
  height: auto;
  margin: auto;
}

.page-header__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 99%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.page-header__image img {
  width: 100%;
  height: auto;
}

.page-header__content {
  position: absolute;
  z-index: 2;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.page-header__headline {
  font-family: 'Nothing You Could Do', Tahoma, sans-serif;
  font-size: clamp(30px, 10vw, 80px);
  color: var(--color-white);
}

.page-header__buttons {
  display: inline-flex; /* Align buttons in one line */
  justify-content: center;
  gap: 20px; /* Space between buttons */
  margin-top: 20px;
}

.page-header__buttons .is-button {
  margin: 0 10px;
}

.content {
  max-width: 800px;
  margin-right: auto;
  margin-top: clamp(20px, 7%, 50px);
  margin-left: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.content h1 {
  margin-bottom: 20px;
}

.intro {
  margin-left: 30px;
  margin-right: 30px;
}

.intro__list-item {
  margin-bottom: clamp(10px, 0.7vw, 17px);
}

.text {
  margin-top: clamp(30px, 7%, 40px);
}

p {
  margin-bottom: clamp(10px, 0.7vw, 17px);
}

.content__buttons {
  margin-top: clamp(25px, 7vw, 70px);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

footer {
  position: sticky;
  bottom: 0;
  width: 100%;
  margin-top: 120px;
  padding: 10px;
  background-color: var(--color-white);
  z-index: 3;
}

.instagram svg {
  color: var(--color-grey);
}