@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --clay: #caa27a;
  --moss: #4f7a52;
  --leaf: #90b66d;
  --sun: #f6c95d;
  --sky: #9fd0d7;
  --berry: #e47a6a;
  --ink: #2f2a26;
  --paper: #f6f1e5;
  --cream: #fff7ea;
  --shadow: rgba(47, 42, 38, 0.14);
  --radius: 24px;
  --title-font: "Playfair Display", "Times New Roman", serif;
  --body-font: "Source Sans 3", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--body-font);
  color: var(--ink);
  background: linear-gradient(135deg, var(--paper), var(--cream));
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.bg-texture {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(144, 182, 109, 0.2), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(246, 201, 93, 0.25), transparent 40%),
    radial-gradient(circle at 40% 90%, rgba(159, 208, 215, 0.2), transparent 45%);
  z-index: -2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 6vw 1rem;
  gap: 2rem;
  position: sticky;
  top: 0;
  background: rgba(246, 241, 229, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10;
  border-bottom: 1px solid rgba(79, 122, 82, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand__badge {
  background: var(--moss);
  color: white;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.brand__title {
  font-family: var(--title-font);
  font-size: 1.6rem;
  line-height: 1.2;
}

.brand__subtitle {
  font-size: 0.9rem;
  color: rgba(47, 42, 38, 0.7);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--sun);
  border: none;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 16px var(--shadow);
}

.nav-toggle__line {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}

.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  border: none;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--leaf);
  color: #1f2a1f;
}


.main {
  padding: 2rem 6vw 4rem;
  flex: 1;
}

.home {
  max-width: 1100px;
  margin: 0 auto;
}

.home-section {
  padding: 3.8rem 0;
  border-top: 1px solid rgba(79, 122, 82, 0.12);
}

.home-section:first-child {
  border-top: none;
  padding-top: 0;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.home-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(47, 42, 38, 0.6);
  margin-bottom: 0.8rem;
}

.home-title {
  font-family: var(--title-font);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 1.2rem;
}

.home-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(47, 42, 38, 0.8);
}

.home-hero__media {
  display: grid;
  gap: 1rem;
}

.home-hero__image {
  width: 100%;
  height: min(70vh, 620px);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 18px 36px rgba(47, 42, 38, 0.18);
}

.scroll-hint {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(47, 42, 38, 0.55);
}

.home-invite {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.home-quote {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(47, 42, 38, 0.85);
}

.home-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 122, 82, 0.5);
  padding-bottom: 0.1rem;
}

.home-link:hover {
  color: var(--ink);
  border-bottom-color: rgba(47, 42, 38, 0.6);
}

.home-section-title {
  font-family: var(--title-font);
  font-size: 1.4rem;
  margin-bottom: 1.6rem;
}

.home-section-subtitle {
  margin-top: -1rem;
  margin-bottom: 2.2rem;
  color: rgba(47, 42, 38, 0.65);
  font-size: 1rem;
}

.trace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
}

.trace-card {
  color: var(--ink);
  display: grid;
  gap: 0.7rem;
  font-weight: 600;
}

.trace-card img {
  width: 100%;
  height: 240px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 14px 26px rgba(47, 42, 38, 0.14);
  transition: none;
}

.home-traces {
  position: relative;
}

.home-traces::before,
.home-traces::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(79, 122, 82, 0.16);
}

.home-traces::before {
  top: 0;
}

.home-traces::after {
  bottom: 0;
}

.home-traces__cta {
  margin-top: 2.4rem;
  display: grid;
  gap: 0.6rem;
}

.home-traces__subtext {
  color: rgba(47, 42, 38, 0.6);
  font-size: 0.95rem;
}

.home-about {
  max-width: 640px;
}

.about-text {
  max-width: 68ch;
  line-height: 1.7;
}

