@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');


/* =========================================================
   ROOT
========================================================= */

:root {
	--black: #080a0c;
	--background: #0c0f12;
	--surface: #11151a;
	--surface-light: #171c22;

	--white: #f2eee5;
	--white-soft: #d2cec5;
	--muted: #858a91;

	--gold: #c5a56a;
	--gold-light: #d8bc82;
	--gold-dark: #917342;

	--border: #252b32;
	--border-light: #303740;

	--serif: 'Playfair Display', serif;
	--sans: 'DM Sans', sans-serif;
}


/* =========================================================
   RESET
========================================================= */

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--sans);
	background: var(--background);
	color: var(--white);

	overflow-x: hidden;
}

img {
	display: block;
	max-width: 100%;
}

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


/* =========================================================
   PAGE ATMOSPHERE
========================================================= */

body::before {
	content: '';

	position: fixed;
	inset: 0;

	background:
		radial-gradient(
			circle at 75% 15%,
			rgba(197, 165, 106, 0.055),
			transparent 28%
		),
		radial-gradient(
			circle at 10% 80%,
			rgba(197, 165, 106, 0.025),
			transparent 30%
		);

	pointer-events: none;
	z-index: -2;
}


/* =========================================================
   SCIENTIFIC GRID
========================================================= */

body::after {
	content: '';

	position: fixed;
	inset: 0;

	background-image:
		linear-gradient(
			rgba(255, 255, 255, 0.018) 1px,
			transparent 1px
		),
		linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.018) 1px,
			transparent 1px
		);

	background-size: 70px 70px;

	pointer-events: none;
	z-index: -1;
}


/* =========================================================
   NAVIGATION
========================================================= */

#nav-bar {
	width: 100%;

	padding: 30px 6% 0;

	position: relative;
	z-index: 20;
}

#navbar {
	display: flex;
	align-items: center;

	width: 100%;

	padding: 23px 0 25px;

	border-bottom: 1px solid var(--border);
}


/* =========================================================
   WEBSITE NAME
========================================================= */

#website-name {
	margin-right: auto;

	font-family: var(--serif);

	font-size: 31px;

	font-weight: 600;

	letter-spacing: 0.5px;

	color: var(--white);

	transition: color 0.25s ease;
}

#website-name:hover {
	color: var(--gold);
}


/* =========================================================
   NAV LINKS
========================================================= */

#navbar > a:not(#contact-nav) {
	position: relative;
}

#navbar a {
	font-size: 16px;

	font-weight: 500;

	color: var(--muted);

	transition: color 0.25s ease;
}

#navbar a:hover {
	color: var(--white);
}


/* NAV UNDERLINE */

#navbar a:not(#contact-nav)::after {
	content: '';

	position: absolute;

	left: 0;
	bottom: -10px;

	width: 0;
	height: 1px;

	background: var(--gold);

	transition: width 0.25s ease;
}

#navbar a:not(#contact-nav):hover::after {
	width: 100%;
}


/* =========================================================
   NAVIGATION SPACING
========================================================= */

#return-home {
	margin-left: 50px;
}

#about-navbar,
#videos,
#resources,
#contact-navbar-link {
	margin-left: 40px;
}


/* =========================================================
   PROFILE IMAGE
========================================================= */

#contact-nav {
	width: 53px;
	height: 53px;

	margin-left: 44px;

	display: flex;
	align-items: center;
	justify-content: center;

	border-radius: 50%;

	border: 1px solid var(--border-light);

	overflow: hidden;

	transition:
		border-color 0.3s ease,
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

#contact-nav img {
	width: 100%;
	height: 100%;

	object-fit: cover;

	transition: transform 0.4s ease;
}

#contact-nav:hover {
	border-color: var(--gold);

	transform: translateY(-3px);

	box-shadow:
		0 0 0 5px rgba(197, 165, 106, 0.05),
		0 10px 30px rgba(0, 0, 0, 0.35);
}

#contact-nav:hover img {
	transform: scale(1.07);
}

/* ========================================
   HERO
   ======================================== */

#hero {
  position: relative;

  min-height: 440px;
  padding: 150px 8% 100px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}


/* Small gold label */

