/* ================================================================
   Colombici · Tres · styles-orange.css
   Variant: all-orange type, medium weight, slightly larger scale
   ================================================================ */


/* ----------------------------------------------------------------
   Variables
   ---------------------------------------------------------------- */
:root {
  --accent:      #F37021;
  --text:        #F37021;   /* Everything orange */
  --bg-fallback: #F8F5F1;

  --font-display: "Blanco", "Hoefler Text", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body:    "Pitch Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --max-width: 520px;
  --px:        26px;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  3.5rem;
  --space-xl:  5rem;
}


/* ----------------------------------------------------------------
   Reset & base
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;   /* Slightly larger base than default */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:       var(--font-body);
  color:             var(--text);
  background-color:  var(--bg-fallback);
  background-image:  url('assets/tres_paper_texture.jpg');
  background-repeat: repeat;
  background-size:   auto;
  min-height:        100vh;
  line-height:       1.6;
}

body::before {
  content:        '';
  position:       fixed;
  inset:          0;
  background:     rgba(255, 255, 255, 0.62);
  pointer-events: none;
  z-index:        0;
}

header, main, footer {
  position: relative;
  z-index:  1;
}

a {
  color: inherit;
  text-decoration: none;
}

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


/* ----------------------------------------------------------------
   Layout
   ---------------------------------------------------------------- */
header,
section,
footer {
  max-width:     var(--max-width);
  margin-left:   auto;
  margin-right:  auto;
  padding-left:  var(--px);
  padding-right: var(--px);
}

section {
  padding-top:    var(--space-lg);
  padding-bottom: var(--space-lg);
}


/* ----------------------------------------------------------------
   Header / hand GIF
   ---------------------------------------------------------------- */
#top {
  text-align:     center;
  padding-top:    var(--space-lg);
  padding-bottom: var(--space-md);
}

.hand-visual {
  display:   block;
  width:     62vw;
  max-width: 260px;
  height:    auto;
  margin:    0 auto;
}


/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */
#hero {
  text-align:     center;
  padding-top:    var(--space-xs);
  padding-bottom: var(--space-lg);
}

#hero h1 {
  font-family:   var(--font-display);
  font-weight:   normal;
  font-size:     clamp(2.6rem, 9vw, 3.8rem);
  line-height:   1.1;
  color:         var(--accent);
  margin-bottom: var(--space-xs);
}

.hero-es {
  font-family:   var(--font-display);
  font-style:    italic;
  font-size:     1.15rem;
  font-weight:   500;
  color:         var(--text);
  margin-bottom: var(--space-md);
}

.pre-h2 {
  font-family:    var(--font-body);
  font-size:      0.95rem;
  font-weight:    600;
  letter-spacing: 0.04em;
  color:          var(--text);
  margin-bottom:  var(--space-xs);
}

#hero h2 {
  font-family:   var(--font-display);
  font-weight:   normal;
  font-size:     clamp(1.7rem, 6vw, 2.5rem);
  line-height:   1.15;
  color:         var(--text);
  margin-bottom: var(--space-xs);
}

.hero-sub {
  font-family: var(--font-display);
  font-weight: normal;
  font-style:  italic;
  font-size:   clamp(1rem, 3vw, 1.2rem);
  color:       var(--text);
}


/* ----------------------------------------------------------------
   Details — included / not included
   ---------------------------------------------------------------- */
#details {
  padding-top:    0;
  padding-bottom: var(--space-lg);
}

.detail-row {
  display:       flex;
  gap:           0.75em;
  align-items:   baseline;
  padding:       0.85rem 0;
  border-top:    1px solid rgba(243, 112, 33, 0.25);
  flex-wrap:     wrap;
}

.detail-row:last-of-type {
  border-bottom: 1px solid rgba(243, 112, 33, 0.25);
  margin-bottom: var(--space-md);
}

.detail-label {
  font-family:    var(--font-body);
  font-size:      0.85rem;
  font-weight:    700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color:          var(--text);
  flex-shrink:    0;
  min-width:      95px;
}

.detail-text {
  font-family: var(--font-body);
  font-size:   1rem;
  font-weight: 500;
  color:       var(--text);
  line-height: 1.5;
}

.link-ich {
  display:               inline-block;
  font-family:           var(--font-body);
  font-size:             1rem;
  font-weight:           600;
  color:                 var(--text);
  text-decoration:       underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  margin-top:            var(--space-xs);
}

.link-ich:hover {
  text-decoration: none;
}


/* ----------------------------------------------------------------
   RSVP
   ---------------------------------------------------------------- */
#rsvp {
  padding-top: 0;
}

.rsvp-heading {
  font-family:   var(--font-display);
  font-weight:   normal;
  font-size:     clamp(1.6rem, 5.5vw, 2.2rem);
  line-height:   1.2;
  color:         var(--text);
  margin-bottom: var(--space-md);
}

.rsvp-buttons {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-sm);
}

.btn {
  display:        block;
  width:          100%;
  padding:        1rem 1.5rem;
  font-family:    var(--font-body);
  font-size:      1rem;
  font-weight:    600;
  text-align:     center;
  border-radius:  3px;
  line-height:    1.2;
  cursor:         pointer;
  transition:     opacity 0.15s ease;
  letter-spacing: 0.01em;
}

.btn:hover { opacity: 0.82; }

.btn:focus-visible {
  outline:        2px solid var(--accent);
  outline-offset: 3px;
}

/* Primary: solid orange, white text */
.btn-primary {
  background-color: var(--accent);
  color:            #ffffff;
  border:           2px solid var(--accent);
}

/* Ghost: transparent, orange border, orange text */
.btn-ghost {
  background-color: transparent;
  color:            var(--accent);
  border:           2px solid var(--accent);
}


/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
#footer {
  text-align:     center;
  padding-top:    var(--space-md);
  padding-bottom: var(--space-xl);
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            var(--space-sm);
}

.footer-byline {
  font-family:    var(--font-body);
  font-size:      0.85rem;
  font-weight:    600;
  color:          var(--text);
  letter-spacing: 0.05em;
}

/* Tint the black wordmark to orange via CSS filter */
.footer-wordmark {
  display:    block;
  width:      auto;
  max-width:  140px;
  max-height: 32px;
  object-fit: contain;
  filter:     brightness(0) saturate(100%)
              invert(45%) sepia(80%) saturate(800%)
              hue-rotate(349deg) brightness(100%) contrast(95%);
}

.footer-link {
  font-family:           var(--font-body);
  font-size:             0.82rem;
  font-weight:           500;
  color:                 var(--text);
  text-decoration:       underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  opacity:               0.7;
}

.footer-link:hover { opacity: 1; }


/* ----------------------------------------------------------------
   Desktop (≥ 640px)
   ---------------------------------------------------------------- */
@media (min-width: 640px) {
  html { font-size: 19px; }
  :root { --px: 40px; }

  #top    { padding-top: var(--space-xl); }
  section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
  #hero   { padding-top: var(--space-xs); }

  .rsvp-buttons { flex-direction: row; }
}


/* ----------------------------------------------------------------
   Reduced motion
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hand-visual { animation: none; }
}