.about-lead {
  font-family: var(--title-font);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-paragraph {
  margin-bottom: 1rem;
  color: rgba(47, 42, 38, 0.85);
}

.about-paragraph em {
  font-style: italic;
}

.about-closing {
  margin-top: 0.6rem;
  font-weight: 600;
  color: rgba(47, 42, 38, 0.85);
}

.home-divider {
  width: 32px;
  height: 32px;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.home-voice {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(47, 42, 38, 0.85);
}

.home-puppy {
  max-width: 920px;
}

.home-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: rgba(47, 42, 38, 0.6);
  margin-bottom: 1rem;
}

.home-puppy__image {
  width: 100%;
  height: 360px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 16px 30px rgba(47, 42, 38, 0.16);
}

.home-puppy__text {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: rgba(47, 42, 38, 0.8);
}

.home-outlook {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.home-outlook__text {
  font-size: 1.05rem;
  color: rgba(47, 42, 38, 0.7);
  line-height: 1.7;
}

.puppies {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.4rem;
}

.puppies-header {
  max-width: 720px;
}

.puppy-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 1.6rem;
}

.puppy-card {
  display: grid;
  gap: 0.6rem;
}

.puppy-card__button {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(47, 42, 38, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.puppy-card__button:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 36px rgba(47, 42, 38, 0.18);
}

.puppy-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.puppy-card figcaption {
  font-size: 0.9rem;
  color: rgba(79, 122, 82, 0.7);
}

.puppy-card--key {
  grid-column: span 2;
  grid-row: span 2;
}

.puppy-empty {
  color: rgba(47, 42, 38, 0.6);
}

.puppy-back {
  color: var(--moss);
  text-decoration: none;
  font-size: 0.95rem;
}

.puppy-back:hover {
  color: var(--ink);
}

.puppy-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 70;
}

.puppy-modal.is-open {
  display: flex;
}

.puppy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 24, 21, 0.72);
  backdrop-filter: blur(4px);
}

.puppy-modal__content {
  position: relative;
  z-index: 1;
  margin: 0 6vw;
  max-width: min(1100px, 92vw);
  max-height: 90vh;
  display: grid;
  gap: 0.8rem;
}

.puppy-modal__image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 24px;
  background: #1b1815;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.puppy-modal__caption {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 0.95rem;
}

.puppy-modal__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: white;
}

.puppy-modal__nav-button {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #1b1815;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
}

.puppy-modal__counter {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.puppy-modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #1b1815;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.diary {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 2.4rem;
}

.diary-header {
  max-width: 720px;
}

.diary-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.diary-section-title {
  font-family: var(--title-font);
  font-size: 1.4rem;
}

.diary-controls__right {
  display: grid;
  gap: 0.8rem;
  min-width: min(320px, 100%);
}

.diary-search input {
  width: 100%;
  border: 1px solid rgba(47, 42, 38, 0.2);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.8);
}

.diary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.diary-tag {
  border: 1px solid rgba(79, 122, 82, 0.25);
  background: rgba(255, 255, 255, 0.7);
  color: var(--moss);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

.diary-tag.is-active {
  background: var(--leaf);
  color: #1f2a1f;
  border-color: transparent;
}

.diary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.diary-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  box-shadow: 0 16px 30px rgba(47, 42, 38, 0.12);
  overflow: hidden;
}

.diary-card__button {
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 1.2rem;
}

.diary-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.diary-card__body {
  padding: 0 1.4rem 1.6rem;
}

.diary-card__body h4 {
  font-family: var(--title-font);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.diary-card__body p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(47, 42, 38, 0.8);
}

.diary-card__date {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: rgba(47, 42, 38, 0.6);
  letter-spacing: 0.08em;
}

.diary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(47, 42, 38, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diary-empty {
  color: rgba(47, 42, 38, 0.6);
}

.diary-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.diary-modal.is-open {
  display: flex;
}

.diary-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 24, 21, 0.72);
  backdrop-filter: blur(4px);
}

.diary-modal__content {
  position: relative;
  z-index: 1;
  margin: 0 6vw;
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  height: min(86vh, 860px);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 26px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "media body"
    "nav nav";
}

