/* =========================================================
   Jonathan Vinton — portfolio
   Loads AFTER materialize.min.css, so anything here that
   matches a Materialize rule with equal specificity wins.
   ========================================================= */

/* ---------- 1. Design tokens ----------
   One place to retune the whole site. "var(--green)" anywhere
   below reads the value defined here. */
:root {
  --green: #1b4332;
  /* deep forest green — identity color */
  --green-light: #2d6a4f;
  /* hover / secondary green */
  --green-dark: #14332a;
  /* footer copyright strip */
  --green-pale: #e6efe8;
  /* pale green tint for chips & bands */
  --accent: #b5832b;
  /* single warm gold accent: ratings, rules, active nav */
  --paper: #f6f4ef;
  /* warm off-white page background */
  --white: #ffffff;
  --ink: #1f2421;
  /* body text */
  --gray: #6b7280;
  /* muted text: dates, meta */
  --line: #e3e0d8;
  /* hairline borders */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 25, .06), 0 2px 8px rgba(20, 30, 25, .05);
  --shadow-md: 0 6px 18px rgba(20, 30, 25, .10);
}

/* ---------- 2. Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  /* sticky footer: body is a column, main grows to fill the gap */
  display: flex;
  min-height: 100vh;
  flex-direction: column;

  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

/* Narrower reading measure than Materialize's 1280px */
.container {
  max-width: 1040px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--green);
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: -.01em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--green-light);
}

/* Small uppercase label used above titles */
.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: .6rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #3a403c;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.meta {
  color: var(--gray);
  font-size: .95rem;
}

/* ---------- 3. Navigation ---------- */
nav.site-nav {
  background: var(--green);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 2px 10px rgba(0, 0, 0, .18);
}

nav .brand-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: .01em;
}

.brand-photo {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: .6rem;
  border: 2px solid rgba(255, 255, 255, .65);
}

nav ul a {
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .01em;
}

nav ul a:hover {
  background: rgba(255, 255, 255, .08);
}

/* Active page: thin gold underline instead of a gray block */
nav ul li.active {
  background: transparent;
}

nav ul li.active a {
  box-shadow: inset 0 -3px 0 var(--accent);
}

/* Mobile slide-out menu */
.sidenav {
  background: var(--white);
}

.sidenav li>a {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
}

.sidenav li.active {
  background: var(--green-pale);
}

.sidenav li.active>a {
  color: var(--green);
  box-shadow: inset 4px 0 0 var(--accent);
}

.sidenav .sidenav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 1rem 2rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}

.sidenav .sidenav-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green);
}

.sidenav .sidenav-head a {
  padding: 0;
  height: auto;
  line-height: 1;
}

.sidenav .sidenav-head a i {
  float: none;
  margin: 0;
  height: auto;
  line-height: 1;
  color: var(--gray);
}

@media screen and (max-width: 600px) {
  nav .brand-logo {
    font-size: 1.35rem;
  }
}

@media screen and (max-width: 380px) {
  nav .brand-logo {
    font-size: 1.2rem;
  }
}

/* ---------- 4. Buttons ---------- */
.btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: none;
  padding: 0 1.4rem;
}

.btn-primary,
.btn-primary:focus {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-light);
  box-shadow: var(--shadow-md);
}

.btn-outline,
.btn-outline:focus {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
  line-height: 33px;
  /* 36px height minus the border */
}

.btn-outline:hover {
  background: var(--green-pale);
  box-shadow: none;
}

/* ---------- 5. Hero (home) ---------- */
.hero {
  padding: 4rem 0 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, #edf2ee 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: .6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin: 1.75rem 0 1.5rem;
}

/* Social icon row: every icon sits in the same 44px circle */
.social {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin: 0;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green);
  transition: transform .15s ease, box-shadow .15s ease;
}

.social a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.social img {
  height: 22px;
  width: 22px;
}

.social .material-icons {
  font-size: 22px;
}

/* ---------- 6. Sections & panels ---------- */
.block {
  padding: 3.5rem 0 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.25rem;
}

/* Short gold rule under each section title */
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: .8rem auto 0;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.panel h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.panel.hoverable {
  transition: transform .18s ease, box-shadow .18s ease;
}

.panel.hoverable:hover {
  transform: translateY(-7px) translateX(-7px);
  box-shadow: var(--shadow-md);
}


/* Equal-height cards inside a row */
.row.stretch {
  display: flex;
  flex-wrap: wrap;
}

