/*
 * Starter styles for sites.psc.com.
 *
 * The palette is the Piper Sandler brand, used lightly, and matches the
 * dashboards at psu.corp.pjc.com: teal and blue for structure, the brand grey
 * for text, orange only as a small accent (it is too light for small text on
 * white). Change the variables below rather than colours further down.
 *
 * No web fonts are loaded. Headlines use DM Serif Display, the brand headline
 * face, when it is installed, and Georgia otherwise; body text is the system
 * font everyone here already has.
 */

:root {
  --teal: #1e5162;
  --teal-deep: #133945;
  --blue: #3f97b5;
  --blue-light: #7fb5c8;
  --link: #27667c;
  --orange: #ff5d00;

  --ink: #252d33;
  --text: #4a4f55;
  --muted: #59636a;
  --line: #dfe4e7;
  --paper: #ffffff;
  --tint: #f4f4f4;
  --note: #fff5ec;

  --font-head: "DM Serif Display", "DM Serif Text", Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --radius: 0.375rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --link: #7fb5c8;
    --ink: #eceff1;
    --text: #c2cbd0;
    --muted: #96a2a9;
    --line: #2e383f;
    --paper: #12191d;
    --tint: #182126;
    --note: #2a2119;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3 { color: var(--ink); margin: 0 0 0.5rem; }

h1, h2 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.375rem); }

h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }

p { margin: 0 0 1rem; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

code {
  font-family: "Cascadia Mono", Consolas, ui-monospace, monospace;
  font-size: 0.9em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.muted { color: var(--muted); }

/* Delete this block along with the note in index.html. */
.starter-note {
  background: var(--note);
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  color: var(--ink);
  font-size: 0.9375rem;
  padding: 0.625rem 0;
}

/* Header: the site name carries the thin blue rule from the brand mark. It is
   not a logo, and the brand guidelines don't allow team logos, so keep it text. */
.site-header {
  background: var(--teal-deep);
  color: #fff;
}
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.site-name {
  border-left: 3px solid var(--blue);
  padding-left: 0.75rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.site-name:hover { color: #fff; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  color: #dbe9ef;
  font-size: 0.9375rem;
  text-decoration: none;
}
.nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); }

/* Hero */
.hero {
  background:
    linear-gradient(90deg, var(--blue) 0 0.5rem, transparent 0.5rem),
    linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #e6f0f4;
  padding: clamp(3rem, 2rem + 5vw, 6rem) 0;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);
  max-width: 16ch;
  margin-bottom: 1.25rem;
}
.eyebrow {
  color: #acd2e0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.lede {
  font-size: 1.1875rem;
  max-width: 40rem;
  margin-bottom: 2rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

.button {
  display: inline-block;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 600;
  padding: 0.625rem 1.125rem;
  text-decoration: none;
}
.button:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
.button-primary { background: #fff; border-color: #fff; color: var(--teal); }
.button-primary:hover { background: #e6f0f4; color: var(--teal-deep); }

/* Sections */
.section { padding: clamp(2.5rem, 1.75rem + 3vw, 4.5rem) 0; }
.section-tint { background: var(--tint); }
.section-intro { color: var(--muted); max-width: 40rem; margin-bottom: 2rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.5rem;
}

.two-col, .contact {
  display: grid;
  gap: 1rem 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
  .two-col, .contact { grid-template-columns: 2fr 3fr; align-items: start; }
}

.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.875rem 0;
}
.link-list a { font-weight: 600; }
.link-list span { color: var(--muted); font-size: 0.9375rem; }

.updates { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: 48rem; }
.updates li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 2rem;
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 0.25rem;
}
@media (min-width: 40rem) {
  .updates li { grid-template-columns: 8rem 1fr; }
}
.updates time { color: var(--muted); font-size: 0.9375rem; padding-top: 0.125rem; }

.contact-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.75rem 1.5rem;
  margin: 0;
}
.contact-list dt { color: var(--muted); font-size: 0.9375rem; }
.contact-list dd { margin: 0; color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--teal-deep);
  color: #dbe9ef;
  font-size: 0.875rem;
}
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.site-footer p { margin: 0; }
.site-footer .muted { color: #a9c4cf; }

@media print {
  .starter-note, .nav, .actions { display: none; }
  .hero, .site-header, .site-footer { background: none; color: #000; }
  .hero h1, .site-name { color: #000; }
}
