@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");
:root {
  color-scheme: dark;
  --ink: #f4f1e9;
  --muted: rgba(239, 248, 242, 0.7);
  --paper: rgba(3, 17, 10, 0.42);
  --line: rgba(255, 255, 255, 0.13);
  --rose: #eccd8b;
  --rose-soft: rgba(216, 176, 106, 0.13);
  --lavender: #34d399;
  --lavender-soft: rgba(52, 211, 153, 0.13);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --amber: #f5d8a5;
  --amber-soft: rgba(216, 176, 106, 0.13);
  --gold: #d8b06a;
  --gold-bright: #eccd8b;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 6%, rgba(16, 185, 129, 0.25), transparent 32rem),
    radial-gradient(circle at 88% 78%, rgba(52, 211, 153, 0.15), transparent 34rem),
    radial-gradient(circle at 50% 42%, #092b1b 0%, #061a10 52%, #03110a 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.58;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: image-set(
    url("cards-photos/rose-garden-pink.webp") type("image/webp"),
    url("cards-photos/rose-garden-pink.jpg") type("image/jpeg")
  ) right center / cover no-repeat;
  content: "";
  filter: saturate(1.05);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.72), transparent 74%);
  opacity: 0.18;
}
a { color: inherit; }
.skip-link {
  position: absolute;
  top: -70px;
  left: 12px;
  z-index: 20;
  border-radius: 12px;
  background: var(--green);
  color: #04140d;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(52, 211, 153, 0.18);
  background: rgba(3, 17, 10, 0.84);
  backdrop-filter: blur(20px);
}
.site-header-inner {
  display: flex;
  width: min(1180px, calc(100% - 28px));
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.site-brand-mark {
  display: none;
}
.site-nav {
  display: flex;
  max-width: 100%;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: 0 0 auto;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 10px;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a.is-current { background: rgba(52, 211, 153, 0.16); color: white; }
.site-nav a:focus-visible, .site-brand:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
main { width: min(1120px, calc(100% - 28px)); margin: 0 auto; padding: 20px 0 72px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}
.breadcrumbs a { color: var(--green); font-weight: 700; }
.context-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-left: 5px solid var(--green);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  padding: 14px 16px;
}
.context-strip div { min-width: 0; }
.context-strip strong, .context-strip span { display: block; }
.context-strip strong { color: var(--gold-bright); font-family: var(--font-display); font-size: 1.2rem; }
.context-strip span { margin-top: 3px; color: var(--muted); font-size: 0.9rem; }
.context-action {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--green);
  color: #04140d;
  padding: 9px 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.context-action:hover { background: #10b981; box-shadow: 0 0 24px rgba(52, 211, 153, 0.24); }
.context-action:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.hero, .panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}
.hero { padding: clamp(24px, 5vw, 52px); }
.eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2 { font-family: var(--font-display); font-weight: 600; }
h1 { max-width: 850px; margin: 0; background: linear-gradient(120deg, var(--gold-bright), var(--gold)); background-clip: text; color: transparent; font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-style: italic; line-height: 1.02; }
h2 { margin: 0 0 12px; color: var(--gold-bright); font-size: clamp(1.8rem, 3.8vw, 2.7rem); line-height: 1.1; }
h3 { margin: 0; font-size: 1.06rem; line-height: 1.25; }
p { margin: 0; }
.lead { max-width: 780px; margin-top: 18px; color: var(--muted); font-size: 1.07rem; }
.status, .notice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 13px 15px;
  border-radius: 15px;
  background: var(--green-soft);
  color: #dffcf0;
  font-weight: 700;
}
.panel { margin-top: 24px; padding: clamp(22px, 4vw, 38px); }
.toolbar { display: flex; gap: 14px; align-items: end; justify-content: space-between; }
.summary { color: var(--muted); }
.summary strong { color: var(--ink); }
.search-wrap { width: min(360px, 100%); }
.search-wrap label { display: block; margin-bottom: 6px; font-size: 0.82rem; font-weight: 800; }
input[type="search"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(52, 211, 153, 0.38);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  padding: 10px 14px;
  font: inherit;
}
input[type="search"]::placeholder { color: rgba(255, 255, 255, 0.5); }
input[type="search"]:focus { outline: 3px solid rgba(52, 211, 153, 0.22); border-color: var(--green); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.plant-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(3, 17, 10, 0.52); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.plant-card:hover { border-color: rgba(52, 211, 153, 0.58); box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28); transform: translateY(-2px); }
.plant-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plant-body { padding: 17px; }
.botanical { margin-top: 4px; color: var(--muted); font-size: 0.84rem; font-style: italic; }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.badge { padding: 4px 9px; border-radius: 999px; background: var(--lavender-soft); color: #c9f9e4; font-size: 0.74rem; font-weight: 800; }
.badge.ready { background: var(--green-soft); color: var(--green); }
.badge.caution { background: var(--amber-soft); color: var(--amber); }
.card-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  border-radius: 12px;
  background: var(--lavender);
  color: #04140d;
  padding: 9px 13px;
  font-weight: 800;
  text-decoration: none;
}
.card-link:hover { background: #10b981; box-shadow: 0 0 20px rgba(52, 211, 153, 0.22); }
.waiting { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }
.empty { display: none; margin-top: 22px; padding: 18px; border-radius: 16px; background: var(--amber-soft); color: var(--amber); }
.back { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; margin-bottom: 16px; color: var(--lavender); font-weight: 800; text-decoration: none; }
.back:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.profile-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(24px, 5vw, 54px); align-items: center; }
.profile-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); }
.profile-hero figure { margin: 0; }
.profile-image { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42); }
.caption { margin-top: 10px; color: var(--muted); font-size: 0.85rem; text-align: center; }
.caption a { color: var(--gold-bright); font-weight: 700; text-underline-offset: 3px; }
.intro-grid, .facts, .calendar { display: grid; gap: 16px; }
.intro-grid { grid-template-columns: 1.1fr 0.9fr; }
.facts { grid-template-columns: repeat(4, 1fr); margin-top: 20px; }
.fact, .step, .season { border: 1px solid var(--line); border-radius: 18px; background: rgba(3, 17, 10, 0.38); padding: 18px; }
.fact strong { display: block; color: var(--lavender); font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; }
.fact span { display: block; margin-top: 6px; font-weight: 720; }
.callout { border: 1px solid rgba(52, 211, 153, 0.25); border-radius: 18px; padding: 20px; background: var(--lavender-soft); color: #ddfaed; }
.callout.warning { border-color: rgba(216, 176, 106, 0.35); background: var(--amber-soft); color: #f7e4bd; }
.callout strong { display: block; margin-bottom: 6px; }
.steps { display: grid; gap: 14px; margin-top: 20px; }
.step { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; align-items: start; }
.number { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--rose-soft); color: var(--rose); font-weight: 850; }
.step h3, .season h3 { margin-bottom: 8px; }
.calendar { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.season p { color: var(--muted); }
.sources { color: var(--muted); font-size: 0.9rem; }
.sources a { color: var(--lavender); font-weight: 700; }
.footer-note { margin-top: 24px; color: var(--muted); text-align: center; }
.link-preview-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: clamp(24px, 5vw, 54px); align-items: center; }
.rose-subtitle { margin-top: 8px; color: var(--rose); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.rose-preview-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: 0 15px 30px rgba(65, 50, 82, 0.2); }
.rose-pairing-guidance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.rose-pairing-guidance p { margin: 0; border: 1px solid rgba(52, 211, 153, 0.22); border-radius: 16px; background: var(--lavender-soft); padding: 15px; color: #ddfaed; }
.rose-pairing-guidance strong { display: block; margin-bottom: 6px; color: var(--lavender); font-size: 0.78rem; letter-spacing: 0.035em; text-transform: uppercase; }
.rose-companion-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.rose-companion-card { display: flex; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: rgba(3, 17, 10, 0.48); flex-direction: column; text-decoration: none; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.rose-companion-card:hover { border-color: rgba(52, 211, 153, 0.55); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3); transform: translateY(-2px); }
.rose-companion-card:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.rose-companion-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rose-companion-body { display: flex; min-height: 154px; padding: 17px; flex: 1; flex-direction: column; }
.rose-companion-body strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; line-height: 1.25; }
.rose-companion-body small { margin-top: 5px; color: var(--muted); font-size: 0.84rem; }
.rose-companion-body b { margin-top: auto; padding-top: 18px; color: var(--lavender); font-size: 0.86rem; }
.preview-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.preview-actions a { display: flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid rgba(52, 211, 153, 0.36); border-radius: 14px; background: rgba(3, 17, 10, 0.42); color: var(--green); padding: 10px 14px; font-weight: 800; text-align: center; text-decoration: none; }
.preview-actions a:hover { background: var(--lavender-soft); }
.preview-actions a:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (max-width: 820px) {
  .site-header-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding: 10px 0; }
  .site-nav { width: 100%; }
  .cards { grid-template-columns: 1fr 1fr; }
  .profile-hero, .link-preview-hero { grid-template-columns: 1fr; }
  .profile-hero figure { width: min(280px, 100%); margin: 0 auto; }
  .link-preview-hero figure { width: min(520px, 100%); margin: 0 auto; }
  .rose-pairing-guidance { grid-template-columns: 1fr; }
  .rose-companion-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid, .calendar { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 590px) {
  main { padding-top: 14px; }
  .hero, .panel { border-radius: 15px; }
  .context-strip { align-items: stretch; flex-direction: column; gap: 12px; }
  .context-action { width: 100%; }
  .toolbar { display: grid; align-items: stretch; }
  .cards, .facts, .rose-companion-grid, .preview-actions { grid-template-columns: 1fr; }
  .rose-companion-body { min-height: 138px; }
  .step { grid-template-columns: 36px minmax(0, 1fr); }
  .number { width: 36px; height: 36px; }
}
