/* Danee Co — design system matched to daneeco.com (Squarespace "Danee Co 2.0")
   Green #274946 · Peach #FFE2D6 · Crimson #D71E3D · Instrument Serif + Newsreader */

:root {
  --green: #274946;
  --green-deep: #1f3b38;
  --peach: #ffe2d6;
  --peach-soft: #fbe9e0;
  --red: #d71e3d;
  --white: #ffffff;
  --ink: #303636;
  --serif: "Instrument Serif", Georgia, serif;
  --text: "Newsreader", Georgia, serif;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--green);
  color: var(--peach);
  font-size: 21px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 6vw; }

/* ---------- header ---------- */

header.site {
  background: var(--green);
  padding: 26px 0;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo img { height: 26px; width: auto; }
nav.main {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
nav.main a {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--peach);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
nav.main a:hover { border-bottom-color: var(--peach); }
nav.main a.active { border-bottom-color: var(--peach); }
nav.main a.btn, nav.main a.btn:hover {
  color: var(--red);
  font-family: var(--text);
  font-size: 16px;
  padding: 11px 32px;
  border-bottom: 1px solid var(--white);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--text);
  font-size: 17px;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: var(--white);
  color: var(--red);
  padding: 13px 42px;
  border-radius: 0 45px 45px 45px;
  border: 1px solid var(--white);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--peach); border-color: var(--peach); }
.btn.ghost {
  background: transparent;
  color: var(--peach);
  border: 1px solid var(--peach);
}
.btn.ghost:hover { background: var(--peach); color: var(--green); }
.btn.on-light {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn.on-light:hover { background: var(--green); border-color: var(--green); }

/* ---------- sections ---------- */

section { padding: 90px 0; }

.sec-green { background: var(--green); color: var(--peach); }
.sec-peach { background: var(--peach); color: var(--ink); }
.sec-red   { background: var(--red);   color: var(--peach); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }

h1 { font-size: clamp(40px, 5.4vw, 64px); letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; }
h3 { font-size: clamp(25px, 2.6vw, 32px); }
h4 { font-size: 22px; }

.sec-green h1, .sec-green h2 { color: var(--peach); }
.sec-peach h1, .sec-peach h2, .sec-peach h3 { color: var(--red); }
.sec-red h2, .sec-red h3 { color: var(--peach); }

.eyebrow {
  font-family: var(--text);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 18px;
  opacity: 0.85;
}
.sec-peach .eyebrow { color: var(--red); opacity: 1; }

p + p { margin-top: 1em; }

.lede { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.5; }

em, .accent-i { font-style: italic; }

.mark { color: var(--red); }
.sec-green .mark, .sec-red .mark { color: var(--white); }

/* ---------- hero ---------- */

.hero { padding: 70px 0 90px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: center;
}
.hero-grid .portrait img {
  border-radius: 0 120px 0 120px;
  width: 100%;
  object-fit: cover;
}
.hero h1 { margin-bottom: 26px; }
.hero .lede { margin-bottom: 20px; }
.hero .cta-row { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero .rule {
  width: 72px; height: 1px; background: var(--peach);
  opacity: 0.5; margin: 30px 0;
}

/* ---------- cards / grids ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }

.card {
  border: 1px solid rgba(48, 54, 54, 0.25);
  border-radius: 0 36px 36px 36px;
  padding: 40px 36px;
  background: var(--white);
}
.sec-green .card {
  background: transparent;
  border-color: rgba(255, 226, 214, 0.35);
  color: var(--peach);
}
.card h3 { margin-bottom: 12px; }
.card .price {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--red);
  margin: 6px 0 4px;
}
.sec-green .card .price { color: var(--white); }
.card .price-terms {
  font-family: var(--text);
  font-size: 15px;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
  opacity: 0.85;
}
.card ul { margin: 16px 0 0 0; list-style: none; }
.card ul li {
  font-family: var(--text);
  font-size: 16.5px;
  line-height: 1.5;
  padding: 7px 0 7px 26px;
  position: relative;
  border-top: 1px solid rgba(48, 54, 54, 0.12);
}
.sec-green .card ul li { border-top-color: rgba(255, 226, 214, 0.18); }
.card ul li::before {
  content: "\2726";  /* four-point sparkle */
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 12px;
  color: var(--red);
}
.sec-green .card ul li::before { color: var(--peach); }

/* ---------- logo bar ---------- */

.logo-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px 56px;
  align-items: center;
  margin-top: 54px;
}
.logo-bar img {
  max-height: 54px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

/* ---------- testimonials ---------- */

.quote { max-width: 880px; margin: 0 auto 70px; text-align: center; }
.quote:last-child { margin-bottom: 0; }
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(23px, 2.4vw, 29px);
  line-height: 1.4;
  color: var(--red);
}
.sec-green .quote blockquote { color: var(--white); }
.quote .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 26px auto 0;
  border: 1px solid rgba(255, 226, 214, 0.4);
}
.sec-peach .quote .avatar { border-color: rgba(48, 54, 54, 0.2); }
.quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--text);
  font-style: normal;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--peach);
}