.diary-modal__media {
  grid-area: media;
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: linear-gradient(135deg, #f2ede2, #e7ddcf);
  overflow: hidden;
  border-right: 1px solid rgba(79, 122, 82, 0.12);
}

.diary-modal__media::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: var(--stage-image);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.1);
  opacity: 0.45;
  transform: scale(1.05);
}

.diary-modal__image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(27, 24, 21, 0.2);
  display: block;
  position: relative;
  z-index: 1;
}

.diary-modal__body {
  grid-area: body;
  padding: 2rem 2.2rem;
  display: grid;
  gap: 0.6rem;
  overflow: auto;
}

.diary-modal__date {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(47, 42, 38, 0.6);
}

.diary-modal__title {
  font-family: var(--title-font);
  font-size: 1.8rem;
}

.diary-modal__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(47, 42, 38, 0.85);
  white-space: pre-line;
}

.diary-modal__nav {
  grid-area: nav;
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem 1.6rem;
  gap: 1rem;
  border-top: 1px solid rgba(79, 122, 82, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.diary-modal__nav-button {
  border: 1px solid rgba(79, 122, 82, 0.3);
  background: white;
  color: var(--moss);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.diary-modal__nav-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.diary-modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #1b1815;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px var(--shadow);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease;
}

.loading-card {
  display: grid;
  gap: 0.9rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: 0 16px 30px var(--shadow);
}

.loading-bar {
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 122, 82, 0.15), rgba(246, 201, 93, 0.3), rgba(79, 122, 82, 0.15));
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.loading-bar--wide {
  height: 22px;
}

.panel--home {
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.3fr);
  align-items: stretch;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 234, 0.85));
  border: 1px solid rgba(202, 162, 122, 0.35);
}

.panel--home::before,
.panel--home::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 208, 215, 0.35), transparent 70%);
  z-index: 0;
}

.panel--home::before {
  top: -80px;
  right: -60px;
}

.panel--home::after {
  bottom: -90px;
  left: -40px;
  background: radial-gradient(circle, rgba(246, 201, 93, 0.35), transparent 70%);
}

.panel__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--moss);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.panel__title {
  font-family: var(--title-font);
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.panel__text {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.panel__divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.panel__divider img {
  width: 36px;
  height: 36px;
}

.panel__media {
  display: grid;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero {
  width: 100%;
  min-height: 360px;
  max-height: 520px;
  border-radius: 20px;
  box-shadow: 0 18px 36px var(--shadow);
  object-fit: cover;
}

.hero-card {
  position: relative;
  padding: 1.1rem;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(246, 201, 93, 0.15));
  box-shadow: 0 24px 44px rgba(47, 42, 38, 0.2);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border-radius: 22px;
  border: 2px dashed rgba(79, 122, 82, 0.35);
  pointer-events: none;
}

.hero-card__caption {
  position: absolute;
  left: 1.8rem;
  bottom: 1.6rem;
  background: rgba(47, 42, 38, 0.72);
  color: white;
  padding: 0.8rem 1.1rem;
  border-radius: 16px;
  max-width: 70%;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 12px 24px rgba(47, 42, 38, 0.3);
}

.hero-card__badge {
  background: var(--berry);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  width: fit-content;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 0.5rem;
}

.media-grid img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  height: 260px;
  box-shadow: 0 16px 30px rgba(47, 42, 38, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lightbox-trigger {
  cursor: zoom-in;
}

.media-grid img:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 20px 36px rgba(47, 42, 38, 0.28);
}

.panel--home .panel__media {
  gap: 2.4rem;
}

.panel--home .panel__content {
  position: relative;
  z-index: 1;
}

.panel--home .hero {
  height: 66vh;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lightbox.is-open {
  display: flex;
}

.lightbox.is-wide {
  align-items: stretch;
  justify-content: stretch;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 24, 21, 0.72);
  backdrop-filter: blur(4px);
}

.lightbox__content {
  position: relative;
  z-index: 1;
  margin: 0 6vw;
  max-width: min(1000px, 92vw);
  max-height: 88vh;
  display: grid;
  gap: 0.6rem;
}

.lightbox.is-wide .lightbox__content {
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  padding: 3vh 5vw 5vh;
}

.lightbox__image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  background: #1b1815;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox.is-wide .lightbox__image {
  max-height: 86vh;
  border-radius: 22px;
  background: #14110f;
}

.lightbox__caption {
  color: white;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox.is-wide .lightbox__caption {
  font-size: 1rem;
  opacity: 0.85;
}

.lightbox__close {
  position: absolute;
  right: -12px;
  top: -12px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #1b1815;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.lightbox.is-wide .lightbox__close {
  position: fixed;
  right: 24px;
  top: 24px;
}

.legal-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.legal-modal.is-open {
  display: flex;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 24, 21, 0.72);
  backdrop-filter: blur(4px);
}

.legal-modal__content {
  position: relative;
  z-index: 1;
  margin: 0 6vw;
  max-width: min(820px, 92vw);
  max-height: 88vh;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 2rem 2.2rem;
  box-shadow: 0 24px 50px rgba(47, 42, 38, 0.2);
  overflow: hidden;
  display: grid;
  gap: 1rem;
}

.legal-modal__title {
  font-family: var(--title-font);
  font-size: 1.6rem;
}

.legal-modal__body {
  overflow: auto;
  max-height: 68vh;
  display: grid;
  gap: 0.9rem;
  color: rgba(47, 42, 38, 0.85);
  line-height: 1.7;
}

.legal-modal__body h4 {
  font-size: 1rem;
  color: rgba(47, 42, 38, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #1b1815;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.panel--home .panel__title {
  position: relative;
  z-index: 1;
}

.panel--home .panel__title::after {
  content: "";
  display: block;
  width: 110px;
  height: 6px;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--berry), var(--sun));
}