#hero-name {
  margin: 0 0 25px;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;

  color: var(--gold);
}


/* Main heading */

#hero-tagline {
  margin: 0;

  font-family: "Playfair Display", serif;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 400;
  line-height: 1.05;

  color: var(--white);
}


/* Gold italic portion */

#within-reach {
  color: var(--gold-light);
  font-style: italic;
}


/* Description */

#hero-desc {
  max-width: 620px;

  margin: 30px 0 0;

  font-size: 17px;
  line-height: 1.7;

  color: var(--muted);
}


/* Highlighted words */

.hero-desc-span {
  color: var(--white-soft);
}


/* ========================================
   DIVIDER
   ======================================== */

main > hr {
  width: 84%;
  height: 1px;

  margin: 0 auto;

  border: 0;
  background: var(--border);
}


#resource-library {
  width: 88%;
  max-width: 1400px;

  margin: 0 auto;
  padding: 100px 0 140px;

  display: flex;
  flex-wrap: wrap;

  justify-content: center;
  align-items: flex-end;

  gap: 35px;

  text-align: center;
}


#resorce-library-name {
  width: 100%;

  margin: 0 0 15px;

  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 400;

  color: var(--white);

  text-align: center;
}


.resource-filter {
  width: 280px;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 12px;
}


/* ========================================
   RESOURCE LIST
   ======================================== */

#resource-list {
  flex: 0 0 100%;

  width: 100%;
  max-width: 1400px;

  margin: 45px 0 0;

  display: flex;
  flex-direction: column;

  gap: 30px;
}


/* ========================================
   BIG RESOURCE CARD
   ======================================== */

.resource-item {
  width: 100%;
  min-height: 380px;

  display: grid;

  grid-template-columns: 100px minmax(0, 1fr) 200px;

  align-items: stretch;

  gap: 50px;

  padding: 60px 70px;

  background: var(--surface);

  border: 1px solid var(--border);

  position: relative;

  text-align: left;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}


.resource-item::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background: var(--gold-dark);

  opacity: 0.6;

  transition:
    background 0.3s ease,
    opacity 0.3s ease;
}


.resource-item:hover {
  transform: translateY(-5px);

  background: var(--surface-light);

  border-color: var(--gold-dark);
}


.resource-item:hover::before {
  background: var(--gold);
  opacity: 1;
}


/* NUMBER */

.resource-number {
  align-self: flex-start;

  font-family: "Playfair Display", serif;

  font-size: 42px;
  font-weight: 400;

  color: var(--gold-dark);

  line-height: 1;
}


/* INFORMATION */

.resource-info {
  min-width: 0;

  display: flex;
  flex-direction: column;

  justify-content: center;

  text-align: left;
}


.resource-title {
  margin: 0 0 18px;

  font-family: "Playfair Display", serif;

  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;

  line-height: 1.1;

  color: var(--white);
}


.resource-class {
  display: inline-block;

  margin: 0 12px 15px 0;

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 2.5px;
  text-transform: uppercase;

  color: var(--gold);
}


.resource-chapter {
  display: inline-block;

  margin: 0 0 20px;

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 2.5px;
  text-transform: uppercase;

  color: var(--muted);
}


.resource-description {
  max-width: 750px;

  margin: 0;

  font-size: 16px;
  line-height: 1.8;

  color: var(--muted);
}


/* RIGHT SIDE */

.resource-meta {
  height: 100%;

  display: flex;
  flex-direction: column;

  align-items: flex-end;
  justify-content: space-between;

  padding: 5px 0;

  text-align: right;
}


.resource-type {
  font-size: 11px;
  font-weight: 600;

  letter-spacing: 3px;
  text-transform: uppercase;

  color: var(--muted);
}


.resource-download {
  display: inline-block;

  font-size: 12px;
  font-weight: 600;

  letter-spacing: 2px;
  text-transform: uppercase;

  color: var(--gold-light);

  text-decoration: none;

  padding-bottom: 7px;

  border-bottom: 1px solid var(--gold-dark);

  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}


.resource-download:hover {
  color: var(--white);

  border-color: var(--gold-light);
}

/* ========================================
   CLASS & TYPE SELECTION
   ======================================== */

