/* Dovestead template gallery — inherits palette, type and button primitives from the landing page. */
.templates-page { background: var(--paper, #f7f4ed); }
.templates-page .site-header { position: relative; }
.templates-main { overflow: hidden; }
.templates-intro { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.templates-intro .eyebrow { margin-bottom: 1.1rem; }
.templates-intro h1 { margin: 0; color: var(--ink, #2d302c); font-family: var(--font-serif, Georgia, serif); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 400; letter-spacing: -.055em; line-height: .98; }
.templates-lede { max-width: 42rem; margin: 1.4rem auto 0; color: var(--muted, #6f746d); font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.7; }
.templates-count { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.65rem; color: var(--muted, #6f746d); font-size: .78rem; letter-spacing: .015em; }
.availability-dot, .template-status i { display: inline-block; width: .45rem; height: .45rem; flex: 0 0 auto; border-radius: 50%; background: #5c816b; box-shadow: 0 0 0 3px rgb(92 129 107 / 12%); }
.count-divider { width: 1px; height: .9rem; background: rgb(59 73 61 / 20%); }
.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.15rem, 2.25vw, 2rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.template-card { min-width: 0; overflow: hidden; border: 1px solid rgb(74 79 68 / 13%); border-radius: 1.15rem; background: rgb(255 254 250 / 83%); box-shadow: 0 12px 34px rgb(45 48 44 / 4%); transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.template-card--available:hover { transform: translateY(-4px); border-color: rgb(50 80 61 / 24%); box-shadow: 0 20px 48px rgb(45 48 44 / 9%); }
.template-preview { position: relative; height: clamp(250px, 32vw, 420px); overflow: hidden; background: #e8e8dc; }
.template-preview--live { display: flex; flex-direction: column; background: #eae8df; }
.preview-browser-bar { z-index: 2; display: flex; height: 2.2rem; flex: 0 0 2.2rem; align-items: center; justify-content: space-between; padding: 0 .85rem; color: #72766e; background: rgb(255 254 250 / 93%); font-size: .62rem; letter-spacing: .08em; }
.browser-dots { display: flex; gap: .27rem; }
.browser-dots i { width: .38rem; height: .38rem; border-radius: 50%; background: #b7b9aa; }
.browser-dots i:nth-child(2) { background: #d5c7a6; }
.browser-dots i:nth-child(3) { background: #d9b1a0; }
.browser-lock { font-size: .75rem; }
.live-preview-frame { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.live-preview-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #f7f4ed; pointer-events: none; }
.preview-open-link { position: absolute; inset: 0; z-index: 1; }
.preview-caption { position: absolute; right: .8rem; bottom: .8rem; z-index: 2; padding: .38rem .62rem; border: 1px solid rgb(255 255 255 / 55%); border-radius: 999px; color: #fffefa; background: rgb(37 53 43 / 74%); font-size: .62rem; letter-spacing: .04em; pointer-events: none; }
.template-card__body { padding: clamp(1.1rem, 2vw, 1.55rem) clamp(1.1rem, 2vw, 1.7rem) clamp(1.25rem, 2vw, 1.65rem); }
.template-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.template-style { margin: 0 0 .45rem; color: #7d806f; font-size: .63rem; font-weight: 600; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.template-title-row h2 { margin: 0; color: var(--ink, #2d302c); font-family: var(--font-serif, Georgia, serif); font-size: clamp(1.75rem, 2.8vw, 2.25rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.05; }
.template-status { display: inline-flex; min-height: 1.8rem; flex: 0 0 auto; align-items: center; gap: .48rem; padding: .35rem .68rem; border: 1px solid rgb(73 78 65 / 13%); border-radius: 999px; color: #75796f; background: rgb(255 254 250 / 76%); font-size: .67rem; line-height: 1; white-space: nowrap; }
.template-status i { width: .37rem; height: .37rem; background: #a6a99b; box-shadow: none; }
.template-status--available { border-color: rgb(65 105 77 / 22%); color: #3d654b; background: rgb(231 239 229 / 70%); }
.template-status--available i { background: #4e7c5d; box-shadow: 0 0 0 3px rgb(78 124 93 / 12%); }
.template-description { max-width: 38rem; min-height: 3.1em; margin: .85rem 0 0; color: #73766e; font-size: .9rem; line-height: 1.65; }
.template-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.25rem; }
.template-card .button { min-height: 2.65rem; padding: .68rem 1.05rem; border-radius: 999px; font-size: .78rem; }
.template-preview-button { text-decoration: none; }
.template-future-action[disabled] { opacity: .48; cursor: not-allowed; }
.template-card--available .template-future-action { opacity: 0; transform: translateY(4px); transition: opacity 180ms ease, transform 180ms ease; }
.template-card--available:hover .template-future-action,
.template-card--available:focus-within .template-future-action { opacity: .48; transform: none; }
.template-card--soon { background: rgb(255 254 250 / 68%); }
.template-card--soon .template-preview { filter: saturate(.86); }
.template-card--soon .template-description { min-height: 3.1em; }

/* These are mood-board compositions, not simulated/fake websites. */
.teaser { isolation: isolate; }
.teaser::before { position: absolute; inset: 0; z-index: -1; content: ""; }
.teaser--harbor { color: #f9f7ef; background: #b9d1d0; }
.teaser-sky { position: absolute; inset: 0 0 35%; background: linear-gradient(165deg, #d8e4dd 0%, #9fbfbe 100%); }
.teaser-sun { position: absolute; top: 14%; right: 14%; width: clamp(3rem, 7vw, 5.4rem); aspect-ratio: 1; border-radius: 50%; background: #e9dbc0; opacity: .9; }
.teaser-horizon { position: absolute; inset: 60% 0 0; background: linear-gradient(170deg, #729c9a, #416d70); }
.teaser-swell { position: absolute; right: -9%; bottom: 0; left: -8%; height: 37%; border-radius: 50% 50% 0 0 / 19% 19% 0 0; background: #8fb1ac; transform: rotate(-3deg); }
.teaser-swell--two { bottom: -13%; height: 30%; background: #537f80; transform: rotate(4deg); }
.teaser-harbor-copy { position: absolute; top: 20%; left: 8%; z-index: 1; }
.teaser-harbor-copy span, .beacon-kicker, .grove-kicker, .chapel-overline { display: block; margin-bottom: .85rem; font-size: .58rem; letter-spacing: .17em; text-transform: uppercase; }
.teaser-harbor-copy b { font-family: Georgia, serif; font-size: clamp(1.8rem, 3.9vw, 3.25rem); font-weight: 400; letter-spacing: -.05em; line-height: 1.02; }
.teaser-mark { position: absolute; right: 8%; bottom: 7%; z-index: 1; font-family: Georgia, serif; font-size: 2rem; opacity: .8; }
.teaser--haven { color: #37483e; background: #e7e5d9; }
.haven-panel { position: absolute; background: #f7f4ea; }
.haven-panel--large { inset: 12% 36% 11% 10%; border-radius: 48% 48% 2px 2px; background: linear-gradient(160deg, #d9ded1, #9eaa96); }
.haven-panel--small { top: 25%; right: 10%; width: 30%; height: 57%; border-radius: 48% 48% 2px 2px; background: #f4f0e5; }
.haven-rule { position: absolute; top: 23%; right: 9%; left: 9%; height: 1px; background: rgb(55 72 62 / 24%); }
.haven-caption { position: absolute; top: 13%; right: 10%; font-size: .57rem; letter-spacing: .13em; text-transform: uppercase; }
.haven-title { position: absolute; bottom: 16%; left: 10%; font-family: Georgia, serif; font-size: clamp(1.65rem, 3.5vw, 2.8rem); font-weight: 400; letter-spacing: -.055em; line-height: .99; }
.haven-orb { position: absolute; right: 21%; bottom: 16%; width: 4rem; aspect-ratio: 1; border-radius: 50%; background: #d5a991; opacity: .75; }
.teaser--beacon { color: #f6f1e5; background: #263b38; }
.beacon-stripe { position: absolute; inset: 0 auto 0 65%; width: 14%; background: #df7954; transform: skew(-13deg); }
.beacon-kicker { position: absolute; top: 17%; left: 9%; }
.beacon-title { position: absolute; top: 34%; left: 9%; font-family: Georgia, serif; font-size: clamp(2rem, 4.5vw, 3.7rem); font-weight: 400; letter-spacing: -.06em; line-height: .93; }
.beacon-sun { position: absolute; right: 11%; bottom: 14%; width: clamp(3.7rem, 9vw, 7rem); aspect-ratio: 1; border: 1px solid rgb(246 241 229 / 60%); border-radius: 50%; box-shadow: 0 0 0 12px rgb(246 241 229 / 8%), 0 0 0 24px rgb(246 241 229 / 7%); }
.beacon-index { position: absolute; right: 9%; top: 15%; font-size: .6rem; letter-spacing: .18em; }
.teaser--grove { color: #37493a; background: #e9e8dc; }
.grove-window { position: absolute; top: 10%; right: 9%; bottom: 9%; width: 36%; overflow: hidden; border-radius: 48% 48% 2px 2px; background: #d2d9c7; }
.grove-stem { position: absolute; top: 29%; left: 51%; width: 2px; height: 75%; background: #647b5c; transform: rotate(10deg); }
.grove-leaf { position: absolute; z-index: 1; width: 44%; height: 26%; border-radius: 100% 0 100% 0; background: #758d6c; transform: rotate(-24deg); }
.grove-leaf--one { top: 24%; left: 19%; }
.grove-leaf--two { top: 43%; right: 9%; background: #9eae8a; transform: rotate(68deg); }
.grove-leaf--three { top: 59%; left: 12%; background: #536f57; transform: rotate(-34deg); }
.grove-kicker { position: absolute; top: 22%; left: 9%; }
.grove-title { position: absolute; top: 38%; left: 9%; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 400; letter-spacing: -.055em; line-height: .97; }
.grove-foot { position: absolute; bottom: 12%; left: 9%; font-size: .54rem; letter-spacing: .12em; }
.teaser--chapel { color: #4e4138; background: #e8ded0; }
.chapel-overline { position: absolute; top: 12%; left: 9%; }
.chapel-arch { position: absolute; top: 13%; right: 9%; width: 34%; height: 82%; border: 1px solid #ac8c69; border-bottom: 0; border-radius: 49% 49% 0 0; background: linear-gradient(180deg, #f5eee1 0%, #cfb89e 100%); }
.chapel-arch__inner { position: absolute; inset: 13% 13% 0; border: 1px solid rgb(95 74 55 / 46%); border-bottom: 0; border-radius: 49% 49% 0 0; }
.chapel-cross { position: absolute; top: 34%; left: 50%; color: #947252; font-size: 2rem; transform: translateX(-50%); }
.chapel-title { position: absolute; top: 39%; left: 9%; font-family: Georgia, serif; font-size: clamp(1.8rem, 3.8vw, 3rem); font-weight: 400; letter-spacing: -.055em; line-height: .98; }
.chapel-small { position: absolute; bottom: 16%; left: 9%; font-size: .53rem; letter-spacing: .13em; }
.templates-note { display: flex; align-items: center; justify-content: center; gap: 1rem; max-width: 58rem; margin-bottom: clamp(3rem, 7vw, 6rem); padding: 1.25rem 1.5rem; border-top: 1px solid rgb(74 79 68 / 16%); border-bottom: 1px solid rgb(74 79 68 / 16%); color: #70756b; text-align: center; }
.templates-note p { margin: 0; font-family: Georgia, serif; font-size: clamp(1rem, 1.8vw, 1.22rem); line-height: 1.5; }
.templates-note__ornament { color: #9a805b; font-size: 1.15rem; }
.templates-footer .footer-inner { padding-top: 2rem; }

@media (max-width: 720px) {
  .templates-intro { padding-top: 3.35rem; }
  .templates-count { flex-wrap: wrap; gap: .55rem; font-size: .7rem; }
  .template-grid { grid-template-columns: minmax(0, 1fr); max-width: 38rem; }
  .template-preview { height: clamp(245px, 67vw, 360px); }
  .template-description { min-height: 0; }
  .template-card__actions { gap: .55rem; }
  .template-card .button { padding-inline: .9rem; }
  .template-card--available .template-future-action { opacity: .48; transform: none; }
}
@media (max-width: 390px) {
  .templates-intro h1 { font-size: 2.65rem; }
  .template-title-row { gap: .45rem; }
  .template-status { padding-inline: .52rem; font-size: .61rem; }
  .template-card__body { padding-inline: 1rem; }
  .template-card__actions { align-items: stretch; flex-direction: column; }
  .template-card__actions .button { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .template-card { transition: none; }
  .template-card--available:hover { transform: none; }
  .template-card--available .template-future-action { transition: none; }
}