.row.stretch>.col {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.row.stretch>.col>.panel {
  flex: 1;
}

/* ---------- 7. Skills ---------- */
.skill-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--line);
}

.skill-list li:last-child {
  border-bottom: 0;
}

/* Dot rating: the dots are drawn by CSS, the aria-label carries
   the meaning for screen readers. */
.rating {
  white-space: nowrap;
}

.rating::before {
  font-size: .85rem;
  letter-spacing: .18em;
  color: var(--accent);
}

.rating.r1::before {
  content: "●○○○○";
}

.rating.r2::before {
  content: "●●○○○";
}

.rating.r3::before {
  content: "●●●○○";
}

.rating.r4::before {
  content: "●●●●○";
}

.rating.r5::before {
  content: "●●●●●";
}

.level {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-pale);
  border-radius: 999px;
  padding: .15rem .65rem;
}

/* ---------- 8. Timeline (education / experience) ---------- */
.timeline {
  max-width: 760px;
  margin: 0 auto;
}

.entry {
  position: relative;
  padding: 0 0 2rem 1.75rem;
  border-left: 2px solid var(--line);
}

.entry:last-child {
  padding-bottom: .5rem;
}

/* The dot on the line */
.entry::before {
  content: "";
  position: absolute;
  left: -8px;
  top: .45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--paper);
}

.entry-when {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .25rem;
}

.entry-title {
  margin-bottom: .15rem;
}

.entry-sub {
  color: var(--gray);
  margin-bottom: .9rem;
}

/* Label / value pairs as a two-column grid on wider screens */
.entry-details {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: .4rem 1.25rem;
  margin: 0;
}

.entry-details dt {
  font-weight: 600;
  color: var(--green);
}

.entry-details dd {
  margin: 0;
}

@media screen and (max-width: 600px) {
  .entry-details {
    grid-template-columns: 1fr;
    gap: .1rem;
  }

  .entry-details dd {
    margin-bottom: .6rem;
  }
}

/* ---------- 9. Statement ("My passion") ---------- */
.statement {
  text-align: center;
  padding: 3.5rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--green-pale);
}

.statement blockquote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--green);
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
  border: 0;
  /* Materialize adds a left border; remove it */
}

/* ---------- 10. Chips ---------- */
.chip {
  background: var(--green-pale);
  color: var(--green);
  font-weight: 500;
  height: auto;
  /* Materialize fixes 32px; let long labels wrap cleanly */
  line-height: 1.5;
  padding: .25rem .75rem;
  margin-bottom: .35rem;
}

/* ---------- 11. Page header band (sub-pages) ---------- */
.page-head {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, #edf2ee 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

/* Profile portrait on the About page */
.portrait {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.facts li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--line);
}

.facts li:last-child {
  border-bottom: 0;
}

.facts .material-icons {
  color: var(--accent);
  font-size: 20px;
  margin-top: .15rem;
}

/* ---------- 12. Forms (contact) ---------- */
.input-field input[type=text]:focus:not([readonly]),
.input-field input[type=email]:focus:not([readonly]),
.input-field input[type=tel]:focus:not([readonly]),
.input-field textarea.materialize-textarea:focus:not([readonly]) {
  border-bottom: 1px solid var(--green);
  box-shadow: 0 1px 0 0 var(--green);
}

.input-field input[type=text]:focus:not([readonly])+label,
.input-field input[type=email]:focus:not([readonly])+label,
.input-field input[type=tel]:focus:not([readonly])+label,
.input-field textarea.materialize-textarea:focus:not([readonly])+label {
  color: var(--green);
}

/* ---------- 13. Footer ---------- */
footer.site-footer {
  background: var(--green);
  color: rgba(255, 255, 255, .88);
  padding-top: 2.5rem;
}

.site-footer .footer-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .25rem;
}

.site-footer address {
  font-style: normal;
  line-height: 1.9;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  color: #e8c777;
}

.site-footer .footer-copyright {
  background: var(--green-dark);
  color: rgba(255, 255, 255, .7);
  font-size: .85rem;
  margin-top: 1.5rem;
}

@media print {
  body * {
    visibility: hidden;
  }

  #pdf-content,
  #pdf-content * {
    visibility: visible;
  }

  #pdf-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  #pdf-content .no-pdf {
    display: none !important;
  }


}

@media print {

  #pdf-content img,
  #pdf-content h2 {
    break-inside: avoid;
  }
}