form {
  display: contents;
}

.resource-filter {
  width: 280px;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 14px;
}

#class-label,
#type-label {
  font-size: 10px;
  font-weight: 600;

  letter-spacing: 3px;
  text-transform: uppercase;

  color: var(--muted);
}


/* ========================================
   SELECTION BOXES
   ======================================== */

#resource-library select {
  width: 280px;
  height: 65px;

  padding: 0 55px 0 22px;

  appearance: none;

  background-color: var(--surface);

  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);

  background-position:
    calc(100% - 25px) 50%,
    calc(100% - 19px) 50%;

  background-size: 7px 7px, 7px 7px;

  background-repeat: no-repeat;

  border: 1px solid var(--border);

  color: var(--white);

  font-family: var(--sans);

  font-size: 15px;
  font-weight: 500;

  letter-spacing: 1px;

  outline: none;
  cursor: pointer;

  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}


/* ========================================
   SELECT HOVER
   ======================================== */

#resource-library select:hover {
  background-color: var(--surface-light);
  border-color: var(--gold-dark);

  transform: translateY(-2px);
}


/* ========================================
   SELECT FOCUS
   ======================================== */

#resource-library select:focus {
  border-color: var(--gold);

  box-shadow: 0 0 0 1px var(--gold-dark);
}


/* ========================================
   DROPDOWN OPTIONS
   ======================================== */

#resource-library select option {
  background: var(--surface);
  color: var(--white-soft);

  font-family: var(--sans);
}


/* ========================================
   SUBMIT BUTTON
   ======================================== */

form button[type="submit"] {
  width: 160px;
  height: 65px;

  padding: 0 25px;

  background: transparent;

  border: 1px solid var(--gold-dark);

  color: var(--gold-light);

  font-family: var(--sans);

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 3px;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

form button[type="submit"]:hover {
  background-color: rgba(197, 165, 106, 0.08);

  border-color: var(--gold);

  color: var(--white);

  transform: translateY(-2px);
}

form button[type="submit"]:active {
  transform: translateY(0);
}


#footer {
  padding: 70px 8% 30px;
  background: var(--black);
  border-top: 1px solid var(--border);
}

#footer-main {
  text-align: center;
}

#footer-name {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--white);
}

#footer-title {
  margin: 8px 0 0;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

#footer-links {
  margin: 45px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

#footer-links a {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--white-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}

#footer-links a:hover {
  color: var(--gold-light);
}

#footer-bottom {
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
}

#footer-bottom p {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

/* ========================================
   TABLET
   ======================================== */

/* =========================================================
   RESPONSIVE — LAPTOP
   ========================================================= */

