/* ==========================================================================
   TYPOGRAPHY — Exterior Images
   Font loading, type scale, prose styling, and literary design elements.
   This file is the heart of the "literary" aesthetic.
   ========================================================================== */

/* ---- Self-Hosted Fonts (no external requests to Google) ---- */

/* Cormorant Garamond — Normal */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/cormorant-garamond-300.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-400.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-600.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/cormorant-garamond-700.woff2') format('woff2'); }

/* Cormorant Garamond — Italic */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap; src: url('../fonts/cormorant-garamond-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-600-italic.woff2') format('woff2'); }

/* Cormorant SC */
@font-face { font-family: 'Cormorant SC'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-sc-400.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant SC'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-sc-600.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant SC'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/cormorant-sc-700.woff2') format('woff2'); }

/* Raleway — Normal */
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/raleway-300.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/raleway-400.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/raleway-500.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/raleway-600.woff2') format('woff2'); }

/* Raleway — Italic */
@font-face { font-family: 'Raleway'; font-style: italic; font-weight: 300; font-display: swap; src: url('../fonts/raleway-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/raleway-400-italic.woff2') format('woff2'); }

/* ---- Base Typography ---- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 300;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 400;
}

h3 {
  font-size: var(--text-3xl);
  font-weight: 400;
}

h4 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h5 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h6 {
  font-size: var(--text-lg);
  font-weight: 600;
}

/* ---- Paragraph & Inline ---- */
p {
  margin-bottom: var(--space-6);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-primary-hover);
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

/* ---- Prose Container ----
   For long-form content: about page, service descriptions, etc.
   Max-width keeps lines at a comfortable reading length.
   ------------------------------------------------------------ */
.prose {
  max-width: var(--max-width-prose);
  line-height: var(--leading-relaxed);
  font-size: var(--text-md);
}

.prose p {
  margin-bottom: var(--space-6);
}

.prose h2 {
  font-size: var(--text-3xl);
  margin-top: var(--space-16);
  margin-bottom: var(--space-6);
}

.prose h3 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.prose ul,
.prose ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-8);
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: var(--space-8) 0;
}

/* ---- Drop Cap ----
   Literary signature: large decorative first letter on lead paragraphs.
   Apply with class="drop-cap" on the paragraph.
   ------------------------------------------------------------ */
.drop-cap::first-letter {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.5em;
  float: left;
  line-height: 0.8;
  margin-right: 0.08em;
  margin-top: 0.05em;
  color: var(--color-primary);
}

/* ---- Eyebrow Label ----
   Small-caps label above section headings.
   e.g., "Our Services", "Featured Work"
   ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
  display: block;
}

/* ---- Pull Quote ----
   Large italic quote with thin sage border.
   ------------------------------------------------------------ */
.pull-quote {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-style: italic;
  font-weight: 300;
  line-height: var(--leading-snug);
  color: var(--color-text-light);
  border-left: 3px solid var(--color-secondary);
  padding-left: var(--space-8);
  margin: var(--space-12) 0;
  max-width: 40ch;
}

.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

.pull-quote cite::before {
  content: '— ';
}

/* ---- Ornamental Divider ----
   Centered diamond ornament between sections.
   ------------------------------------------------------------ */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin: var(--space-16) auto;
  max-width: 300px;
  color: var(--stone);
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--stone-light);
}

.ornament span {
  font-size: var(--text-xs);
  line-height: 1;
}

/* ---- Section Heading Group ----
   Eyebrow + heading + optional subtitle together.
   ------------------------------------------------------------ */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-heading .eyebrow {
  margin-bottom: var(--space-3);
}

.section-heading h2 {
  margin-bottom: var(--space-4);
}

.section-heading p {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin: 0 auto;
}

/* ---- Blockquote ---- */
blockquote {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 300;
  line-height: var(--leading-snug);
  color: var(--color-text-light);
  border-left: 3px solid var(--color-border);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
}

/* ---- Lists (outside prose) ---- */
ul, ol {
  margin-bottom: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
}
