/*
Theme Name: Casa Mila ARC 308
Theme URI: https://vulcanthoughts.com
Author: Krithik Aggarwal
Description: An editable architectural research presentation for the ARC 308 Casa Mila scavenger hunt.
Version: 1.0.0
Requires at least: 6.5
Text Domain: casa-mila-arc308
*/

:root {
  --cm-paper: #f1eee7;
  --cm-stone: #c8bda8;
  --cm-ink: #171717;
  --cm-blue: #123a5a;
  --cm-rust: #9d3e2d;
  --cm-line: rgba(23, 23, 23, 0.2);
}

html { scroll-behavior: smooth; }
body { background: var(--cm-paper); color: var(--cm-ink); }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

.cm-eyebrow {
  color: var(--cm-rust);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  margin-bottom: .65rem;
  text-transform: uppercase;
}

.cm-hero {
  border-bottom: 1px solid var(--cm-line);
  min-height: 92vh;
}
.cm-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 9rem) 5vw;
}
.cm-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 400;
  letter-spacing: -.07em;
  line-height: .72;
  margin: .3rem 0 2.5rem;
}
.cm-title em { color: var(--cm-blue); font-weight: 400; }
.cm-dek {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.25;
  max-width: 22ch;
}
.cm-image-slot {
  background: linear-gradient(135deg, var(--cm-stone), #dfd9ce);
  min-height: 300px;
}
.cm-image-slot .wp-block-cover__inner-container { color: #3d3933; }

.cm-nav {
  background: rgba(241, 238, 231, .95);
  border-bottom: 1px solid var(--cm-line);
  gap: 2rem;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
}
.cm-nav a {
  font-size: .72rem;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.cm-section {
  border-bottom: 1px solid var(--cm-line);
  padding: clamp(5rem, 9vw, 9rem) max(5vw, calc((100vw - 1180px) / 2));
}
.cm-dark { background: var(--cm-blue); color: #f6f1e7; }
.cm-section-number {
  color: var(--cm-rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}
.cm-section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .92;
  margin: 0 0 3rem;
}
.cm-fields { border-left: 1px solid var(--cm-line); border-top: 1px solid currentColor; }
.cm-field { border-bottom: 1px solid var(--cm-line); padding: 1.3rem; }
.cm-field-label {
  color: var(--cm-rust);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .11em;
  margin-bottom: .7rem;
  text-transform: uppercase;
}
.cm-placeholder { color: #68645e; font-style: italic; }
.cm-dark .cm-placeholder { color: #cbc6bc; }

.cm-options-heading,
.cm-sources {
  padding: 7rem max(5vw, calc((100vw - 1180px) / 2)) 3rem;
}
.cm-options {
  gap: 1rem;
  padding: 0 max(5vw, calc((100vw - 1180px) / 2)) 7rem;
}
.cm-option {
  background: #fff;
  border-top: 4px solid var(--cm-blue);
  padding: 1.5rem;
}
.cm-option-number {
  color: var(--cm-rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
}
.cm-option-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}
.cm-sources { padding-bottom: 8rem; }
.cm-sources-text { border-top: 1px solid; max-width: 900px; padding-top: 1.5rem; }

@media (max-width: 781px) {
  .cm-hero { min-height: auto; }
  .cm-hero-copy { min-height: 65vh; }
  .cm-nav { gap: 1rem; }
}

@media print {
  .cm-nav { display: none; }
  .cm-hero { min-height: 100vh; page-break-after: always; }
  .cm-section, .cm-option { break-inside: avoid; }
}
