/* ============================================================
   R+A Wedding — Page components
   Reusable patterns used across Schedule, Travel, Gallery,
   Mystic, FAQs, Registry. Imported AFTER tokens.css + site.css.
   ============================================================ */

/* ============================================================
   Intro paragraph — under the page hero
   ============================================================ */

.page-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-9) var(--gutter-d) 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--pine);
}
@media (max-width: 720px) { .page-intro { padding: var(--space-7) var(--gutter-m) 0; } }
.page-intro em { font-style: italic; color: var(--hunter-green); }

/* ============================================================
   Section header (in-page)
   ============================================================ */

.section-head {
  text-align: center;
  margin-bottom: var(--space-8);
}
.section-head .eyebrow-row { margin-bottom: var(--space-4); }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--hunter-green);
}
.section-head h2 em { font-style: italic; }
.section-head p {
  margin-top: var(--space-4);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--sage);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Accordion — used on Travel + FAQs
   ============================================================ */

.accordion {
  border-top: 1px solid var(--bone);
  max-width: 760px;
  margin: 0 auto;
}

.acc-item { border-bottom: 1px solid var(--bone); }

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--hunter-green);
  transition: color var(--t-fast);
}
.acc-trigger:hover { color: var(--crimson); }
.acc-trigger:hover .acc-icon { color: var(--crimson); border-color: var(--crimson); }

.acc-q {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  flex: 1;
}

/* Accordion subtitle (small line under the title — for travel modes) */
.acc-sub {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-style: normal;
  margin-bottom: var(--space-2);
}

/* Plus / minus toggle in a circle */
.acc-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--antique-brass);
  border-radius: 50%;
  color: var(--antique-brass);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-base);
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--t-base);
}
.acc-icon::before {
  width: 12px;
  height: 1px;
}
.acc-icon::after {
  width: 1px;
  height: 12px;
}
.acc-item[data-open="true"] .acc-icon::after { transform: scaleY(0); }
.acc-item[data-open="true"] .acc-icon { transform: rotate(180deg); }

.acc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 500ms var(--t-base);
}
.acc-item[data-open="true"] .acc-panel { max-height: 1200px; }

.acc-content {
  padding: 0 0 var(--space-7);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--pine);
  max-width: 640px;
}
.acc-content p + p { margin-top: var(--space-4); }
.acc-content h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin: var(--space-5) 0 var(--space-3);
}
.acc-content a {
  color: var(--hunter-green);
  border-bottom: 1px solid var(--bone);
  text-decoration: none;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.acc-content a:hover {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}
.acc-note {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--mist);
  border-left: 2px solid var(--antique-brass);
  font-style: italic;
  font-size: 16px;
}

/* ============================================================
   Map — stylized SVG of downtown Mystic + Stonington
   Used on Schedule and Mystic pages.
   ============================================================ */

.map-wrap {
  position: relative;
  background: var(--warm-white);
  border: 1px solid var(--bone);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}

.map-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--ivory);
}
@media (max-width: 720px) {
  .map-svg { aspect-ratio: 4 / 5; }
}

/* Pin */
.pin {
  cursor: pointer;
}
.pin .pin-head {
  fill: var(--crimson);
  stroke: var(--ivory);
  stroke-width: 1.2;
  transition: fill 200ms var(--t-base), stroke 200ms var(--t-base);
}
.pin:hover .pin-head { fill: var(--crimson-deep); }
.pin .pin-num {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  fill: var(--ivory);
  text-anchor: middle;
}
/* Active pin stays put — a CSS transform on the <g> would override its SVG
   translate() and fling it to the corner. Instead it shimmers a gold halo. */
.pin.is-active .pin-head {
  fill: var(--crimson-deep);
  animation: pin-shimmer 1.4s ease-in-out infinite;
}
@keyframes pin-shimmer {
  0%, 100% { stroke: var(--ivory); stroke-width: 1.2; }
  50%      { stroke: var(--antique-brass); stroke-width: 2.6; }
}
@media (prefers-reduced-motion: reduce) {
  .pin.is-active .pin-head { animation: none; stroke: var(--antique-brass); stroke-width: 2; }
}

