/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "League Spartan", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}
/* Center main body content in viewport */
main {
  display: flex;
  flex-direction: column;
  align-items: center;     /* horizontally centers page content */
}

a {
  color: #007acc;
  text-decoration: underline;
}

a:hover {
  text-decoration: underline;
}

ul li {
	list-style-type: square;
}
#process li {
	list-style-type: none;
}


/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 9999;   /* keeps header above card blocks */
}

.site-header .logo {
  font-weight: bold;
  font-size: 1.5rem;
}

.site-header .logo img {
  width: 100%;
  height: 50px;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
}

.site-header nav ul {
  display: flex;
  gap: 1.5rem;
  font-family: "League Spartan", sans-serif;
}

.site-header nav li {
  list-style: none;
  font-size: 1.4rem;
}

/* Hero Section */
.hero {
  padding: 2rem 1rem;
}

.hero h1 {
  font-family: "ChunkFive-Regular";
  font-size: 5rem;
  line-height: 5rem;
}
.hero p {
  font-family: "League Spartan";
  font-weight: 900;
  font-size: 2rem;
}

/*.hero-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}*/
/* Hero layout: image left, text right */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem; /* space between image and text */
}

.hero-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;  /* prevents image from shrinking */
}

.hero-text {
  text-align: left; /* switch from centered text */
  max-width: 600px;
}

.hero-text h1,
.hero-text p {
  text-align: left;
}

/* Mobile: stack vertically and center text again */
@media (max-width: 700px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }
}
/* Sections */
section {
	padding: 1rem 1rem;
  margin: auto auto;
}

section h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

/* Featured Work Section */
.featured-work, .extras, .contact {
  padding: 2rem 4rem;
  width: 100%;
  max-width: 1200px;
  margin: auto auto;
}

.extras .work-card img {
    object-fit: contain;  /* instead of cover */
    background: white;
    padding: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  display: block;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px; /* keeps image corners rounded inside card */
  display: block;
  padding: 0.5rem; /* space around the image */
  box-sizing: border-box;
}

.card h3 {
  margin: 0.5rem 1rem 0.5rem;
  font-size: 1.25rem;
}