.diary-cards {
  display: grid;
  gap: 1.2rem;
}

.diary-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 12px 24px var(--shadow);
  border-left: 5px solid var(--berry);
}

.diary-card h3 {
  font-family: var(--title-font);
  margin-bottom: 0.6rem;
}

.diary-card p {
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--moss);
}

.note-stack {
  display: grid;
  gap: 1.2rem;
}

.note {
  background: var(--cream);
  padding: 1.4rem;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(79, 122, 82, 0.12), 0 12px 22px var(--shadow);
}

.note--accent {
  background: var(--sun);
}

.note ul {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.photo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.photo-wall img {
  width: 100%;
  height: 150px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 26px var(--shadow);
  transition: transform 0.2s ease;
}

.photo-wall img:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(47, 42, 38, 0.2);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
}

.contact-form select {
  border: 1px solid rgba(47, 42, 38, 0.2);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  background: white;
}

.contact-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  color: rgba(47, 42, 38, 0.8);
}

.form-success {
  min-height: 1.2rem;
  color: var(--moss);
  font-size: 0.9rem;
}

.contact-form button {
  border: none;
  background: var(--moss);
  color: white;
  font-weight: 700;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 20px var(--shadow);
}

.contact-card {
  background: rgba(255, 255, 255, 0.9);
  color: #1f2a1f;
  padding: 2.4rem;
  border-radius: 26px;
  box-shadow: 0 22px 40px rgba(47, 42, 38, 0.16);
  display: grid;
  gap: 1.6rem;
  border: 1px solid rgba(79, 122, 82, 0.18);
}

.contact-block h3 {
  font-family: var(--title-font);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.contact-block p {
  line-height: 1.6;
  color: rgba(47, 42, 38, 0.75);
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: rgba(47, 42, 38, 0.75);
}

.contact-list li::before {
  content: '• ';
  color: var(--moss);
}

.contact-card__footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-weight: 600;
  color: rgba(47, 42, 38, 0.8);
}

.contact-card__footer img {
  width: 32px;
  height: 32px;
}

.site-footer {
  position: static;
  width: 100%;
  padding: 0.8rem 6vw;
  background: rgba(47, 42, 38, 0.92);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-top: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