/* Pin popover */
.pin-popover {
  position: absolute;
  z-index: 5;
  min-width: 240px;
  max-width: 280px;
  background: var(--warm-white);
  border: 1px solid var(--bone);
  padding: var(--space-5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms var(--t-base), transform 200ms var(--t-base);
}
.pin-popover.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.pin-popover .pop-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--antique-brass);
  margin-bottom: var(--space-2);
}
.pin-popover h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--hunter-green);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}
.pin-popover h4 em { font-style: italic; }
.pin-popover .pop-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--sage);
  line-height: 1.45;
}
.pin-popover .pop-meta + .pop-meta { margin-top: var(--space-2); }

/* Map legend (below the map) */
.map-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  padding: var(--space-6);
  border-top: 1px solid var(--bone);
  background: var(--warm-white);
}
.legend-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.legend-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--ivory);
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.legend-text strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  color: var(--hunter-green);
}
.legend-text strong em { font-style: italic; }
.legend-text span {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--sage);
  line-height: 1.45;
}

/* ============================================================
   Schedule — editorial time blocks
   ============================================================ */

.day-block { padding: var(--space-9) 0; }
.day-block + .day-block { border-top: 1px solid var(--bone); }

.day-header {
  text-align: center;
  margin-bottom: var(--space-8);
}
.day-header .eyebrow { display: block; margin-bottom: var(--space-3); color: var(--antique-brass); }
.day-header h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--hunter-green);
}
.day-header h2 em { font-style: italic; }
.day-header .day-date {
  margin-top: var(--space-3);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--sage);
}

.events {
  max-width: 720px;
  margin: 0 auto;
}

.event {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--bone);
}
.event:last-child { border-bottom: 1px solid var(--bone); }
/* A day with a single event needs no dividers around it — the
   day-to-day rule is enough (e.g. Friday's lone Welcome Party). */
.event:only-child { border-top: 0; border-bottom: 0; }
@media (max-width: 640px) {
  .event { grid-template-columns: 1fr; gap: var(--space-3); }
}

.event-time {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--antique-brass);
  padding-top: 4px;
}

.event-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--hunter-green);
  line-height: 1.2;
}
.event-body h3 em { font-style: italic; }
.event-body .event-venue {
  margin-top: var(--space-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--sage);
}
.event-body .event-desc {
  margin-top: var(--space-3);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--pine);
}
.event-body .event-meta {
  margin-top: var(--space-3);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--sage);
}

/* ============================================================
   Card — used on Travel (room block) + general
   ============================================================ */

.card {
  background: var(--warm-white);
  border: 1px solid var(--bone);
  border-radius: var(--radius);
  padding: var(--space-7);
}
@media (max-width: 640px) { .card { padding: var(--space-6); } }
.card--featured {
  border-color: var(--crimson);
  border-width: 1px;
  position: relative;
}
.card--featured::before {
  content: "Our room block";
  position: absolute;
  top: -10px;
  left: var(--space-6);
  background: var(--ivory);
  padding: 2px var(--space-3);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  color: var(--hunter-green);
}
.card h3 em { font-style: italic; }
.card-meta {
  margin-top: var(--space-3);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--sage);
}
.card-body {
  margin-top: var(--space-5);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--pine);
}
.card-dl {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-3) var(--space-5);
  font-family: var(--sans);
  font-size: 14px;
}
.card-dl dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  padding-top: 2px;
}
.card-dl dd {
  margin: 0;
  color: var(--hunter-green);
  font-family: var(--serif);
  font-size: 17px;
}
.card-dl dd em { font-style: italic; color: var(--sage); font-size: 14px; }
@media (max-width: 640px) {
  .card-dl { grid-template-columns: 1fr; gap: 2px var(--space-3); }
  .card-dl dt { margin-top: var(--space-3); }
}
.card-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Hotel list (simpler) */
.hotel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
@media (max-width: 720px) { .hotel-list { grid-template-columns: 1fr; } }

.hotel-item {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--bone);
}
.hotel-item h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--hunter-green);
  line-height: 1.2;
}
.hotel-item h4 em { font-style: italic; }
.hotel-item .hotel-meta {
  margin-top: var(--space-2);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--antique-brass);
}
.hotel-item p {
  margin-top: var(--space-3);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--pine);
}
.hotel-item .hotel-link {
  margin-top: var(--space-3);
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hunter-green);
  border-bottom: 1px solid var(--bone);
  text-decoration: none;
  padding-bottom: 2px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.hotel-item .hotel-link:hover {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}