/* ---------- receipts labels ---------- */

.receipt {
  border: 1px solid rgba(48, 54, 54, 0.25);
  border-radius: 0 28px 28px 28px;
  padding: 34px 32px;
  background: var(--white);
}
.receipt .metric {
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 40px);
  color: var(--red);
  line-height: 1.15;
  margin: 10px 0 8px;
}
.receipt .metric-context {
  font-family: var(--text);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
}
.tag {
  display: inline-block;
  font-family: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 0 14px 14px 14px;
  margin-bottom: 8px;
}
.tag.verified { background: var(--green); color: var(--peach); }
.tag.estimate { background: var(--red); color: var(--white); }
.tag.gap {
  background: transparent;
  color: var(--ink);
  border: 1.5px dashed rgba(48, 54, 54, 0.55);
}
.tag-note {
  display: block;
  font-family: var(--text);
  font-size: 14px;
  font-style: italic;
  margin-top: 14px;
  color: var(--red);
}
.receipt .tag-note { border-top: 1px dashed rgba(48, 54, 54, 0.3); padding-top: 12px; }

/* flagged placeholder blocks (internal gaps made visible on purpose) */
.flag {
  border: 1.5px dashed var(--red);
  border-radius: 0 24px 24px 24px;
  padding: 22px 26px;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
}
.sec-green .flag { border-color: rgba(255, 226, 214, 0.6); }

/* ---------- case study layout ---------- */

.cs-hero { padding: 70px 0 60px; }
.cs-hero .meta {
  font-family: var(--text);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 16px;
}
.cs-body h2 { margin: 0 0 24px; }
.cs-body section { padding: 70px 0; }
.prose { max-width: 780px; }
.prose ul { margin: 18px 0 18px 22px; }
.prose li { margin-bottom: 10px; font-family: var(--text); font-size: 18px; }
.prose .body-note {
  font-family: var(--text);
  font-size: 16px;
  font-style: italic;
  opacity: 0.9;
}
blockquote.pull {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.35;
  color: var(--red);
  margin: 34px 0;
  padding-left: 28px;
  border-left: 2px solid var(--red);
}
.sec-green blockquote.pull { color: var(--white); border-left-color: var(--peach); }
blockquote.pull cite {
  display: block;
  font-family: var(--text);
  font-style: normal;
  font-size: 15px;
  letter-spacing: 0.05em;
  margin-top: 14px;
  color: inherit;
  opacity: 0.85;
}

/* case study index cards */
.work-card {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(48, 54, 54, 0.25);
  border-radius: 0 36px 36px 36px;
  padding: 38px 34px;
  background: var(--white);
  color: var(--ink);
  transition: transform 0.15s ease;
}
.work-card:hover { transform: translateY(-4px); }
.work-card .client {
  font-family: var(--text);
  font-size: 13.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.work-card h3 { color: var(--ink); margin-bottom: 12px; }
.work-card p { font-family: var(--text); font-size: 16.5px; line-height: 1.55; }
.work-card .go {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--text);
  font-size: 15px;
  color: var(--red);
  letter-spacing: 0.04em;
}

/* ---------- disciplines ---------- */

.disc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 56px;
  margin-top: 50px;
}
.disc h3 { color: var(--peach); border-bottom: 1px solid rgba(255, 226, 214, 0.45); padding-bottom: 12px; margin-bottom: 16px; }
.disc ul { list-style: none; }
.disc li { font-family: var(--text); font-size: 16.5px; line-height: 1.7; }

