:root {
  --bg: #0d0d0d;
  --bg-panel: #1a1a1a;
  --border: #333333;
  --text: #f0e9df;
  --text-muted: #b8ada0;
  --amber: #caa15a;
  --sage: #7c9470;
  --wine: #7a2a3e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', 'Segoe UI', sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

nav a:hover {
  color: var(--amber);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64vh;
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background-size: cover;
  background-position: center;
}

.hero.hero-short {
  min-height: 32vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.6), rgba(13, 13, 13, 0.75));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
}

.hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* Decorative banner strip */
.banner-strip {
  position: relative;
  display: block;
  height: 260px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s ease;
}

.banner-strip:hover {
  opacity: 0.85;
}

.banner-strip-label {
  position: absolute;
  right: 1.5rem;
  bottom: 1.25rem;
  background: rgba(13, 13, 13, 0.65);
  color: var(--amber);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

/* Sections */
section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: 2.2rem;
  margin: 0 0 0.5rem;
}

.accent-rule {
  width: 48px;
  height: 3px;
  margin: 0 auto;
  background: var(--amber);
}

/* Collapsible sections */
.testing-details summary {
  cursor: pointer;
  list-style: none;
}

.testing-details summary::-webkit-details-marker {
  display: none;
}

.testing-details summary::marker {
  content: "";
}

.testing-toggle-hint {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.testing-toggle-hint::after {
  content: "Click to expand \25be";
}

.testing-details[open] .testing-toggle-hint::after {
  content: "Click to collapse \25b4";
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.about-grid p {
  margin-top: 0;
}

/* Chalk arrow annotation */
.annotated-photo {
  position: relative;
}

.photo-frame img.chalk-arrow {
  position: absolute;
  left: 70%;
  top: 55%;
  width: 60px;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.55));
  rotate: -10deg;
}

.chalk-label {
  position: absolute;
  right: 2%;
  bottom: 10%;
  color: #22b2a6;
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  line-height: 1.15;
  text-align: right;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.85);
  transform: rotate(-4deg);
  pointer-events: none;
}

/* Winemaker photo stack */
.photo-stack {
  display: flex;
  flex-direction: column;
  padding: 1rem 0 2rem;
}

.photo-stack .photo-frame {
  width: 56%;
  min-height: 220px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.photo-stack .photo-frame:nth-child(1) {
  align-self: flex-start;
  z-index: 3;
  margin-bottom: -5rem;
}

.photo-stack .photo-frame:nth-child(2) {
  align-self: flex-end;
  z-index: 2;
  margin-bottom: -5rem;
}

.photo-stack .photo-frame:nth-child(3) {
  align-self: flex-start;
  z-index: 1;
}

.collab-tag {
  display: inline-block;
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* Techniques */
.techniques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.technique-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--sage);
  padding: 1.5rem;
  border-radius: 4px;
}

.technique-card:nth-child(3n+2) {
  border-top-color: var(--amber);
}

.technique-card:nth-child(3n) {
  border-top-color: var(--wine);
}

.technique-card .photo-frame {
  min-height: 160px;
  margin: -1.5rem -1.5rem 1rem;
  border: none;
  border-radius: 4px 4px 0 0;
}

.technique-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.technique-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Photos */
.photo-frame {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-panel);
}

.photo-frame img.zoom-out {
  object-fit: contain;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame.about-photo,
.release-grid .photo-frame {
  min-height: 320px;
}

/* Image carousel */
.carousel {
  position: relative;
}

.carousel .photo-frame img {
  transition: opacity 0.25s ease;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(13, 13, 13, 0.65);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.carousel-arrow.left {
  left: 0.75rem;
}

.carousel-arrow.right {
  right: 0.75rem;
}

.carousel-arrow:hover:not(:disabled) {
  background: var(--amber);
  color: var(--bg);
  border-color: var(--amber);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.gallery-grid .photo-frame {
  min-height: 200px;
}

.techniques-note {
  margin-top: 2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Image placeholders */
.img-placeholder {
  border: 2px dashed var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-radius: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-panel);
}

/* Current release */
.release-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.release-grid .img-placeholder {
  min-height: 320px;
}

.release-details h3 {
  font-size: 1.9rem;
  margin: 0 0 0.25rem;
}

.release-meta {
  color: var(--amber);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  letter-spacing: 0.03em;
}

.release-specs {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.gallery-grid .img-placeholder {
  min-height: 180px;
}

/* Contact */
.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.contact-form button {
  background: var(--amber);
  color: var(--bg);
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.contact-form button:hover {
  opacity: 0.9;
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.9rem;
}

.form-status.success {
  color: var(--sage);
}

.form-status.error {
  color: var(--wine);
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .about-grid,
  .release-grid {
    grid-template-columns: 1fr;
  }
}
