/* Victoria Cottage Holmfirth, base styles */

:root {
  --sage-50:  #f3f5f0;
  --sage-100: #e6ebde;
  --sage-200: #c8d2bc;
  --sage-300: #a8b39c;
  --sage-400: #8a9a7b;   /* primary */
  --sage-500: #6e7e60;
  --sage-600: #56664a;
  --sage-700: #3f4d36;
  --sage-800: #2c3725;

  --stone-50:  #faf8f3;
  --stone-100: #f1ede3;
  --stone-200: #e3dccb;
  --stone-300: #c8bfa8;
  --stone-400: #a89c80;
  --stone-500: #7d735c;
  --stone-700: #4a4334;
  --stone-900: #1f1c14;

  --ink:       #1f1c14;
  --paper:     #faf8f3;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans:  "Lora", Georgia, "Times New Roman", serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --stone-tex-opacity: 0.45;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Stone paper texture, subtle layered noise + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--stone-tex-opacity);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(168,156,128,0.18) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(168,156,128,0.15) 0, transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.4  0 0 0 0 0.3  0 0 0 0.32 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: auto, auto, 220px 220px;
  mix-blend-mode: multiply;
}

/* All actual content sits above the texture */
#root, .page-shell { position: relative; z-index: 2; }

/* Headlines */
h1, h2, h3, h4, .display, .serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.05;
  margin: 0;
}

h1, .display { font-size: clamp(48px, 7vw, 112px); }
h2 { font-size: clamp(34px, 4.4vw, 64px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }

p { margin: 0 0 1em; max-width: 60ch; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-style: italic;
  color: var(--sage-600);
  font-weight: 400;
}

.rule { height: 1px; background: var(--stone-300); border: 0; margin: 0; }

/* Vertical type, rotated section labels.
   Hidden on narrower viewports where there's no gutter space. */
.vtype {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--sage-600);
  font-weight: 400;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 1280px) {
  .vtype { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.35s cubic-bezier(0.2,0.7,0.2,1), color 0.35s, transform 0.35s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31,28,20,0.12); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-sage {
  background: var(--sage-400);
  color: var(--paper);
  border-color: var(--sage-400);
}
.btn-sage:hover { background: var(--sage-600); border-color: var(--sage-600); color: var(--paper); }

.btn-ghost { border-color: var(--stone-300); color: var(--stone-700); }
.btn-ghost:hover { border-color: var(--ink); }

/* Container widths */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }

/* Image placeholder, sage-tinted with stripes + caption */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(138, 154, 123, 0.10) 0,
      rgba(138, 154, 123, 0.10) 12px,
      rgba(138, 154, 123, 0.18) 12px,
      rgba(138, 154, 123, 0.18) 24px
    ),
    var(--sage-100);
  color: var(--sage-700);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid var(--sage-200);
}
.placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.4), transparent 60%);
  pointer-events: none;
}
.placeholder .ph-label {
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage-700);
  background: var(--paper);
  padding: 6px 10px;
  margin: 14px;
  border: 1px solid var(--sage-300);
}

/* Soft hover lift */
.lift { transition: transform 0.6s cubic-bezier(0.2,0.7,0.2,1); }
.lift:hover { transform: translateY(-6px); }

/* Slow, subtle ken-burns drift on hero photographs */
@keyframes kenBurns {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.2%, -0.8%); }
}
.ken-burns img { animation: kenBurns 22s ease-in-out infinite alternate; }

/* Letter-by-letter fade for display headings */
.fade-letters > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: letterIn 1.4s cubic-bezier(0.2,0.7,0.2,1) forwards;
}
.fade-letters > span.space { width: 0.32em; }
@keyframes letterIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Marquee underline that draws in on reveal */
.draw-line {
  display: inline-block;
  background-image: linear-gradient(var(--sage-400), var(--sage-400));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 1.4s cubic-bezier(0.2,0.7,0.2,1) 0.4s;
}
.reveal.visible .draw-line { background-size: 100% 1px; }

/* Float-up cards stagger */
.float-card {
  transition: transform 0.6s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.6s;
}
.float-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(31,28,20,0.1);
}

/* Underline link */
.ulink {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: var(--ink);
}
.ulink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 0.4s cubic-bezier(0.6,0,0.2,1);
}
.ulink:hover::after { transform-origin: left center; transform: scaleX(0.4); }

/* Selection */
::selection { background: var(--sage-300); color: var(--ink); }

/* Disable double-tap zoom on buttons */
button { font-family: inherit; }

/* Real photograph wrapper, companion to .placeholder */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--sage-100);
  border: 1px solid rgba(0,0,0,0.04);
}
.photo img {
  transition: transform 1.2s cubic-bezier(0.2,0.7,0.2,1), filter 0.6s ease;
}
.lift:hover .photo img,
.photo.zoom:hover img {
  transform: scale(1.04);
}
