/* Plain*Work | style.css
   Colours: Deep teal #2A7B6F, Warm charcoal #2D2D2D, Off-white #FAFAF7, Cool grey #E8EAED
   Typography: Inter (Light wordmark, Regular body, Semi-Bold headings) + Juniper Bay (annotations)
*/

@font-face {
  font-family: 'Juniper Bay';
  src: url('fonts/JuniperBay-Regular.woff2') format('woff2'),
       url('fonts/JuniperBay-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---- Base ---- */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: #FAFAF7;
  color: #2D2D2D;
  line-height: 1.8;
}

a {
  color: #2A7B6F;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Layout ---- */
.site-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.site-header {
  padding: 32px 0;
  border-bottom: 1px solid #E8EAED;
  margin-bottom: 56px;
}

.site-header .site-wrapper {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.nav-wordmark {
  text-decoration: none;
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.nav-wordmark:hover {
  text-decoration: none;
}

.wordmark-img {
  height: 20px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #2D2D2D;
  text-decoration: none;
}

.site-nav a:hover {
  color: #2A7B6F;
}

.site-nav a.active {
  color: #2A7B6F;
}

/* ---- Main content ---- */
main {
  padding-bottom: 80px;
}

/* ---- Typography ---- */
h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: #2D2D2D;
  margin-bottom: 8px;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: #2D2D2D;
  margin-top: 48px;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #2D2D2D;
  margin-top: 32px;
  margin-bottom: 12px;
}

p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 65ch;
}

/* ---- Subtitle (case study metadata) ---- */
.subtitle {
  font-size: 14px;
  color: #2A7B6F;
  font-weight: 600;
  margin-bottom: 40px;
}

/* ---- Juniper Bay annotations ---- */
.annotation {
  font-family: 'Juniper Bay', cursive;
  font-size: 22px;
  line-height: 1.5;
  color: #2A7B6F;
  padding: 8px 0;
  margin: 32px 0 32px 40px;
  position: relative;
}

.annotation.tilt-right {
  transform: rotate(1deg);
  margin-left: 60px;
}

.annotation.tilt-left {
  transform: rotate(-2deg);
  margin-left: 20px;
}

.annotation.tilt-slight {
  transform: rotate(-1.5deg);
  margin-left: 40px;
}

/* ---- Cards (for Work and Thinking index pages) ---- */
.card-list {
  list-style: none;
  margin-top: 32px;
}

.card-list li {
  margin-bottom: 32px;
}

.card-link {
  display: block;
  padding: 24px;
  background: #FAFAF7;
  border: 1px solid #E8EAED;
  border-radius: 4px;
  text-decoration: none;
  color: #2D2D2D;
  transition: border-color 0.15s ease;
}

.card-link:hover {
  border-color: #2A7B6F;
  text-decoration: none;
}

.card-link h3 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 18px;
}

.card-link .card-meta {
  font-size: 13px;
  color: #2A7B6F;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-link p {
  font-size: 15px;
  margin-bottom: 0;
  color: #555;
}

/* ---- Home page ---- */
.home-hero {
  margin-bottom: 56px;
}

.home-hero h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.home-hero .tagline {
  font-size: 18px;
  color: #2A7B6F;
  font-weight: 400;
  margin-bottom: 8px;
}

.tagline-mark {
  font-family: 'Juniper Bay', cursive;
  font-size: 24px;
  color: #2A7B6F;
  margin-right: 2px;
}

.highlight {
  background-image: url('scribble-underline.svg');
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% 8px;
  padding-bottom: 6px;
}

.home-section {
  margin-bottom: 48px;
}

.home-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2A7B6F;
  font-weight: 600;
  margin-bottom: 20px;
}

.home-cta {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #E8EAED;
}

.home-cta a {
  font-weight: 600;
  font-size: 16px;
}

/* ---- Divider ---- */
.divider {
  border: none;
  border-top: 1px solid #E8EAED;
  margin: 48px 0;
}

/* ---- Contact page ---- */
.contact-info {
  margin-top: 24px;
}

.contact-info p {
  margin-bottom: 12px;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid #E8EAED;
  padding: 32px 24px;
  margin-top: 40px;
}

.site-footer .site-wrapper {
  max-width: 100%;
}

.site-footer p {
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-wordmark {
  height: 13px;
  width: auto;
  vertical-align: baseline;
  opacity: 0.5;
}

.site-footer a {
  color: #888;
}

.site-footer a:hover {
  color: #2A7B6F;
}

/* ---- Back link on content pages ---- */
.back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .site-header .site-wrapper {
    gap: 16px;
  }

  .nav-wordmark {
    width: 100%;
    margin-right: 0;
  }

  .site-nav {
    gap: 20px;
  }

  .site-nav a {
    font-size: 13px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
    margin-top: 36px;
  }

  .annotation {
    font-size: 19px;
    margin-left: 16px;
  }

  .annotation.tilt-right {
    margin-left: 24px;
  }

  .annotation.tilt-left {
    margin-left: 8px;
  }

  .card-link {
    padding: 20px;
  }

  .home-hero h1 {
    font-size: 26px;
  }
}
