/*
Theme Name: Lindsay Boyle Portfolio
Theme URI: https://lindsayboyle.com
Author: Lindsay Boyle
Author URI: https://lindsayboyle.com
Description: Custom portfolio theme for Lindsay Boyle, designer. Warm pink-coral palette on cream, black body text, mobile-first, and built to WCAG 2.1 AA. Includes the homepage and STAR-format case studies.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lindsay-boyle-portfolio
*/

/* ============================================================
   Lindsay Boyle portfolio styles
   Palette: pink-leaning coral + burgundy fills on warm cream,
   black body text. All text pairs verified at WCAG AA.
   ============================================================ */

:root {
  --cream: #FBF4EE;
  --white: #FFFFFF;
  --ink: #000000;          /* headlines + primary text */
  --ink-soft: #3A332E;     /* secondary text, AA on cream/white */
  --burgundy: #5E1A2E;     /* dark fill, carries light text only */
  --burgundy-dark: #4A1422;
  --coral: #F07A86;        /* pink-leaning coral; black text 7.8:1 */
  --coral-hover: #DD6373;
  --blush-1: #FAE3E3;
  --blush-2: #F6D5D8;
  --blush-3: #F8DCDD;
  --apricot: #EFB7C0;      /* rose footer subtext, 7.3:1 on burgundy */
  --line: rgba(0,0,0,0.12);

  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px;

  --radius: 10px;
  --maxw: 1080px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -64px;
  z-index: 100;
  background: var(--burgundy);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--s-2); }

/* ---------- Focus styles ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: block;
  padding: 12px 0;
}
.nav-menu a:hover { color: var(--burgundy); }
.nav-menu a[aria-current="page"] { border-bottom: 2px solid var(--coral); }

@media (max-width: 719px) {
  .nav-menu {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 64px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: var(--s-1) var(--s-3) var(--s-3);
  }
  .nav-menu.open { display: block; }
  .nav-menu a { padding: 14px 0; font-size: 18px; }
}
@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex !important; gap: var(--s-4); position: static; }
  .nav-menu a { padding: 6px 0; }
}

/* ---------- Sections + headings ---------- */
section { padding: var(--s-6) 0; }
@media (min-width: 720px) { section { padding: var(--s-7) 0; } }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 600; line-height: 1.12; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--s-2);
}

/* ---------- Hero ---------- */
.hero h1 { font-size: clamp(38px, 8vw, 68px); max-width: 16ch; margin-bottom: var(--s-3); }
.hero p.lead {
  font-family: var(--font-display);
  font-size: clamp(19px, 3vw, 24px);
  line-height: 1.5;
  max-width: 42ch;
  margin: 0 0 var(--s-4);
  color: var(--ink-soft);
}
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--burgundy); color: var(--cream); }
.btn-primary:hover { background: var(--burgundy-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--blush-1); }
.btn:active { transform: scale(0.98); }

/* ---------- Open-to band ---------- */
.band { background: var(--coral); border-radius: var(--radius); padding: var(--s-4); }
.band p { margin: 0; color: var(--ink); font-size: 18px; }
.band strong { font-weight: 600; }