@media (max-width: 1200px) {

  #nav-bar {
    padding: 25px 5% 0;
  }

  #website-name {
    font-size: 28px;
  }

  #return-home {
    margin-left: 35px;
  }

  #about-navbar,
  #videos,
  #resources,
  #contact-navbar-link {
    margin-left: 28px;
  }

  #contact-nav {
    width: 48px;
    height: 48px;
    margin-left: 30px;
  }

  #hero {
    min-height: 400px;
    padding: 120px 7% 85px;
  }

  #hero-tagline {
    font-size: clamp(44px, 7vw, 68px);
  }

  #resource-library {
    width: 90%;
    padding: 85px 0 120px;
    gap: 28px;
  }

  #resorce-library-name {
    font-size: 38px;
  }

  .resource-filter {
    width: 240px;
  }

  #resource-library select {
    width: 240px;
  }

  .resource-item {
    min-height: 340px;
    grid-template-columns: 70px minmax(0, 1fr) 150px;
    gap: 35px;
    padding: 50px 45px;
  }

  .resource-title {
    font-size: clamp(32px, 4vw, 48px);
  }
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

  #nav-bar {
    padding: 20px 6% 0;
  }

  #navbar {
    padding: 20px 0 22px;
    flex-wrap: wrap;
  }

  #website-name {
    width: 100%;
    margin-bottom: 22px;
    text-align: center;
  }

  #return-home {
    margin-left: 0;
  }

  #about-navbar,
  #videos,
  #resources,
  #contact-navbar-link {
    margin-left: 24px;
  }

  #contact-nav {
    width: 44px;
    height: 44px;
    margin-left: 24px;
  }

  #hero {
    min-height: 360px;
    padding: 105px 7% 75px;
  }

  #hero-name {
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: 3px;
  }

  #hero-tagline {
    font-size: clamp(40px, 8vw, 58px);
  }

  #hero-desc {
    max-width: 550px;
    margin-top: 25px;
    font-size: 16px;
  }

  main > hr {
    width: 88%;
  }

  #resource-library {
    width: 88%;
    padding: 75px 0 100px;
    gap: 30px;
  }

  #resorce-library-name {
    font-size: 36px;
    margin-bottom: 5px;
  }

  form {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 25px;
  }

  .resource-filter {
    width: 250px;
  }

  #resource-library select {
    width: 250px;
  }

  form button[type="submit"] {
    width: 250px;
  }

  #resource-list {
    margin-top: 35px;
    gap: 25px;
  }

  .resource-item {
    min-height: auto;
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 25px;
    padding: 45px 35px;
  }

  .resource-number {
    font-size: 36px;
  }

  .resource-title {
    font-size: clamp(30px, 6vw, 44px);
  }

  .resource-meta {
    grid-column: 2;
    height: auto;
    padding: 25px 0 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border-top: 1px solid var(--border);
  }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

  #nav-bar {
    padding: 15px 5% 0;
  }

  #navbar {
    padding: 18px 0 20px;
    justify-content: center;
  }

  #website-name {
    font-size: 25px;
    margin-bottom: 20px;
  }

  #return-home,
  #about-navbar,
  #videos,
  #resources,
  #contact-navbar-link {
    margin-left: 0;
    margin-right: 18px;
    font-size: 13px;
  }

  #contact-navbar-link {
    margin-right: 0;
  }

  #contact-nav {
    display: none;
  }

  #navbar a:not(#contact-nav)::after {
    bottom: -7px;
  }

  #hero {
    min-height: 330px;
    padding: 90px 6% 70px;
  }

  #hero-name {
    margin-bottom: 18px;
    font-size: 9px;
    letter-spacing: 2.5px;
  }

  #hero-tagline {
    font-size: clamp(36px, 11vw, 50px);
    line-height: 1.1;
  }

  #hero-desc {
    max-width: 360px;
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.6;
  }

  main > hr {
    width: 88%;
  }

  #resource-library {
    width: 88%;
    padding: 65px 0 85px;
    gap: 25px;
  }

  #resorce-library-name {
    font-size: 30px;
  }

  form {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .resource-filter {
    width: 100%;
  }

  #resource-library select {
    width: 100%;
    max-width: 340px;
    height: 58px;
    font-size: 14px;
  }

  form button[type="submit"] {
    width: 100%;
    max-width: 340px;
    height: 58px;
  }

  #resource-list {
    margin-top: 25px;
    gap: 20px;
  }

  .resource-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 35px 28px;
  }

  .resource-number {
    font-size: 32px;
  }

  .resource-info {
    display: block;
  }

  .resource-title {
    margin-bottom: 15px;
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.15;
  }

  .resource-class {
    margin-bottom: 10px;
  }

  .resource-chapter {
    margin-bottom: 15px;
  }

  .resource-description {
    font-size: 15px;
    line-height: 1.7;
  }

  .resource-meta {
    width: 100%;
    height: auto;
    padding: 20px 0 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    text-align: left;
  }

  .resource-type {
    font-size: 10px;
  }

  .resource-download {
    font-size: 11px;
  }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

  #website-name {
    font-size: 23px;
  }

  #return-home,
  #about-navbar,
  #videos,
  #resources,
  #contact-navbar-link {
    margin-right: 12px;
    font-size: 11px;
  }

  #hero {
    padding-top: 75px;
    padding-bottom: 60px;
  }

  #hero-tagline {
    font-size: 34px;
  }

  #hero-desc {
    font-size: 14px;
  }

  #resorce-library-name {
    font-size: 27px;
  }

  .resource-item {
    padding: 30px 22px;
  }

  .resource-title {
    font-size: 27px;
  }
}
