/*
  Molly's Teaching Portfolio
  ==========================
  All visual rules for every page live in this file. Change colors, fonts,
  widths, or spacing here instead of adding style attributes to the HTML.
*/

/*
  Site-wide design settings
  -------------------------
  These custom properties are reusable labels for colors and fonts. Editing a
  value here updates every place where that --name is used below.
*/
:root {
  /* Main dark green used for headings, buttons, and the footer. */
  --ink: #24433e;
  /* Softer green used for paragraph text so long reading feels less harsh. */
  --muted-ink: #536b65;
  /* Main warm off-white page background. */
  --cream: #fffaf0;
  /* Lighter off-white used to separate selected content sections. */
  --paper: #fffdf8;
  /* Accent colors used for the friendly education-focused visual palette. */
  --peach: #f8d9c3;
  --butter: #f7e8a6;
  --sky: #d7ebeb;
  --sage: #dce8d2;
  /* Pale divider color between content areas. */
  --line: #d8e1d7;
  /* Display font is for headings; body font is for all readable copy. */
  --display-font: "Fraunces", Georgia, serif;
  --body-font: "DM Sans", Verdana, sans-serif;
  /* This prevents the content from becoming too wide on large monitors. */
  --content-width: 1120px;
}

/* Base rules remove browser inconsistencies and establish readable defaults. */
* {
  /* Padding and borders remain inside an element's declared width. */
  box-sizing: border-box;
}

html {
  /* Makes anchor links scroll smoothly when they are added in the future. */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
}

img {
  /* Stops images overflowing their parent containers. */
  display: block;
  max-width: 100%;
}

a:focus-visible {
  /* Visible keyboard focus makes links accessible to non-mouse visitors. */
  outline: 3px solid #d27d53;
  outline-offset: 4px;
}