.card p {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #555;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Projects, Extras, Media lists */
ul {
  list-style: square;
}

ul li {
  margin-bottom: 0rem;
}

/* Contact */
.contact form {
  display: grid;
  gap: 1rem;
}

.contact label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.contact input,
.contact textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact button {
  width: fit-content;
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: #007acc;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.contact button:hover {
  background-color: #005fa3;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #777;
}
/* Case Study Layout */
.case-study {
  max-width: 1000px;
  margin: auto auto;
  padding: 2rem 1rem;
}

.case-intro h1 {
  font-family: "ChunkFive-Regular";
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;   /* tighter, reduces vertical space */
}

.case-summary {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.table-of-contents {
  background: #f7f7f7;
  padding: 1.5rem 1rem;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.table-of-contents h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.table-of-contents ol {
  list-style: decimal;
  padding-left: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1.5rem; /* row gap, column gap */
}

.table-of-contents li {
  margin: 0;
}

.table-of-contents a {
  text-decoration: underline;
  color: #007acc;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

/* Mobile: stack into one column */
@media (max-width: 600px) {
  .table-of-contents ol {
    grid-template-columns: 1fr;
  }
}

.case-study section {
  margin-bottom: 2.5rem;
}

.case-study img {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 1rem;
}

/* Fonts */
@font-face {
	font-family:"TheNeueBlack";
	src:url(fonts/TheNeue-Black.otf);
}
@font-face {
	font-family: "ChunkFive-Regular";
	src:url(fonts/ChunkFive-Regular.woff2);
}
@font-face {
  font-family: 'League Spartan';
  src: url('fonts/LeagueSpartan-VF.woff2') format('woff2 supports variations'),
  		url('fonts/LeagueSpartan-VF.woff2') format('woff2-variations');
  font-weight: 200 900;
}

/* =========================
   MEMPHIS MILANO THEME
   ========================= */
:root{
  /* Palette: bright, high-contrast, 80s pop */
  --mm-yellow: #ffe66d;
  --mm-pink:   #ff6bb5;
  --mm-teal:   #28d7c6;
  --mm-blue:   #3b66ff;
  --mm-black:  #0c0c0c;
  --mm-white:  #ffffff;

  /* Accent neutrals */
  --mm-cream:  #fff6e6;
  --mm-gray:   #2e2e2e;

  /* Common tokens */
  --mm-border: 4px;
  --mm-radius: 10px;
  --mm-shadow: 10px 10px 0 0 var(--mm-black);
  --mm-card-gap: 1.25rem;
}

/* Typography: bold sans + tight headings */
body {
  /*font-family: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, "Segoe UI", Roboto, "Inter", "Poppins", sans-serif;*/
  color: var(--mm-black);
  background:
    /* subtle dot pattern */
    url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'>\
      <circle cx='2' cy='2' r='2' fill='%23e6e6e6'/>\
    </svg>") repeat,
    var(--mm-cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Header bar: blocky and bright */
.site-header {
  /*background: var(--mm-yellow);*/
  background: linear-gradient(90deg, var(--mm-teal) 0%, var(--mm-teal) 65%, var(--mm-pink) 65% 100%);
  border-bottom: var(--mm-border) solid var(--mm-black);
  box-shadow: var(--mm-shadow);
  margin: 0 1rem;
  border-radius: 0 0 var(--mm-radius) var(--mm-radius);
}

.site-header .logo {
  font-weight: 900;
  background: var(--mm-pink);
  color: var(--mm-black);
  padding: 0.25rem 0.5rem;
  border: var(--mm-border) solid var(--mm-black);
  border-radius: 6px;
  box-shadow: 4px 4px 0 0 var(--mm-black);
}

.site-header nav ul {
  gap: 1rem;
}

.site-header a {
  font-weight: 700;
  color: var(--mm-black);
  padding: 0.25rem 0.5rem;
  border: var(--mm-border) solid transparent;
}
.site-header a:hover {
  border-color: var(--mm-black);
  background: var(--mm-yellow);
}

/* Hero section: color block + pattern stripe */
.hero {
  position: relative;
  margin: 2rem 1rem 1rem;
  padding: 3rem 1rem;
  background: linear-gradient(90deg, var(--mm-teal) 0%, var(--mm-teal) 65%, var(--mm-pink) 65% 100%);
  border: var(--mm-border) solid var(--mm-black);
  box-shadow: var(--mm-shadow);
  border-radius: var(--mm-radius);
  overflow: hidden;
}

.hero::after, .site-header::after {
  /* diagonal stripe overlay */
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,0.08) 14px 24px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero h1, .hero p {
  color: var(--mm-black);
}

/* ===== Work grid (renamed earlier) ===== */
.featured-work, .extras { margin: 2rem 1rem; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--mm-card-gap);
}

/* Memphis card styling */
.work-card {
  background: var(--mm-white);
  border: var(--mm-border) solid var(--mm-black);
  border-radius: 0; /* keep it blocky */
  box-shadow: var(--mm-shadow);
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 120ms ease;
}

.work-card:hover { transform: translate(-2px, -2px); }

/* Image inset with colorful frame */
.work-card img {
  width: calc(100% - 1rem);
  height: 160px;
  object-fit: cover;
  display: block;
  margin: 0.5rem auto 0; /* inset look */
  border: var(--mm-border) solid var(--mm-black);
  background: var(--mm-yellow);
}
.work-card h3 {
	padding: 0.5rem;
}
/* =========================================================
   Image + Caption Styling
   ========================================================= */

/* Container for figure elements */
.image-figure {
  margin: 2rem 0;
  text-align: center;
}

.image-figure img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--fun-border);
  box-shadow: var(--fun-soft-shadow);
}
/* =========================================================
   Image Captions (Magazine + Memphis subtle style)
   ========================================================= */

.image-figure {
  margin: 1.5rem 0;
  text-align: center;
}

.image-figure img {
  width: 100%;
  border: var(--mm-border) solid var(--mm-black);
  background: var(--mm-cream);
  padding: 0.75rem;
  box-shadow: 12px 12px 0 0 var(--mm-blue);
  border-radius: var(--mm-radius);
}

.image-figure figcaption {
  margin-top: 0.35rem;      /* reduced space */
  font-size: 0.95rem;
  color: var(--mm-gray);
  font-style: italic;
  line-height: 1.4;
  text-align: left;         /* left-align */
  max-width: 100%;          /* aligns with the image width */
}

.work-card h3::after {
  /* tiny zigzag sticker */
  content: "";
  position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 12px;
  background: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'>\
    <polyline points='0,18 8,6 16,18 24,6 32,18 40,6 48,18' \
      fill='none' stroke='%230c0c0c' stroke-width='4'/>\
  </svg>") no-repeat center/contain;
}

.work-card p {
  margin: 0 0.75rem 1rem;
  color: var(--mm-gray);
}

/* Buttons (if any) */
button, .btn {
  appearance: none;
  background: var(--mm-pink);
  color: var(--mm-black);
  border: var(--mm-border) solid var(--mm-black);
  padding: 0.6rem 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 6px 6px 0 0 var(--mm-black);
}
button:hover, .btn:hover {
  transform: translate(-2px, -2px);
}

/* Case study page polish */
.case-study {
  background: var(--mm-white);
  border: var(--mm-border) solid var(--mm-black);
  box-shadow: var(--mm-shadow);
  border-radius: var(--mm-radius);
  margin: 2rem 1rem;
  padding: 2rem 1.25rem;
}

.table-of-contents {
  background: var(--mm-yellow);
  border: var(--mm-border) solid var(--mm-black);
  box-shadow: 6px 6px 0 0 var(--mm-black);
}

.table-of-contents h2 {
  background: var(--mm-blue);
  color: var(--mm-white);
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: var(--mm-border) solid var(--mm-black);
  margin-bottom: 0.75rem;
}

.table-of-contents ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem 1.25rem;
  list-style: decimal;
  padding-left: 1.25rem;
}
@media (max-width: 700px){
  .table-of-contents ol { grid-template-columns: 1fr; }
}

/* Footer: sticker strip look */
.site-footer {
  margin: 2rem 1rem 3rem;
  background: var(--mm-teal);
  border: var(--mm-border) solid var(--mm-black);
  box-shadow: var(--mm-shadow);
  border-radius: var(--mm-radius);
}

/* =========================
   Decorative Memphis shapes
   ========================= */
.memphis {
  position: relative;
  overflow: hidden;
}
.memphis .shape {
  position: absolute;
  width: 120px; height: 120px;
  z-index: 0;
  opacity: .9;
}

/* Dots */
.shape--dots { 
  background: var(--mm-pink) url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'>\
    <circle cx='3' cy='3' r='2' fill='%230c0c0c'/>\
  </svg>") repeat;
  border: var(--mm-border) solid var(--mm-black);
}

/* Triangles */
.shape--tri {
  background:
    conic-gradient(from 0deg at 50% 66%, var(--mm-yellow) 0 120deg, transparent 0 360deg);
  border: var(--mm-border) solid var(--mm-black);
}

/* Squiggle (inline SVG) */
.shape--squiggle {
  background: var(--mm-teal);
  border: var(--mm-border) solid var(--mm-black);
}
.shape--squiggle-alt {
  background: var(--mm-pink);
  border: var(--mm-border) solid var(--mm-black);
}
.shape--squiggle-alt-2 {
  background: var(--mm-yellow);
  border: var(--mm-border) solid var(--mm-black);
}
.shape--squiggle::after, .shape--squiggle-alt::after, .shape--squiggle-alt-2::after {
  content:"";
  position:absolute; inset:10% 10%;
  background: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'>\
    <path d='M0,30 C30,0 70,60 100,30 130,0 170,60 200,30' \
      fill='none' stroke='%230c0c0c' stroke-width='8'/>\
  </svg>") no-repeat center/contain;
}

/* Example positions (tweak per section) */
.hero .shape--dots   { top:-20px; left:-20px; transform: rotate(8deg); }
.hero .shape--tri    { bottom:-30px; right:-10px; transform: rotate(-15deg); }
.featured-work .shape--squiggle, .extras .shape--squiggle, .featured-work .shape--squiggle-alt, .extras .shape--squiggle-alt, .featured-work .shape--squiggle-alt-2, .extras .shape--squiggle-alt-2 { top:-30px; right:15%; transform: rotate(10deg); }

/* Accessibility: ensure link focus visible on colorful backgrounds */
a:focus-visible, button:focus-visible {
  outline: 3px dashed var(--mm-black);
  outline-offset: 2px;
}
/* Magazine-style reading column */
.case-study {
  width: 70%;
  max-width: 1200px;   /* optional safety cap */
  min-width: 300px;    /* optional for mobile stability */
  margin: 3rem auto;             /* more white space around the content */
  padding: 3rem 2rem;
  line-height: 1.75;             /* smoother reading rhythm */
  font-size: 1.15rem;
  background: var(--mm-white);
  border: var(--mm-border) solid var(--mm-black);
  box-shadow: 12px 12px 0 0 var(--mm-black);
  border-radius: var(--mm-radius);
}
.case-study h2 {
  font-family: "ChunkFive-Regular", serif;
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
  text-transform: none;        /* remove ALL CAPS to match magazine tone */
  letter-spacing: 0;
  border-bottom: 4px solid var(--mm-pink);
  padding-bottom: 0.25rem;
}
.case-study p.body-paragraph:first-of-type::first-letter {
  font-family: "ChunkFive-Regular", serif;
  font-size: 3.6rem;
  float: left;
  line-height: 0.85;
  padding-right: 0.35rem;
  padding-top: 0.25rem;
  color: var(--mm-blue);
}
.case-study .multi-column {
  column-count: 2;
  column-gap: 2.25rem;
}

@media (max-width: 900px) {
  .case-study .multi-column {
    column-count: 1;
  }
}

@media (max-width: 900px) {
  .case-study {
    width: 100%;        /* use full screen */
    padding: 1.5rem 0.5rem;  /* reduce side padding */
    margin: 2rem auto;     /* slightly tighter vertical spacing */
  }
}
.pull-quote {
  font-family: "ChunkFive-Regular";
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 2.5rem 0;
  padding: 1.5rem 1rem;
  background: var(--mm-yellow);
  border: var(--mm-border) solid var(--mm-black);
  box-shadow: 10px 10px 0 0 var(--mm-black);
  max-width: 600px;
}

.pull-quote::before {
  content: "“";
  font-size: 4rem;
  line-height: 0.4;
  color: var(--mm-pink);
  margin-right: .25rem;
}
.pull-quote::after {
  content: "”";
  font-size: 4rem;
  line-height: 0.4;
  color: var(--mm-pink);
  margin-left: .25rem;
  vertical-align: bottom;
}
.case-study img {
  width: 100%;
  margin: 2rem 0;
  border: var(--mm-border) solid var(--mm-black);
  background: var(--mm-cream);
  padding: 0.75rem;
  box-shadow: 12px 12px 0 0 var(--mm-blue);
}
/*
.table-of-contents {
  background: var(--mm-cream);
  border: var(--mm-border) solid var(--mm-black);
  box-shadow: 10px 10px 0 0 var(--mm-black);
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.table-of-contents h2 {
  font-family: "ChunkFive-Regular";
  text-transform: none;
  font-size: 1.5rem;
  background: none;
  color: var(--mm-black);
  border: none;
  margin-bottom: 1rem;
}

.table-of-contents ol {
  list-style: decimal-leading-zero;
  display: block;
  padding-left: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.case-study p,
.case-study ul,
.case-study ol {
  margin-bottom: 1.25rem;
}
*/
/* Magazine-style Memphis card row */
.two-card-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

@media (min-width: 900px) {
  .two-card-row {
    grid-template-columns: 1fr 1fr;   /* side by side on desktop */
  }
}
.card-block {
  background: var(--mm-white);
  border: var(--mm-border) solid var(--mm-black);
  border-radius: var(--mm-radius);
  padding: 2rem 1rem;
  box-shadow: 10px 10px 0 0 var(--mm-black);
  position: relative;
}

/* Optional subtle Memphis texture inside cards */
.card-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(0, 0, 0, 0.04) 14px 24px
    );
  mix-blend-mode: multiply;
  pointer-events: none;
  border-radius: var(--mm-radius);
}
.card-block h2 {
  font-family: "ChunkFive-Regular";
  font-size: 1.8rem;
  margin-bottom: 1rem;
  margin-top: 0;
  padding-bottom: 0.25rem;
  border-bottom: 4px solid var(--mm-pink);
  text-transform: none;
  letter-spacing: 0;
}
.card-block p,
.card-block li {
  font-size: 1.05rem;
  line-height: 1.6;
}
/* Checkmark bullets for Process list */
#process ul {
  list-style: none;
  padding-left: 0;
}

#process ul li {
  position: relative;
  padding-left: 2rem;         /* space for checkmark */
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

#process ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--mm-blue);       /* Memphis blue checkmark */
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1;
}