@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@500;600;700&display=swap');

:root {
  --abyssal: hsl(208 64% 11%);
  --ocean-depth: hsl(206 52% 21%);
  --submerged: hsl(202 46% 33%);
  --warm-light: hsl(38 82% 71%);
  --diffused-glow: hsl(40 29% 84%);
  --soft-cream: hsl(60 12% 95%);
  --light-blue: hsl(205 35% 79%);
  --cool-gray: hsl(212 28% 70%);
  --card-shadow: 0 32px 90px -48px hsl(206 52% 21% / 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.75;
  color: var(--submerged);
  background:
    radial-gradient(circle at top left, hsl(38 82% 71% / 0.16), transparent 28%),
    radial-gradient(circle at bottom right, hsl(202 46% 33% / 0.12), transparent 34%),
    linear-gradient(180deg, var(--soft-cream) 0%, hsl(205 35% 79% / 0.28) 100%);
}

a {
  color: var(--ocean-depth);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  opacity: 0.82;
}

.nav,
.nav-back {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 1.25rem;
  color: var(--cool-gray);
  font-size: 0.95rem;
}

.nav a,
.nav-back a {
  color: var(--submerged);
  text-decoration: none;
  font-weight: 500;
}

article {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  padding: 2rem clamp(1.25rem, 2vw, 2.5rem) clamp(2rem, 3vw, 3rem);
  border: 1px solid hsl(206 52% 21% / 0.1);
  border-radius: 2rem;
  background:
    linear-gradient(160deg, hsl(60 12% 95% / 0.96), hsl(40 29% 84% / 0.84), hsl(60 12% 95% / 0.98));
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
}

header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid hsl(206 52% 21% / 0.08);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  color: var(--abyssal);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.08;
}

h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  line-height: 1.14;
}

h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 1.2;
  color: var(--ocean-depth);
}

p,
ul,
ol,
table,
blockquote {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

p,
li,
td,
th {
  font-size: 1.05rem;
}

.meta {
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--submerged);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-image,
article img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 1.4rem;
  margin: 0 0 2rem;
  box-shadow: 0 26px 60px -42px hsl(206 52% 21% / 0.28);
}

strong {
  color: var(--abyssal);
}

em {
  color: var(--ocean-depth);
}

ul,
ol {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.45rem;
}

blockquote {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--warm-light);
  border-radius: 0 1rem 1rem 0;
  background: linear-gradient(135deg, hsl(60 12% 95% / 0.88), hsl(40 29% 84% / 0.58));
  color: var(--ocean-depth);
  font-size: 1.08rem;
}

table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 1.25rem;
  border: 1px solid hsl(206 52% 21% / 0.08);
  background: hsl(60 12% 95% / 0.76);
}

thead,
tr:first-child:has(th) {
  background: linear-gradient(135deg, var(--ocean-depth), var(--submerged));
  color: var(--soft-cream);
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
}

td {
  border-bottom: 1px solid hsl(206 52% 21% / 0.08);
}

tr:nth-child(even) td {
  background: hsl(40 29% 84% / 0.24);
}

.cta,
.download-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid hsl(38 82% 71% / 0.42);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--ocean-depth), hsl(202 46% 33% / 0.96));
  box-shadow: 0 28px 70px -42px hsl(206 52% 21% / 0.5);
  color: var(--soft-cream);
  text-align: center;
}

.cta p:last-child,
.download-cta p:last-child {
  margin-bottom: 0;
}

.cta a,
.download-cta a {
  color: var(--warm-light);
  font-weight: 700;
}

footer {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid hsl(206 52% 21% / 0.1);
  color: var(--submerged);
  font-size: 0.95rem;
}

footer a {
  color: var(--ocean-depth);
}

@media (max-width: 768px) {
  .nav,
  .nav-back {
    width: min(900px, calc(100% - 1.5rem));
    padding-top: 1.25rem;
  }

  article,
  footer {
    width: min(900px, calc(100% - 1.5rem));
  }

  article {
    border-radius: 1.5rem;
    padding: 1.5rem 1rem 2rem;
  }

  p,
  li,
  td,
  th {
    font-size: 1rem;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
