/* John D'Orto — dorto.com
   Dark personal brand site */

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --border: #222222;
  --border-light: #333333;
  --text: #f0f0f0;
  --text-muted: #a0a0a0;
  --text-dim: #707070;
  --accent: #c8a96e;
  --accent-soft: rgba(200, 169, 110, 0.15);
  --accent-hover: #e0c080;
  --max-width: 1100px;
  --nav-height: 64px;
  --radius: 8px;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ——— Layout ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.logo:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-card);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.25rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ——— Typography ——— */

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.page-header .lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.role-tag {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(200, 169, 110, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

/* ——— About / Home ——— */

.hero {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 280px;
    gap: 3rem;
  }
}

.hero-portrait {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.hero-portrait svg {
  width: 60%;
  opacity: 0.5;
}

.about-body {
  max-width: 42rem;
}

.about-body p {
  font-size: 1.05rem;
}

.section {
  margin-top: 3rem;
}

.quick-links {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.quick-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: inherit;
}

.quick-card h3 {
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.quick-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* ——— Cards / grids ——— */

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  color: inherit;
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  color: inherit;
}

.card-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-media svg {
  width: 45%;
  opacity: 0.45;
}

.card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  color: var(--text);
  font-size: 1.05rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.card-body p {
  font-size: 0.9rem;
  flex: 1;
}

.card-link {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
}

/* Music projects — slightly wider cards */
.music-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.music-card .card-media {
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-primary {
  background: var(--accent-soft);
  border-color: rgba(200, 169, 110, 0.5);
  color: var(--accent);
}

.btn-primary:hover {
  background: rgba(200, 169, 110, 0.25);
  color: var(--accent-hover);
}

.btn[aria-disabled="true"],
.btn.is-placeholder {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ——— Guitar detail ——— */

.detail-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-back:hover {
  color: var(--accent);
}

.detail-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .detail-layout {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.gallery-main {
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.gallery-main svg {
  width: 40%;
  opacity: 0.4;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-thumbs .thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumbs .thumb svg {
  width: 40%;
  opacity: 0.35;
}

.detail-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.detail-specs {
  list-style: none;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-specs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.detail-specs li:last-child {
  border-bottom: none;
}

.detail-specs .label {
  color: var(--text-dim);
}

.detail-specs .value {
  color: var(--text);
  text-align: right;
}

/* ——— Resume ——— */

.resume {
  max-width: 720px;
}

.resume-header {
  margin-bottom: 2rem;
}

.resume-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
}

.resume-contact {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.resume-section {
  margin-bottom: 2rem;
}

.resume-section h2 {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.job {
  margin-bottom: 1.5rem;
}

.job-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.35rem;
}

.job-title {
  color: var(--text);
  font-weight: 600;
}

.job-org {
  color: var(--text-muted);
}

.job-dates {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.job ul {
  margin: 0.5rem 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.job li {
  margin-bottom: 0.35rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.skills-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* ——— Contact ——— */

.contact-block {
  max-width: 32rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
}

.contact-email:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ——— Placeholder badge ——— */

.placeholder-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ——— Mobile nav ——— */

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    gap: 0.25rem;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
  }
}

/* ——— Print (resume) ——— */

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .resume-actions,
  .nav-toggle {
    display: none !important;
  }

  main,
  .container,
  .resume {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .page-header,
  .resume-section h2 {
    border-color: #ccc;
  }

  .resume-section h2 {
    color: #333;
  }

  p,
  .job ul,
  .job-org,
  .resume-contact,
  .skills-list li {
    color: #333;
  }

  .skills-list li {
    background: #f5f5f5;
    border-color: #ccc;
  }

  a {
    color: #111;
  }
}


.credits {
  font-size: 0.95rem;
  color: var(--text-muted, #b0b0b0);
  line-height: 1.5;
}

.music-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


.channel-link {
  margin-top: 1rem;
}


.music-videos h2,
.music-releases h2 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.music-releases {
  margin-top: 2rem;
}


/* Contact form */
.contact-form {
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim, #888);
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-elevated, #111);
  color: var(--text, #f2f2f2);
  border: 1px solid var(--border, #333);
  border-radius: var(--radius, 8px);
  padding: 0.7rem 0.85rem;
  font: inherit;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent, #7aa2ff);
  outline-offset: 1px;
  border-color: transparent;
}

.contact-form textarea {
  resize: vertical;
  min-height: 10rem;
}

.contact-form .hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius, 8px);
  border: 1px solid var(--border, #333);
}

.form-status-ok {
  border-color: #2f6b3a;
  background: rgba(47, 107, 58, 0.2);
}

.form-status-err {
  border-color: #8a3030;
  background: rgba(138, 48, 48, 0.2);
}


.social-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, #333);
  max-width: 36rem;
}

.social-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.social-list a {
  color: var(--accent, #7aa2ff);
  text-decoration: none;
  font-weight: 600;
}

.social-list a:hover {
  text-decoration: underline;
}


/* Guitar gallery: show more of each instrument in thumbs */
body.guitars-page .card-media {
  aspect-ratio: 3 / 4;
  background: #000;
}

body.guitars-page .card-media img {
  object-fit: contain;
  object-position: center center;
  width: 100%;
  height: 100%;
}
