/* Shared stylesheet for Chelsea Coto portfolio */

:root {
  --color-bg: #FAF0F0;
  --color-text: #2A1F28;
  --color-muted: #7A6070;
  --color-accent: #B84A70;
  --color-border: #E5CDD5;
  --color-sidebar-bg: #2A1F28;
  --color-sidebar-text: #FAF0F0;
  --color-sidebar-hover: #3D2D3A;
  --color-sidebar-active: #B84A70;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Newsreader', Georgia, serif;
  --font-mono: 'Space Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
}

/* ===== Brightspace two-panel layout ===== */

body.brightspace {
  display: flex;
  min-height: 100vh;
}

.brightspace-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--color-sidebar-bg);
  color: var(--color-sidebar-text);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 0;
}

.sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(250, 240, 240, 0.15);
  margin-bottom: 12px;
}

.sidebar-course-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--color-sidebar-text);
}

.sidebar-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-tree-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(250, 240, 240, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-tree-item a:hover {
  background: var(--color-sidebar-hover);
  color: var(--color-sidebar-text);
}

.sidebar-tree-item.active > a {
  background: var(--color-sidebar-active);
  color: #fff;
  font-weight: 600;
}

.sidebar-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.brightspace-main {
  flex: 1;
  max-width: 720px;
  padding: 48px 56px 96px;
}

/* ===== Typography ===== */

h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 48px 0 16px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 16px;
}

.summary {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 24px;
}

ul, ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 400;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  body.brightspace {
    flex-direction: column;
  }

  .brightspace-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 12px 0;
  }

  .sidebar-header {
    padding: 0 20px 12px;
  }

  .sidebar-tree {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 0 16px;
  }

  .sidebar-tree-item {
    flex-shrink: 0;
  }

  .sidebar-tree-item a {
    padding: 8px 14px;
    font-size: 0.78rem;
    white-space: nowrap;
    border-radius: 4px;
  }

  .sidebar-icon {
    display: none;
  }

  .brightspace-main {
    padding: 32px 24px 64px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }
}

/* ===== Homepage ===== */

/* Root wrapper */
.hp-root {
  background: #FAF0F0;
  color: #2A1F28;
  font-family: 'Hanken Grotesk', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Sticky nav */
.hp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 240, 240, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #E5CDD5;
}

.hp-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp-logo {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .01em;
}

.hp-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hp-navlink {
  color: #7A6070;
}

/* Page container */
.hp-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 56px;
}

/* Buttons */
.btn-d {
  background: #2A1F28;
  color: #FAF0F0;
  padding: 15px 28px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 15px;
}

.btn-o {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #C8A8B8;
  padding: 15px 28px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 15px;
}

/* Hero section */
.hp-hero {
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  gap: 56px;
  padding: 96px 0 84px;
  align-items: center;
}

.hp-hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #B84A70;
  margin-bottom: 28px;
}

.hp-hero-h1 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 68px;
  line-height: 1.03;
  letter-spacing: -.01em;
  margin: 0 0 26px;
  text-wrap: balance;
}

.hp-hero-body {
  font-size: 18px;
  line-height: 1.65;
  color: #685060;
  max-width: 460px;
  margin: 0 0 36px;
}

.hp-hero-actions {
  display: flex;
  gap: 14px;
}

.hp-hero-photo {
  border-radius: 50%;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

/* Section header shared styles */
.hp-section-header {
  border-top: 1px solid #2A1F28;
  padding-top: 20px;
  margin-bottom: 40px;
}

.hp-section-header--flex {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.hp-section-h2 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 38px;
  margin: 0;
}

.hp-section-count {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .06em;
  color: #907080;
  text-transform: uppercase;
}

/* Featured work section */
.hp-work {
  padding: 30px 0 20px;
}

.hp-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* pcard base layout (transition/hover defined in <style> block) */
.pcard {
  display: block;
  background: #FDF4F6;
  border: 1px solid #E5CDD5;
  border-radius: 4px;
  overflow: hidden;
}

.pcard-thumb {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pcard-thumb--nopad {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pcard-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.pcard-img--sm {
  max-height: 56%;
  max-width: 56%;
  object-fit: contain;
}

.pcard-img--md {
  max-height: 80%;
  max-width: 80%;
  object-fit: contain;
}

.pcard-img--lg {
  max-height: 75%;
  max-width: 75%;
  object-fit: contain;
}

.pcard-body {
  padding: 26px 28px 28px;
}

.pcard-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.pcard-num {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: #B84A70;
}

.pcard-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #907080;
}

.pcard-h3 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 27px;
  margin: 0 0 10px;
}

.pcard-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #7A6070;
  margin: 0;
}

/* Skills section */
.hp-skills {
  padding: 84px 0 20px;
}

.hp-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.hp-skill-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #B84A70;
  margin-bottom: 16px;
}

.hp-skill-list {
  font-size: 17px;
  line-height: 2.05;
  color: #3A352E;
}

/* Services section */
.hp-services {
  padding: 84px 0 20px;
}

.hp-service-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.1fr;
  gap: 32px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid #E5CDD5;
}

.hp-service-row--last {
  border-bottom: 1px solid #E5CDD5;
}

.hp-service-num {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: #B84A70;
}

.hp-service-h3 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 25px;
  margin: 0;
}

.hp-service-desc {
  font-size: 16px;
  line-height: 1.65;
  color: #685060;
  margin: 0;
}

/* Resume card */
.hp-resume-wrap {
  max-width: 960px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.hp-resume-card {
  background: #2A1F28;
  border-radius: 8px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hp-resume-eyebrow {
  color: #B84A70;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.hp-resume-name {
  color: #F5F0EB;
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.hp-resume-role {
  color: #C0A8B8;
  font-size: 0.95rem;
  margin: 0;
}

.hp-resume-btn {
  display: inline-block;
  background: #B84A70;
  color: #F5F0EB;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Contact section */
.hp-contact {
  padding: 96px 0 110px;
  text-align: center;
}

.hp-contact-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #B84A70;
  margin-bottom: 24px;
}

.hp-contact-h2 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 54px;
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0 auto 32px;
  max-width: 720px;
  text-wrap: balance;
}

.hp-contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 44px;
}

.btn-d--lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-o--lg {
  padding: 16px 32px;
  font-size: 16px;
}

.hp-footer {
  border-top: 1px solid #E5CDD5;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .06em;
  color: #907080;
}

/* ===== Homepage responsive ===== */

@media (max-width: 900px) {
  .hp-nav-inner {
    padding: 14px 24px;
  }

  .hp-container {
    padding: 0 24px;
  }

  .hp-hero {
    grid-template-columns: 1fr;
    padding: 56px 0 48px;
    gap: 36px;
  }

  .hp-hero-h1 {
    font-size: 44px;
  }

  .hp-hero-photo {
    max-width: 260px;
    margin: 0 auto;
    display: block;
  }

  .hp-card-grid {
    grid-template-columns: 1fr;
  }

  .hp-skills-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hp-service-row {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }

  .hp-service-desc {
    grid-column: 2;
  }

  .hp-contact-h2 {
    font-size: 36px;
  }

  .hp-resume-wrap {
    padding: 0;
  }

  .hp-resume-card {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hp-nav-links {
    gap: 16px;
  }

  .hp-hero-actions {
    flex-direction: column;
  }

  .hp-contact-actions {
    flex-direction: column;
    align-items: center;
  }
}