/* ============================================================
   Gallery — editorial grid + lightbox
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter-d);
}
@media (max-width: 720px) {
  .gallery-grid { padding: 0 var(--gutter-m); grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
}

.gallery-item {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--ivory);
}
.gallery-item .placeholder { width: 100%; height: 100%; }
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* ============================================================
   Ribbon flourish — every gallery image gets a small crimson
   banner hanging from one of the top corners. Alternates L/R
   by grid position for rhythm. Pure CSS so no per-item markup
   is needed. The shadow line down the centre fakes a fold.
   ============================================================ */

.gallery-item::before,
.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 78px;
  pointer-events: none;
  z-index: 3;
}

/* Ribbon body — crimson, fishtail bottom */
.gallery-item::before {
  right: 26px;
  background: var(--crimson);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  filter: drop-shadow(0 2px 4px rgba(20, 16, 12, 0.25));
}

/* Vertical fold line for depth */
.gallery-item::after {
  right: 38px;            /* center of ribbon (26 + 26/2) */
  width: 1px;
  height: 70px;
  background: rgba(0, 0, 0, 0.18);
  z-index: 4;
}

/* Alternate to the opposite corner on every other item */
.gallery-item:nth-of-type(even)::before {
  right: auto;
  left: 26px;
}
.gallery-item:nth-of-type(even)::after {
  right: auto;
  left: 38px;
}

/* On small grids, tuck the ribbon in slightly so it doesn't
   eat the image edge */
@media (max-width: 720px) {
  .gallery-item::before,
  .gallery-item::after { width: 20px; height: 62px; }
  .gallery-item::before { right: 16px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
  .gallery-item::after  { right: 25px; width: 1px; height: 56px; }
  .gallery-item:nth-of-type(even)::before { left: 16px; right: auto; }
  .gallery-item:nth-of-type(even)::after  { left: 25px; right: auto; }
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-5);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(20,33,26,0.72) 100%);
  color: var(--ivory);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base);
}

/* Grid sizes (editorial — varied aspect ratios for rhythm) */
.gi-3-tall  { grid-column: span 4; aspect-ratio: 3 / 4; }
.gi-2-sq    { grid-column: span 4; aspect-ratio: 1 / 1; }
.gi-2-wide  { grid-column: span 8; aspect-ratio: 16 / 9; }
.gi-1-wide  { grid-column: span 6; aspect-ratio: 5 / 6; }
@media (max-width: 720px) {
  .gi-3-tall, .gi-2-sq, .gi-1-wide  { grid-column: span 3; aspect-ratio: 3 / 4; }
  .gi-2-wide { grid-column: span 6; aspect-ratio: 4 / 3; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 24, 18, 0.96);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.lightbox.is-open { display: flex; }
.lightbox-stage {
  width: 100%;
  max-width: 1100px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-5);
}
.lightbox-image {
  width: 100%;
  max-height: 75vh;
  aspect-ratio: 4 / 3;
}
.lightbox-image .placeholder { width: 100%; height: 100%; }
.lightbox-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ivory);
  text-align: center;
  max-width: 720px;
}
.lightbox-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(248,244,236,0.4);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.lightbox-close:hover { border-color: var(--ivory); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: none;
  border: 1px solid rgba(248,244,236,0.4);
  color: var(--ivory);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 28px;
  transition: border-color var(--t-fast);
}
.lightbox-nav:hover { border-color: var(--ivory); }
.lightbox-prev { left: var(--space-5); }
.lightbox-next { right: var(--space-5); }
.lightbox-counter {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(248,244,236,0.6);
}

/* ============================================================
   View toggle (Map | List) + filter chips — Mystic page
   ============================================================ */

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--bone);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--warm-white);
}
.view-toggle button {
  padding: var(--space-3) var(--space-5);
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  cursor: pointer;
  min-height: 44px;
  min-width: 100px;
  transition: background var(--t-fast), color var(--t-fast);
}
.view-toggle button + button { border-left: 1px solid var(--bone); }
.view-toggle button.is-active {
  background: var(--hunter-green);
  color: var(--ivory);
}
.view-toggle button:hover:not(.is-active) {
  background: var(--mist);
  color: var(--hunter-green);
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--bone);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-4);
  height: 34px;
  background: var(--warm-white);
  border: 1px solid var(--bone);
  border-radius: var(--radius-pill, 999px);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--hunter-green);
  cursor: pointer;
  user-select: none;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--hunter-green); }
