:root{
  /* Earthy pastel palette */
  --paper: #faf9f1;
  --paper-2: #eae5d2;
  --ink: #666;
  --muted: #7f7266;
  --brand: #8B4513;     /* terracotta */
  --brand-2: #661208;   /* darker terracotta */
  --accent: #c8a88a;    /* sand */
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --radius: 5px;
  --header-h: 70px;
}

/* CSS reset (trim) */
*{box-sizing:border-box}
html,body {
  min-height:100vh
}
html {
  scroll-behavior:smooth
}
body{
  margin:0;
  font: 18px/1.6 'Source Sans Pro', sans-serif;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Custom font for headers */
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-display.regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "Sophistica1";
  src: url('fonts/sophistica1.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brother Signature";
  src: url('fonts/BrotherSignature.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}
h2,h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
}
.hand {
  font-family: 'Playfair Display', serif;
  /*font-family: "Caveat","Patrick Hand","Shadows Into Light","Lucida Handwriting","Brush Script MT","Segoe Print","Apple Chancery",cursive;*/
}


h1 {
  font-size: 60pt;
  line-height:1.1;
  font-weight: 300;
  color: #8B4513;
}


h1.hand {
  font-family: "Brother Signature";
}

h2 {
  font-size:clamp(1.8rem, 1.8vw, 2.5rem);
  line-height:1.2;
  color:var(--brand)
}

h3 {
  color:var(--brand)
  }

p {
  margin:.6rem 0 1rem;
}
a {
  color:inherit;
  text-decoration:none
}
img {
  max-width:100%;
  height:auto;
  display:block;
}

/* Layout helpers */
.container{
  width:min(1100px, 92%);
  margin-inline:auto;
  align-items: center;
}
.menu{
  width:min(1500px, 90%);
  margin-inline:auto;
  align-items: center;
}

.section{padding: clamp(2rem, 5vw, 4rem) 0}
.section.alt{background:var(--paper-2)}
.grid{
  display:grid;
  gap:clamp(1rem,2.5vw,1.6rem);
  align-items: center;
}
.grid.cols-4{grid-template-columns: repeat(4, minmax(220px,1fr))}
.grid.cols-3{grid-template-columns: repeat(3, minmax(200px,1fr))}
.grid.cols-2{grid-template-columns: repeat(2, minmax(200px,1fr))}
@media (max-width: 1200px){
  .grid.cols-4{grid-template-columns: repeat(3, minmax(200px,1fr))}
}
@media (max-width: 950px){
  .grid.cols-4, .grid.cols-3{grid-template-columns: repeat(2, minmax(200px,1fr))}
}
@media (max-width: 700px){
  .grid.cols-4, .grid.cols-3, .grid.cols-2{grid-template-columns: 1fr}
  .grid.cols-2 {
    display: flex;
    flex-direction: column;
  }
  .shop-card {
    min-height: 420px;
  }
  .shop-card .media {
    height: 300px;
  }
  .shop-card .details {
    padding: 1.5rem;
  }
}

.btn{
  display:inline-block;
  padding:.9rem 1.1rem;
  border-radius: 5px;
  background: var(--brand);
  color:#fff; 
  font-weight:500; 
  font-size: 16px;
  letter-spacing:.3px;
  box-shadow: var(--shadow);
  border: 0;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.btn:is(:hover,:focus) {
  transform: translateY(-1px);
  background: var(--brand-2)
}

/* Header */
.site-header{
  position:fixed; inset:0 auto auto 0; right:0; height:var(--header-h);
  display:flex; align-items:center; z-index:50;
  background: transparent; /* Inicio requirement: transparent over hero */
  padding-inline: clamp(.75rem, 2vw, 1.2rem);
  transition: background .25s ease, box-shadow .25s ease;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 51;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--ink);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
.nav {
  display: flex;
}
.nav.mobile-active {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: color-mix(in oklab, var(--paper) 95%, white 5%);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  flex-direction: column;
  padding: 1rem;
  gap: 0;
}
.nav.mobile-active a {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin: 0.2rem 0;
}


.card .contact-links {
  font-weight: 500;
  color: var(--brand-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.card .contact-links:hover,
.card .contact-links:focus {
  color: var(--brand);
}

body.inner .site-header{
  /* Solid header on inner pages for readability */
  background: color-mix(in oklab, var(--paper) 92%, white 8%);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  backdrop-filter: blur(6px);
}

/* Transparent header behavior on Inicio (home) */
.home .site-header.is-solid{
  background: color-mix(in oklab, var(--paper) 92%, white 8%);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  backdrop-filter: blur(6px);
}
.home .site-header:not(.is-solid) .brand strong {
  color: #fff;
 }
.home .site-header:not(.is-solid) .nav a {
   color: rgba(255,255,255,.92);
}
.home .site-header:not(.is-solid) .nav a:is(:hover,:focus),
.home .site-header:not(.is-solid) .nav a.active {
  color:#fff; background: transparent;
}
.home .site-header:not(.is-solid) .brand img {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.home .site-header:not(.is-solid) .brand {
  color: var(--paper-2);
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: "Brother Signature";
  font-size: 40px;
  font-weight:300;
  letter-spacing: 1px;
}
.brand img {
  height:40px;
  width:auto;
}
.nav{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.2rem);
}
.nav a {
  padding: .35rem .55rem;
  border-radius: 8px;
  font-weight: 400;
  color: var(--ink);
}
.nav a.active {
  color:var(--brand);
}
.nav a:is(:hover,:focus) {
  background: color-mix(in oklab, var(--paper-2) 85%, white 15%);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transform: translateY(-1px);
}

/* Main spacing so fixed header won't overlap content */
main{
  padding-top: var(--header-h);
  flex: 1;
}

/* Hero */
.hero{
  min-height: 100dvh;
  display:grid; place-items:start center;
  background: center / cover no-repeat;
  position:relative;
  isolation:isolate;
  padding-top: clamp(6rem, 22vh, 28vh); /* raise hero-inner higher */
}
.hero::after{
  /* soft darkening gradient for contrast */
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.25) 30%, rgba(0,0,0,.35));
  z-index:-1;
}
.hero .hero-inner {
  text-align: center;
  color: var(--paper);
  margin-top: 1.2rem;
  padding: 1rem;
}
.hero .logo-mark {
  width: 80px;
  height:auto;
  margin-inline: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}
.hero h1 {
  font-weight: 100;
  text-shadow: 0 10px 35px rgba(0,0,0,.55);
}
h1.hero-inner{
  font-family: "Brother Signature";
  font-size: 90px;
}

.scroll-arrow{
  position:absolute; left:50%; bottom:24px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.92);
  opacity:.95; will-change: transform;
  animation: bounce 2.2s ease-in-out infinite;
}
.scroll-arrow svg{
  display: block;
  width: 36px;
  height: 36px;
}
@keyframes bounce{
  0%,100%{ transform: translateX(-50%) translateY(0) }
  50%{ transform: translateX(-50%) translateY(12px) }
}

/* Cards / images */
.card{
  background:#fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 1.4rem);
}
.figure-frame{
  overflow:hidden; border-radius: var(--radius); box-shadow: var(--shadow); background:#fff;
  aspect-ratio: 4 / 3; /* normalize figure height to avoid awkward tall frames */
  /* Allow inline styles to override aspect-ratio when width is explicitly set */
}
.figure-frame img{
  width:100%; height: 100%; display:block; object-fit: cover;
  transition: transform .6s ease;
}
.figure-frame:hover img{ transform: scale(1.03) }

/* Tienda product with hover overlay */
.product{
  position:relative; overflow:hidden; border-radius: var(--radius);
  background:#fff; box-shadow: var(--shadow);
}
.product img{
  width:100%; aspect-ratio: 4/3; object-fit:cover; display:block;
  transform: scale(1.02);
  transition: transform .6s ease;
}
.product:hover img{ transform: scale(1.065) }
.product figcaption{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end;
  color:#fff; padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, transparent 70%);
  opacity:0; transition: opacity .35s ease;
}
.product figcaption .panel{
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  padding:.6rem .7rem; border-radius: 10px;
}
.product:hover figcaption{ opacity:1 }
.product .meta{
  background: color-mix(in oklab, var(--brand) 70%, black 20%);
  align-self:start; padding:.35rem .6rem; border-radius: 10px; font-weight:600; margin-bottom:.5rem
}
.product h3{ margin:.2rem 0 .35rem; color:#fff; font-weight:500 }
.price{ font-weight:700; letter-spacing:.3px }

/* Tienda - card layout with consistent heights */
.shop-card{
  background:#fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  height: 100%;
  min-height: 400px;
}
.shop-card .media {
  flex-shrink: 0;
  width: 100%;
  height: 250px;
  overflow: hidden;
}
.shop-card .media {
  position: relative;
  overflow: hidden;
}

.shop-card .media img {
  width:100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display:block;
  transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.shop-card:hover .media img {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

/* Clickable image styling */
.image-edit-link {
  display: block;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-edit-link:hover {
  transform: scale(1.02);
}

.image-edit-link:hover::after {
  content: "✏️";
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  backdrop-filter: blur(4px);
}

.image-edit-link:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.shop-card .details {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-top: 1px solid color-mix(in oklab, var(--muted) 14%, white);
  text-align: left; /* enforce left alignment for all product card details */
}
.shop-card .details .content {
  flex: 1;
}

/* Ensure headings and price within product cards are left-aligned */
.shop-card .details h3,
.shop-card .details .price,
.shop-card .details p {
  text-align: left;
}
.shop-card h3{
  margin:.2rem 0 .4rem;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: 2.6rem; /* 2 lines at 1.3 line-height */
}
.shop-card .price{
  color: var(--brand);
  margin-bottom: .6rem;
  flex-shrink: 0;
}
.shop-card .product-actions {
  margin-top: auto;
  flex-shrink: 0;
}

/* Product popup */
.product-container {
  position: relative;
}
.product-checkbox {
  display: none;
}
.shop-card-label {
  cursor: pointer;
}
.product-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.product-checkbox:checked ~ .product-popup {
  display: flex;
}
.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.popup-content {
  background: var(--paper);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 90%;
  max-width: 1000px;
  position: relative;
  z-index: 101;
}
.image-gallery {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.image-gallery .images {
  display: flex;
  transition: transform 0.3s ease;
}
.image-gallery img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  flex-shrink: 0;
}
.close-btn-popup {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}
.close-btn-popup:hover {
  color: var(--brand);
}
.image-gallery input[type="radio"] {
  display: none;
}
/* Left/Right click zones for navigation */
.image-gallery .gallery-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  pointer-events: auto; /* make labels clickable */
}
.image-gallery .gallery-controls label {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.25);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.image-gallery .gallery-controls label:hover {
  transform: scale(1.12);
  background: #fff;
}
/* Active dot styles and slide transforms (slug-agnostic via suffix selectors) */
.image-gallery input[id$="-img-1"]:checked ~ .gallery-controls label[for$="-img-1"],
.image-gallery input[id$="-img-2"]:checked ~ .gallery-controls label[for$="-img-2"],
.image-gallery input[id$="-img-3"]:checked ~ .gallery-controls label[for$="-img-3"] {
  background: #fff;
}

.image-gallery input[id$="-img-1"]:checked ~ .images { transform: translateX(0); }
.image-gallery input[id$="-img-2"]:checked ~ .images { transform: translateX(-100%); }
.image-gallery input[id$="-img-3"]:checked ~ .images { transform: translateX(-200%); }

/* Gallery arrow navigation for touch devices */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 10;
}

.gallery-arrow:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.05);
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-arrow-left {
  left: 12px;
}

.gallery-arrow-right {
  right: 12px;
}

/* Arrow symbols using CSS */
.gallery-arrow-left:before {
  content: "‹";
  font-size: 24px;
  color: var(--ink);
  font-weight: bold;
}

.gallery-arrow-right:before {
  content: "›";
  font-size: 24px;
  color: var(--ink);
  font-weight: bold;
}

/* Show appropriate arrows based on checked radio button (slug-agnostic) */
.image-gallery input[id$="-img-1"]:checked ~ .gallery-arrow-1,
.image-gallery input[id$="-img-2"]:checked ~ .gallery-arrow-2,
.image-gallery input[id$="-img-3"]:checked ~ .gallery-arrow-3 {
  display: flex;
}

/* Mobile-specific styling for arrows */
@media (max-width: 768px) {
  .gallery-arrow {
    width: 48px;
    height: 48px;
  }

  .gallery-arrow-left:before,
  .gallery-arrow-right:before {
    font-size: 28px;
  }

  .gallery-arrow-left {
    left: 8px;
  }

  .gallery-arrow-right {
    right: 8px;
  }
}

/* Ensure arrows don't interfere with close button on mobile */
@media (max-width: 900px) {
  .gallery-arrow {
    top: 45%;
  }

  .close-btn-popup {
    top: 0.5rem;
    right: 0.5rem;
  }
}

.popup-details {
  text-align: center;
}
.popup-details h3 {
  margin-top: 0;
}

.close-btn, .buy-btn {
  display: inline-block;
  padding: .9rem 1.1rem;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .3px;
  box-shadow: var(--shadow);
  cursor: pointer;
  margin-top: 1rem;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.close-btn:hover, .buy-btn:hover {
  transform: translateY(-1px);
  background: var(--brand-2);
}

/* Footer */
footer{
  background: var(--brand-2);
  color:#fff;
  padding: 1rem 0;
  margin: 0;
  flex-shrink: 0;
  text-align:center;
  color: var(--paper-2)
}
footer h2 {
  color: white;
}
footer .cta{
  text-align:center; margin-bottom: 1.2rem;
}
footer small {
  display:block;
  text-align:center;
  opacity:.85
}

/* Typography helpers */ 
.kicker{
  font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color: var(--muted); font-size:.85rem
}

/* CSS-only reveal animations */
@keyframes fade-up{
  from{opacity:0; transform: translateY(18px)}
  to{opacity:1; transform:none}
}
.reveal{
  opacity:0;
  animation:
  fade-up .8s ease forwards;
  animation-delay:.2s;
  align-items: center;
  align-content: center;
}

/* Scroll-linked animation when supported */
@supports (animation-timeline: view()){
  .reveal{
    animation-name: fade-up;
    animation-timeline: view();
    /* start revealing once 20% of the element enters, finish when 40% is covered */
    animation-range: entry 10% cover 30%;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal, .figure-frame img, .product img{ animation:none; transition:none }
}

/* Responsive popup layout */
@media (max-width: 900px){
  .popup-content {
    grid-template-columns: 1fr;
    width: 95%;
    max-width: 600px;
    padding: 1.5rem;
  }
  .image-gallery img {
    height: 350px;
  }
  /* Remove order change to keep image above text naturally */
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .hamburger {
    margin-left: auto;
    display: flex;
  }
  .nav {
    display: none;
  }
  .nav.mobile-active {
    display: flex;
  }
  .site-header {
    padding-inline: 1rem;
  }
  .brand {
    margin-right: 1rem;
  }

  /* Adjust card layout for mobile */
  .shop-card h3 {
    -webkit-line-clamp: 3;
    min-height: 3.9rem; /* 3 lines at 1.3 line-height */
  }

  .shop-card .media {
    height: 280px;
  }

  /* Mobile adjustments for clickable images */
  .image-edit-link:hover::after {
    width: 28px;
    height: 28px;
    font-size: 12px;
    top: 8px;
    right: 8px;
}
}

/* Gallery overlay navigation for touch */
.image-gallery {
  position: relative; /* Ensure relative positioning for overlays */
}

.gallery-overlay {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background: transparent;
  cursor: pointer;
  z-index: 1; /* Above images, below close button */
  transition: background 0.2s ease;
  pointer-events: auto;
}

.gallery-overlay:hover,
.gallery-overlay:active {
  /* For next/right overlay - darker on right edge */
  background: linear-gradient(to left,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    transparent 80%
  );
  backdrop-filter: blur(1px);
}

.gallery-overlay--left:hover,
.gallery-overlay--left:active {
  /* For previous/left overlay - darker on left edge */
  background: linear-gradient(to right,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    transparent 80%
  );
  backdrop-filter: blur(1px);
}

.gallery-overlay::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-overlay:hover::before,
.gallery-overlay:active::before {
  opacity: 1;
}

.gallery-overlay--left {
  left: 0;
}

.gallery-overlay--left::before {
  content: '‹'; /* Left arrow for previous */
  left: 20px;
}

.gallery-overlay--right {
  right: 0;
}

.gallery-overlay--right::before {
  content: '›'; /* Right arrow for next */
  right: 20px;
}

.gallery-overlay.disabled {
  display: none;
  pointer-events: none;
  cursor: default;
}

/* Hide/disable for single-image galleries */
.image-gallery.single-image .gallery-overlay {
  display: none !important;
  pointer-events: none;
  cursor: default;
}

.image-gallery.single-image .gallery-controls {
  display: none;
}
/* Mobile adjustments: Larger touch targets, adjust arrow positions */
@media (max-width: 768px) {
  .gallery-overlay {
    min-height: 44px; /* Touch target size */
  }
  
  .gallery-overlay::before {
    font-size: 28px;
  }
  
  .gallery-overlay--left::before {
    left: 15px;
  }
  
  .gallery-overlay--right::before {
    right: 15px;
  }
}

/* Utility */
.center{text-align:center}
.spacer{height: 1.2rem}
.hr{height:1px; background: color-mix(in oklab, var(--muted) 20%, white); margin: 1.2rem 0}
.hp-wrapper {
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}
.contact-card {
  background: #fff;
  padding: clamp(1.4rem, 3vw, 1.8rem);
  margin-top: 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.5rem;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}
.contact-form__field--full {
  grid-column: 1 / -1;
}
.contact-form__actions {
  justify-content: flex-end;
}
.contact-form__field label {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--muted) 25%, white 75%);
  background: color-mix(in oklab, var(--paper) 96%, white 4%);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.contact-form textarea {
  min-height: 180px;
  line-height: 1.5;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: color-mix(in oklab, var(--paper) 92%, white 8%);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--brand) 35%, white 65%);
}
.contact-form ::placeholder {
  color: color-mix(in oklab, var(--muted) 60%, white 40%);
  font-size: 0.95rem;
}
.contact-form__actions .btn {
  min-width: 180px;
}
@media (max-width: 700px){
  .contact-form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-form__actions {
    justify-content: center;
  }
  .contact-form__actions .btn {
    width: 100%;
    max-width: 280px;
  }
  .contact-card {
    padding: 1.2rem;
  }
}
.status-success {
  background: color-mix(in oklab, var(--brand) 15%, white 85%);
  color: var(--brand);
  color: #187a3c;
  font-weight: bold;
  padding: .9rem 1.2rem;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, var(--brand) 50%, white 50%);
}
.status-error {
  background: color-mix(in oklab, #ff5400 15%, white 85%);
  color: #8b2a00;
  padding: .9rem 1.2rem;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, #ff5400 35%, white 65%);
}

/* Page-specific tweaks */
.home main{ padding-top: 0 } /* hero is full-screen, header fixed over it */

.page-title{
  background: linear-gradient(180deg, color-mix(in oklab, var(--paper-2) 90%, white) 0%, var(--paper) 100%);
  border: 0;
  padding: 2.8rem 0 0;
  text-align:center
}
.page-title h1 {
  margin: 0;
}