/* =========================================================================
   COMPONENTS — labels, buttons, photographs, notices, accordions
   ========================================================================= */

/* ---- Small uppercase label with a marigold tick ---- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: var(--space-4);
}

.label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 0 4px var(--accent-tint);
}

.label-light {
  color: var(--accent);
}
.label-light::before {
  box-shadow: 0 0 0 4px rgba(224, 138, 46, 0.18);
}

.label-plain::before {
  display: none;
}

/* ---- Section heading block ---- */
.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-7);
}

.section-head p {
  color: var(--muted);
  font-size: var(--text-lg);
  margin-top: var(--space-4);
}

.section-burgundy .section-head p {
  color: rgba(244, 238, 228, 0.84);
}

.head-rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0 0 var(--space-6);
}

.section-burgundy .head-rule {
  border-top-color: rgba(244, 238, 228, 0.22);
}

/* ---- Buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.button-primary:hover:not(:disabled) {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px rgba(36, 27, 38, 0.7);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--ink);
  background: rgba(36, 27, 38, 0.04);
  color: var(--ink);
}

.button-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.button-light:hover:not(:disabled) {
  background: var(--white);
  color: var(--burgundy-deep);
  transform: translateY(-1px);
}

.button-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 238, 228, 0.4);
}

.button-ghost-light:hover:not(:disabled) {
  border-color: var(--paper);
  color: var(--white);
}

.button-small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: var(--text-xs);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---- Text link with an arrow ---- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 650;
  text-decoration: none;
  color: var(--burgundy);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 4px;
}

.arrow-link span[aria-hidden] {
  transition: transform var(--duration) var(--ease);
}

.arrow-link:hover {
  border-bottom-color: var(--burgundy);
}

.arrow-link:hover span[aria-hidden] {
  transform: translateX(3px);
}

.arrow-link-light {
  color: var(--cream);
  border-bottom-color: rgba(244, 238, 228, 0.4);
}

.arrow-link-light:hover {
  color: var(--white);
  border-bottom-color: var(--cream);
}

/* ---- Photographs and photo slots ---- */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--cream-deep);
  border-radius: var(--radius-photo);
}

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

.photo-figure {
  margin: 0;
}

.photo-credit {
  display: block;
  margin-top: 8px;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.45;
}

.photo-credit a {
  color: var(--muted);
}

.photo-temporary-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(29, 26, 23, 0.82);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: var(--radius);
}

/* A photograph that has not been supplied yet: named, framed, never faked. */
.photo-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: var(--space-5);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 11px,
      rgba(173, 134, 80, 0.055) 11px 12px
    ),
    var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-photo);
  color: var(--muted);
}

.photo-slot::before,
.photo-slot::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--brass);
  opacity: 0.75;
}

.photo-slot::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.photo-slot::after {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}

.photo-slot .slot-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-ink);
}

.photo-slot .slot-name {
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 0.9rem + 0.4vw, 1.2rem);
  color: var(--charcoal);
  line-height: 1.25;
  max-width: 26ch;
}

.photo-slot .slot-note {
  font-size: var(--text-xs);
  max-width: 30ch;
  line-height: 1.5;
}

.section-burgundy .photo-slot {
  background:
    repeating-linear-gradient(-45deg, transparent 0 11px, rgba(244, 238, 228, 0.06) 11px 12px),
    rgba(244, 238, 228, 0.06);
  border-color: rgba(244, 238, 228, 0.24);
  color: rgba(244, 238, 228, 0.72);
}

.section-burgundy .photo-slot .slot-name {
  color: var(--paper);
}

.section-burgundy .photo-slot .slot-kicker {
  color: var(--brass);
}

/* ---- Notices ---- */
.notice {
  border: var(--hairline);
  border-left: 3px solid var(--brass);
  background: var(--cream);
  padding: var(--space-5);
  border-radius: var(--radius);
}

.notice h2,
.notice h3 {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: var(--charcoal);
}

.notice p,
.notice li {
  font-size: var(--text-sm);
  color: var(--muted);
}

.notice-strong {
  border-left-color: var(--burgundy);
  background: var(--paper);
}

.notice ul {
  margin: 0;
  padding-left: 1.1em;
}

/* ---- Editorial cards (square, hairline, no float) ---- */
.card {
  background: var(--paper);
  border: var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.card-cream {
  background: var(--cream);
}

.card h3 {
  margin-bottom: var(--space-3);
}

.card p {
  color: var(--muted);
  font-size: var(--text-sm);
}

/* ---- Definition rows ---- */
.detail-list {
  margin: 0;
  border-top: var(--hairline);
}

.detail-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: var(--space-4);
  padding: 12px 0;
  border-bottom: var(--hairline);
}

.detail-list dt {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  padding-top: 2px;
}

.detail-list dd {
  margin: 0;
  font-size: var(--text-sm);
}

@media (max-width: 560px) {
  .detail-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ---- Accordion (native details/summary) ---- */
.accordion {
  border-top: var(--hairline);
}

.accordion details {
  border-bottom: var(--hairline);
}

.accordion summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--h4);
  font-weight: 600;
  color: var(--charcoal);
  min-height: 48px;
}

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

.accordion summary:hover {
  color: var(--burgundy);
}

.accordion summary .marker {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
  margin-top: 4px;
}

.accordion summary .marker::before,
.accordion summary .marker::after {
  content: "";
  position: absolute;
  background: var(--burgundy);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.accordion summary .marker::before {
  top: 10px;
  left: 2px;
  width: 18px;
  height: 1.5px;
}

.accordion summary .marker::after {
  top: 1.5px;
  left: 10.25px;
  width: 1.5px;
  height: 18px;
}

.accordion details[open] summary .marker::after {
  transform: scaleY(0);
  opacity: 0;
}

.accordion-body {
  padding-bottom: 20px;
  max-width: 68ch;
  animation: accordion-open 260ms var(--ease);
}

.accordion-body p {
  color: var(--muted);
  font-size: var(--text-base);
}

@keyframes accordion-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Tag chips ---- */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---- Long-form prose pages ---- */
.prose h2 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose strong {
  color: var(--charcoal);
}

.page-intro {
  padding-block: clamp(36px, 4.5vw, 60px) clamp(28px, 3vw, 40px);
  border-bottom: var(--hairline);
  background: var(--cream);
}

.page-intro .lede {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.45;
  color: var(--charcoal);
  max-width: 56ch;
  margin-top: var(--space-4);
}

.page-intro .support {
  color: var(--muted);
  margin-top: var(--space-4);
  max-width: 62ch;
}
