/* COLOUR PALETTE */

:root {
  --baby-blue: #b1d4e0;
  --misty-blue: #afc1d0;
  --navy-blue: #1c3f60;
  --black: #0b1320;
  --light-bg: #f8fafc;
  --light-border: #e3e7ed;
  --accent: #b1d4e0;
  --accent-dark: #afc1d0;
}

/* GLOBAL STYLES */

html {
  box-sizing: border-box;
  font-size: 70%;
  /* 1rem = 11.2px, increased from 10px */
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

html,
body {
  height: 100%;
}

body {
  /* Cheerful gradient background for diary */
  background: linear-gradient(120deg, var(--light-bg) 0%, #e9ecef 100%);
  min-height: 100vh;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0;
  color: var(--black);
}

h1,
h2,
h3 {
  font-family: "Courgette", serif;
  font-weight: 400;
  margin: 0;
  color: var(--black);
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 0.6em;
}

h2 {
  font-size: 3rem;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 2rem;
}

/* LINKS */

a {
  color: var(--navy-blue);
  transition: color 0.15s;
}

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration: none;
}

.btn {
  background: linear-gradient(
    90deg,
    var(--baby-blue) 0%,
    var(--misty-blue) 100%
  );
  color: var(--navy-blue);
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
  display: inline-block;
  padding: 0.9em 2.2em;
  letter-spacing: 0.12em;
  border-radius: 24px;
  border: none;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  cursor: pointer;
  margin: 0 0.5em;
}

.btn:hover,
.btn:focus {
  background: linear-gradient(
    90deg,
    var(--misty-blue) 0%,
    var(--baby-blue) 100%
  );
  color: var(--black);
  box-shadow: 0 6px 18px rgba(44, 62, 80, 0.13);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin: 2em 0 1em 0;
}

/* LAYOUT */

header,
main,
footer {
  max-width: 700px;
  margin: 48px auto 0 auto;
  padding: 36px 28px 28px 28px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px 0 rgba(44, 62, 80, 0.08);
  text-align: left;
}

header {
  margin-bottom: 0;
  padding-bottom: 4px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

main {
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 0;
  padding-top: 12px;
  padding-bottom: 12px;
}

footer {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding-top: 24px;
  background: #f5f7fa;
  color: #263238;
  font-size: 1.3rem;
  text-align: center;
}

footer a {
  color: var(--navy-blue);
}

footer a:hover {
  color: var(--accent-dark);
}

.socials {
  list-style: none;
  padding: 0;
  margin: 1em 0 0 0;
  display: flex;
  justify-content: center;
  gap: 1.5em;
}

.socials li {
  display: inline-block;
}

.socials img {
  width: 32px;
  height: 32px;
  filter: grayscale(0.1) brightness(0.95) sepia(0.2) hue-rotate(180deg)
    saturate(1.2);
  transition: filter 0.15s, transform 0.13s;
}

.socials img:hover {
  filter: grayscale(0) brightness(1.1) hue-rotate(180deg) saturate(1.4);
  transform: scale(1.08);
}

/* NAVIGATION */

nav {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--light-border);
  text-align: center;
  display: flex;
  flex-direction: row;
  gap: 2.5em;
  justify-content: center;
}

nav a {
  color: var(--navy-blue);
  font-weight: 500;
  font-size: 1.3rem;
  padding: 0.5em 1.2em;
  border-radius: 18px;
  background: none;
  border: none;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  display: inline-block;
}

nav a:hover,
nav a:focus {
  background: var(--light-border);
  color: var(--black);
  text-decoration: none;
  outline: none;
}

/* LISTS */

ul {
  padding-left: 20px;
  margin: 1.3em 0;
}

li {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}

ol {
  margin: 1.5em 0 1.5em 2em;
  font-size: 1.3rem;
}

p {
  font-size: 1.3rem;
}

/* CODE SECTION */

pre,
.code {
  background-color: #f5f7fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.06);
  padding: 18px 18px 18px 22px;
  margin: 1.5em 0;
  font-family: "Fira Mono", "Consolas", "Menlo", "Monaco", monospace;
  font-size: 1.18rem;
  color: #263238;
  overflow-x: auto;
  border: 1px solid var(--light-border);
  line-height: 1.7;
}

pre {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  font-size: inherit;
  color: inherit;
  font-family: inherit;
}

.code code,
pre code {
  background: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  border: none;
}

/* Optional: Add a subtle scroll bar for overflow */
.code::-webkit-scrollbar,
pre::-webkit-scrollbar {
  height: 8px;
  background: var(--light-border);
  border-radius: 8px;
}
.code::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}

/* VIDEO */

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 2em 0;
}

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

/* IMAGES */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* QUOTE */
.quote {
  font-style: italic;
  background: #f5f7fa;
  border-left: 4px solid var(--accent);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  color: #555;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  header,
  main,
  footer {
    max-width: 98vw;
    padding: 18px 6vw 18px 6vw;
  }

  .btn-container {
    gap: 40px;
  }

  nav {
    gap: 1.2em;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 60%;
  }

  header,
  main,
  footer {
    padding: 10px 2vw 10px 2vw;
    max-width: 100vw;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .btn-container {
    flex-direction: column;
    gap: 1em;
  }

  nav {
    flex-direction: column;
    gap: 0.7em;
  }
}

/* Remove redundant .container styles */
.container {
  /* removed */
}