.chip[aria-pressed="true"] {
  background: var(--hunter-green);
  color: var(--ivory);
  border-color: var(--hunter-green);
}

/* ============================================================
   List view section header — used within the item-list groups
   on the Mystic page. Left-aligned, hairline rule under.
   ============================================================ */

.list-group-head {
  padding: var(--space-9) 0 var(--space-5);
  border-bottom: 1px solid var(--bone);
  margin-bottom: var(--space-5);
}
.list-group-head:first-of-type { padding-top: var(--space-7); }
.list-group-head .eyebrow-row { margin-bottom: var(--space-3); }
.list-group-head h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--hunter-green);
}
.list-group-head p {
  margin-top: var(--space-3);
  font-family: var(--serif);
  font-size: 17px;
  color: var(--sage);
  font-style: italic;
}

/* ============================================================
   Item-list — Mystic recommendations
   ============================================================ */

.item-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  padding: var(--space-9) 0;
}
@media (max-width: 720px) {
  .item-list { grid-template-columns: 1fr; gap: var(--space-6); }
}

.item {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--bone);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (max-width: 480px) {
  .item { grid-template-columns: 1fr; }
}

.item-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 120px;
  overflow: visible;
}
@media (max-width: 480px) { .item-thumb { width: 100%; height: 180px; } }

/* Ribbon flourish on every item thumbnail — same family as the
   gallery ribbons, scaled down to fit the 120px square. Alternates
   top-right / top-left across the list for rhythm. */
.item-thumb::before,
.item-thumb::after {
  content: "";
  position: absolute;
  top: 0;
  pointer-events: none;
  z-index: 3;
}
.item-thumb::before {
  right: 14px;
  width: 18px;
  height: 54px;
  background: var(--crimson);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  filter: drop-shadow(0 2px 3px rgba(20, 16, 12, 0.25));
}
.item-thumb::after {
  right: 22px;       /* 14 + 18/2 - 0.5 */
  width: 1px;
  height: 46px;
  background: rgba(0, 0, 0, 0.18);
  z-index: 4;
}
/* Alternate corner per item position. The .item containers are
   direct children of .item-list, so nth-of-type on .item tells us
   the row index. */
.item:nth-of-type(even) .item-thumb::before { right: auto; left: 14px; }
.item:nth-of-type(even) .item-thumb::after  { right: auto; left: 22px; }

@media (max-width: 480px) {
  .item-thumb::before { right: 16px; width: 22px; height: 64px; }
  .item-thumb::after  { right: 26px; height: 56px; }
  .item:nth-of-type(even) .item-thumb::before { left: 16px; right: auto; }
  .item:nth-of-type(even) .item-thumb::after  { left: 26px; right: auto; }
}

.item-body { min-width: 0; }
.item-body h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  color: var(--hunter-green);
}
.item-body h4 em { font-style: italic; }
.item-tags {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--antique-brass);
}
.item-tags span + span::before {
  content: "·";
  margin-right: var(--space-2);
  color: var(--bone);
}
.item-desc {
  margin-top: var(--space-3);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--pine);
}
.item-actions {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.item-actions a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hunter-green);
  border-bottom: 1px solid var(--bone);
  text-decoration: none;
  padding-bottom: 2px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.item-actions a:hover { color: var(--crimson); border-bottom-color: var(--crimson); }

/* ============================================================
   Registry — link buttons
   ============================================================ */

.registry-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  max-width: 720px;
  margin: var(--space-9) auto 0;
  padding: 0 var(--gutter-d);
}
@media (max-width: 720px) { .registry-buttons { padding: 0 var(--gutter-m); } }

.registry-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-7) var(--space-5);
  background: var(--warm-white);
  border: 1px solid var(--bone);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--hunter-green);
  text-align: center;
  transition: border-color var(--t-fast), background var(--t-fast);
  min-height: 140px;
}
.registry-link:hover {
  border-color: var(--hunter-green);
  background: var(--mist);
}
.registry-link .reg-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--hunter-green);
}
.registry-link .reg-name em { font-style: italic; }
.registry-link .reg-meta {
  margin-top: var(--space-3);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--antique-brass);
}