/* ---------- ladder table extras ---------- */

.fineprint {
  font-family: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 780px;
}
.fineprint strong { font-weight: 600; }

/* ---------- portfolio / to name a few ---------- */

.pf-meta {
  font-family: var(--text);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.85;
}
.sec-peach .pf-meta { color: var(--red); opacity: 1; }

.pf-role {
  font-family: var(--text);
  font-size: 16px;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  opacity: 0.9;
}

/* Portfolio images are never cropped or stretched. The intrinsic width/height
   attributes on each img exist to reserve layout space, so every rule below
   must set height:auto or the attribute wins and the image distorts. */
.pf-gallery { display: grid; gap: 20px; margin-top: 44px; align-items: start; }
.pf-gallery.cols-2 { grid-template-columns: 1fr 1fr; }
.pf-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pf-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0 28px 28px 28px;
}

.pf-figure { margin-top: 44px; }
.pf-figure img { width: 100%; height: auto; border-radius: 0 40px 40px 40px; }
.pf-figure figcaption {
  font-family: var(--text);
  font-size: 14.5px;
  font-style: italic;
  margin-top: 14px;
  opacity: 0.8;
}

/* video embed */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0 40px 40px 40px;
  overflow: hidden;
  background: var(--green-deep);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption {
  font-family: var(--text);
  font-size: 14.5px;
  font-style: italic;
  margin-top: 14px;
  opacity: 0.8;
}

/* image-only tile grid. Columns rather than a grid so portrait and landscape
   stills sit together without being cropped to a common aspect ratio. */
.tile-grid {
  column-count: 2;
  column-gap: 24px;
  margin-top: 50px;
}
.tile-grid.cols-3 { column-count: 3; }
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 0 32px 32px 32px;
  break-inside: avoid;
  margin: 0 0 24px;
}
.tile img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  font-family: var(--text);
  font-size: 15.5px;
  letter-spacing: 0.03em;
  color: var(--white);
  padding: 46px 24px 18px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  background: linear-gradient(to top, rgba(20, 38, 36, 0.95) 12%, rgba(20, 38, 36, 0.6) 55%, rgba(20, 38, 36, 0));
}

@media (max-width: 940px) {
  .tile-grid { column-count: 2; }
  .pf-gallery.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tile-grid { column-count: 1; }
  .pf-gallery.cols-2, .pf-gallery.cols-3 { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

footer.site {
  background: var(--green);
  color: var(--peach);
  padding: 80px 0 50px;
  border-top: 1px solid rgba(255, 226, 214, 0.2);
}
footer.site .cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 44px;
  align-items: start;
}
footer.site h4 {
  font-family: var(--text);
  font-size: 13.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.8;
}
footer.site p, footer.site a { font-family: var(--text); font-size: 17px; line-height: 1.7; }
footer.site a { color: var(--peach); }
footer.site .tiny {
  margin-top: 60px;
  font-family: var(--text);
  font-size: 13.5px;
  opacity: 0.6;
}
footer.site .logo img { height: 24px; margin-bottom: 20px; }

/* ---------- utility ---------- */

.center { text-align: center; }
.mt-1 { margin-top: 20px; }
.mt-2 { margin-top: 40px; }
.mt-3 { margin-top: 60px; }
.narrow { max-width: 820px; }
.narrow-center { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .portrait { max-width: 380px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .disc-grid { grid-template-columns: 1fr 1fr; }
  .logo-bar { grid-template-columns: repeat(3, 1fr); }
  footer.site .cols { grid-template-columns: 1fr; }
}
@media (max-width: 940px) {
  header.site .wrap { gap: 18px; }
  nav.main { gap: 22px; row-gap: 14px; }
  nav.main a { font-size: 17px; }
}
@media (max-width: 560px) {
  body { font-size: 19px; }
  section { padding: 64px 0; }
  .disc-grid { grid-template-columns: 1fr; }
  .logo-bar { grid-template-columns: 1fr 1fr; gap: 36px; }
  header.site { padding: 20px 0; }
  nav.main { gap: 16px; row-gap: 12px; }
  nav.main a { font-size: 16px; }
  nav.main a.btn, nav.main a.btn:hover { font-size: 15px; padding: 10px 24px; }
}