/* ---------- Work section ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-2); margin-bottom: var(--s-4);
}
.section-head h2 { font-size: clamp(26px, 5vw, 36px); }

.work-group { margin-bottom: var(--s-5); }
.group-label {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 var(--s-3);
}
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.work-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 600px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(94,26,46,0.12); }

/* Image placeholder + real image share the same frame */
.work-thumb {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  color: var(--burgundy);
  text-align: center;
  padding: var(--s-2);
  position: relative;
  overflow: hidden;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-thumb .ph-label {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600; color: var(--burgundy);
}
.work-body { padding: var(--s-2) var(--s-3) var(--s-3); }
.work-tag { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.work-card h3 { font-size: 21px; margin: var(--s-1) 0; line-height: 1.25; }
.work-card p { margin: 0 0 var(--s-2); color: var(--ink-soft); font-size: 15px; }
.work-card a.work-link { color: var(--burgundy); font-weight: 600; text-decoration: none; font-size: 15px; }
.work-card a.work-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- About ---------- */
.about { background: var(--blush-1); }
.about-inner { max-width: 60ch; }
.about h2 { font-size: clamp(26px, 5vw, 38px); margin-bottom: var(--s-3); }
.about p { font-size: 18px; margin: 0 0 var(--s-2); }
.creds { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: var(--s-1); }
.creds li { display: flex; gap: var(--s-1); align-items: flex-start; font-size: 16px; }
.creds svg { width: 20px; height: 20px; color: var(--burgundy); flex: none; margin-top: 3px; }

/* ---------- Contact form ---------- */
.contact h2 { font-size: clamp(26px, 5vw, 38px); margin-bottom: var(--s-2); }
.contact p.sub { max-width: 48ch; color: var(--ink-soft); margin: 0 0 var(--s-4); }
.contact-meta { margin: 0 0 var(--s-4); font-size: 17px; }
.contact-meta a { color: var(--burgundy); font-weight: 500; }
form { max-width: 560px; }
.field { margin-bottom: var(--s-3); }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px;
  padding: 12px 14px; background: var(--white);
  border: 1.5px solid var(--ink-soft); border-radius: var(--radius); color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: var(--burgundy); border-width: 2px; }
.error-msg {
  display: none; align-items: center; gap: 6px; margin-top: 6px;
  color: var(--burgundy); font-size: 14px; font-weight: 500;
}
.field.invalid .error-msg { display: flex; }
.error-msg svg { width: 16px; height: 16px; flex: none; }
.form-success {
  display: none; align-items: center; gap: 10px;
  background: var(--blush-2); border: 1px solid var(--burgundy); border-radius: var(--radius);
  padding: var(--s-2) var(--s-3); color: var(--ink); font-weight: 500; margin-bottom: var(--s-3);
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; color: var(--burgundy); flex: none; }
.form-error {
  display: none; align-items: center; gap: 10px;
  background: var(--blush-3); border: 1px solid var(--burgundy); border-radius: var(--radius);
  padding: var(--s-2) var(--s-3); color: var(--ink); font-weight: 500; margin-bottom: var(--s-3);
}
.form-error.show { display: flex; }
.form-error svg { width: 20px; height: 20px; color: var(--burgundy); flex: none; }

/* ---------- Case study ---------- */
.case-hero { padding-bottom: var(--s-3); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--burgundy); font-weight: 500; text-decoration: none; margin-bottom: var(--s-3); }
.back-link:hover { text-decoration: underline; }
.back-link svg { width: 18px; height: 18px; }
.case-hero h1 { font-size: clamp(34px, 7vw, 56px); margin-bottom: var(--s-2); }
.case-meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); color: var(--ink-soft); font-size: 15px; margin-top: var(--s-2); }
.case-meta span { display: inline-flex; align-items: center; gap: 6px; }
.case-meta svg { width: 16px; height: 16px; color: var(--burgundy); }

.case-figure { margin: 0 0 var(--s-5); }
.case-figure .ph {
  background: var(--blush-2);
  border: 1px dashed var(--burgundy);
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--s-3); gap: 6px; color: var(--burgundy);
}
.case-figure .ph .name { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.case-figure .ph .hint { font-size: 14px; color: var(--ink-soft); max-width: 36ch; }
.case-figure img { width: 100%; border-radius: var(--radius); display: block; }
.case-figure figcaption { font-size: 14px; color: var(--ink-soft); margin-top: var(--s-1); }

.case-body { max-width: 70ch; }
.case-body .star { margin-bottom: var(--s-4); }
.case-body h2 {
  font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: var(--s-1); font-family: var(--font-body); font-weight: 600;
}
.case-body p { margin: 0 0 var(--s-2); font-size: 18px; }
.case-body ul { margin: 0 0 var(--s-2); padding-left: 1.2em; }
.case-body li { margin-bottom: 6px; font-size: 17px; }
.case-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); margin: var(--s-3) 0; }
@media (min-width: 640px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
.case-grid .ph { aspect-ratio: 1 / 1; }

/* Framed hero screenshot (portrait phone) */
.frame-hero {
  background: var(--blush-1);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  padding: var(--s-3);
}
.frame-hero img { max-height: 560px; width: auto; max-width: 100%; border-radius: 8px; display: block; }

/* Captioned grid of app screens */
.screens {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-3);
  margin: var(--s-3) 0 var(--s-2);
}
.screen { margin: 0; }
.screen .frame {
  background: var(--blush-2);
  border-radius: var(--radius);
  aspect-ratio: 3 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}
.screen .frame img { width: auto; height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; }
.screen figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 8px; text-align: center; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer .container { padding-top: var(--s-6); padding-bottom: var(--s-6); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); }
.footer-grid h2 { color: var(--cream); font-size: clamp(24px, 4vw, 32px); margin-bottom: var(--s-1); }
.footer-grid a.email { color: var(--apricot); text-decoration: none; font-size: 16px; display: block; line-height: 1.9; }
.footer-grid a.email:hover { text-decoration: underline; }
.footer-cta { background: var(--cream); color: var(--burgundy); font-weight: 600; padding: 12px 22px; border-radius: var(--radius); text-decoration: none; }
.footer-cta:hover { background: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(251,244,238,0.25); margin-top: var(--s-5); padding-top: var(--s-3);
  font-size: 14px; color: var(--apricot); display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between;
}
.footer-bottom a { color: var(--apricot); }

/* Safety net: any link not otherwise styled */
a { color: var(--burgundy); }
.site-footer a { color: var(--apricot); }
.footer-cta { color: var(--burgundy); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