/* Header flexbox keeps the site name and navigation evenly balanced. */
.site-header { width: min(100% - 48px, var(--content-width)); margin: 0 auto; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); font-family: var(--display-font); font-size: 1.75rem; font-weight: 700; text-decoration: none; }
.brand span { color: #d27d53; }
.site-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-nav a { color: var(--muted-ink); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav .active, .text-link:hover { color: #c3633b; }

/* Shared typography gives each page a consistent, friendly voice. */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display-font); line-height: 1.12; }
h1 { font-size: clamp(2.9rem, 6vw, 5.5rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 20px; }
h3 { font-size: 1.65rem; margin-bottom: 12px; }
.eyebrow { margin-bottom: 12px; color: #b7623d; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

/* Homepage hero is a side-by-side flex layout that stacks on small screens. */
.hero { width: min(100% - 48px, var(--content-width)); min-height: 630px; margin: 26px auto 0; display: flex; align-items: center; gap: clamp(40px, 7vw, 104px); }
.hero-copy { flex: 1 1 48%; max-width: 570px; }
.hero-text { max-width: 500px; margin-bottom: 32px; color: var(--muted-ink); font-size: 1.1rem; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: #38645b; }
.button span, .text-link span { font-size: 1.2em; }
.hero-image-wrap { position: relative; flex: 1 1 44%; max-width: 470px; }
.hero-image { width: 100%; height: 520px; border-radius: 6px; object-fit: cover; }
.image-note { position: absolute; right: -22px; bottom: 30px; margin: 0; padding: 10px 16px; border-radius: 3px; background: var(--butter); color: var(--ink); font-size: 0.82rem; font-weight: 700; }

/* Centered welcome copy creates a calm visual pause. */
.welcome { max-width: 760px; margin: 0 auto; padding: 105px 24px; text-align: center; }
.welcome p:last-child { margin: 0 auto; color: var(--muted-ink); font-size: 1.1rem; }

/* This two-column flex section places personal content alongside a photo. */
.split-section { display: flex; align-items: center; gap: clamp(40px, 8vw, 128px); padding: 92px max(24px, calc((100% - var(--content-width)) / 2)); background: var(--paper); }
.section-image, .section-copy { flex: 1 1 0; }
.section-image img { width: 100%; height: 480px; border-radius: 6px; object-fit: cover; }
.section-copy { max-width: 470px; }
.section-copy p:not(.eyebrow) { color: var(--muted-ink); }
.text-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Value cards use flexbox so they move from a row to a simple column on phones. */
.principles { width: min(100% - 48px, var(--content-width)); margin: 0 auto; padding: 105px 0; }
.section-intro { max-width: 620px; margin-bottom: 42px; }
.section-intro h2 { margin-bottom: 0; }
.principle-list { display: flex; gap: 18px; }
.principle-card { flex: 1 1 0; min-height: 245px; padding: 30px; border-radius: 6px; }
.principle-card p:last-child { margin-bottom: 0; color: var(--muted-ink); }
.card-number { margin-bottom: 36px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; }
.sunshine { background: var(--butter); }.sky { background: var(--sky); }.leaf { background: var(--sage); }

/* Reusable page heading for the two companion pages. */
.page-intro { max-width: 780px; margin: 38px auto 0; padding: 78px 24px 92px; text-align: center; }
.page-intro p:last-child { margin: 0; color: var(--muted-ink); font-size: 1.1rem; }
.content-section { width: min(100% - 48px, var(--content-width)); margin: 0 auto; padding: 88px 0; }
.content-section + .content-section { border-top: 1px solid var(--line); }
.feature-row { display: flex; align-items: center; gap: clamp(36px, 8vw, 108px); }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-copy, .feature-photo { flex: 1 1 0; }
.feature-copy { max-width: 490px; }.feature-copy p:not(.eyebrow) { color: var(--muted-ink); }
.feature-photo img { width: 100%; height: 410px; border-radius: 6px; object-fit: cover; }
.quote { margin: 0; padding: 42px; border-left: 6px solid #d27d53; background: var(--sky); font-family: var(--display-font); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; }
.quote cite { display: block; margin-top: 18px; font-family: var(--body-font); font-size: 0.8rem; font-style: normal; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.routine-list { display: flex; flex-wrap: wrap; gap: 18px; }
.routine { flex: 1 1 240px; padding: 25px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.routine p { margin-bottom: 0; color: var(--muted-ink); }

/* A simple, professional footer shared by every page. */
.site-footer { padding: 86px 24px 28px; background: var(--ink); color: white; text-align: center; }
.site-footer .eyebrow { color: var(--butter); }.site-footer h2 { max-width: 660px; margin: 0 auto 24px; font-size: clamp(1.9rem, 4vw, 3rem); }
.footer-email { color: white; font-weight: 700; text-decoration-color: var(--butter); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.copyright { margin: 64px 0 0; color: #c4d4ca; font-size: 0.8rem; }

/*
  Tablet layout
  -------------
  At 760px and below, flexbox rows become vertical stacks. This keeps text
  readable and images full-width on tablets and most mobile devices.
*/
@media (max-width: 760px) {
  .site-header { width: min(100% - 32px, var(--content-width)); flex-direction: column; gap: 12px; }
  .hero { width: min(100% - 32px, var(--content-width)); min-height: auto; padding: 52px 0 76px; flex-direction: column; align-items: flex-start; }
  .hero-image-wrap { align-self: center; max-width: 560px; }.hero-image { height: min(110vw, 500px); }.image-note { right: 12px; }
  .welcome { padding: 76px 24px; }.split-section, .feature-row, .feature-row.reverse { flex-direction: column; padding-top: 70px; padding-bottom: 70px; }
  .section-image, .section-copy, .feature-copy, .feature-photo { width: 100%; max-width: 560px; }.section-image img { height: min(110vw, 480px); }
  .principles, .content-section { width: min(100% - 32px, var(--content-width)); }.principles { padding: 76px 0; }.principle-list { flex-direction: column; }.principle-card { min-height: auto; }.card-number { margin-bottom: 24px; }
  .content-section { padding: 64px 0; }.page-intro { padding: 55px 24px 72px; }.feature-photo img { height: min(100vw, 460px); }
}

/*
  Small-phone layout
  ------------------
  At 440px and below, extra spacing is reduced so iPhone-sized screens stay
  clear. Keep these rules if you add new content that uses these components.
*/
@media (max-width: 440px) {
  .site-header { align-items: flex-start; }.site-nav { gap: 11px 19px; }.hero { padding-top: 35px; gap: 42px; }.hero-image { height: 410px; }
  .image-note { right: 8px; bottom: 16px; padding: 8px 12px; font-size: 0.72rem; }.split-section { gap: 35px; }.quote { padding: 28px; }.site-footer { padding-top: 68px; }
}