/* Evde Pet Bakımı: home care routines laid out like a good recipe site. Denim blue and peach, Lora headings,
   Albert Sans text, a care card on every guide and big numbered steps. */

:root {
  --paper: #ffffff;
  --ink: #1d2a3a;
  --muted: #5a6575;
  --blue: #2a5a9b;
  --blue-deep: #183a68;
  --peach: #fde6d6;
  --apricot: #ef8e3c;
  --apricot-text: #a5521a;
  --mist: #edf3fa;
  --line: #e3e7ee;
  --radius: 14px;
  --serif: 'Lora Variable', Georgia, serif;
  --sans: 'Albert Sans Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
.icon { display: block; flex: none; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 16px; background: var(--paper); border-radius: 10px; font-weight: 700; }
.skip:focus { left: 16px; }
main { padding-bottom: 104px; }
main:has(> .promise:last-child) { padding-bottom: 0; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.mark { display: block; flex: none; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); font-size: 0.98rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--peach); color: var(--blue-deep); }

.button { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.button:hover { background: var(--blue-deep); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.text-link { font-weight: 700; }

/* Home */
.hero { background: var(--peach); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 64px 0; }
.hero h1 { margin: 0 0 20px; color: var(--blue-deep); font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.08; }
.lead { max-width: 32em; margin: 0 0 32px; font-size: 1.18rem; line-height: 1.6; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.hero-photo figcaption, .article-photo figcaption, .about-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 0.8rem; }
figcaption a { color: inherit; }

.section { margin-top: 88px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 40px; margin-bottom: 32px; }
.section-head h2 { margin: 0; color: var(--blue-deep); font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; }
.section-head p { max-width: 30em; margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.card-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.card-topic { color: var(--apricot-text); font-size: 0.92rem; font-weight: 700; }
.card-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 650; line-height: 1.2; }
.card:hover .card-title { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--mist); color: var(--blue-deep); font-size: 0.88rem; font-weight: 600; }
.chip .icon { width: 16px; height: 16px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.table-wrap thead th { padding: 14px 18px; background: var(--blue-deep); color: #fff; font-weight: 700; text-align: left; vertical-align: bottom; }
.table-wrap td, .table-wrap tbody th { padding: 14px 18px; border-top: 1px solid var(--line); font-weight: 400; text-align: left; vertical-align: top; }
.table-wrap tbody tr:nth-child(even) > * { background: #f8fafd; }
.schedule tbody th a { color: var(--ink); font-family: var(--serif); font-size: 1.08rem; font-weight: 600; text-decoration: none; }
.schedule tbody th a:hover { color: var(--blue); text-decoration: underline; }

.promise { margin-top: 104px; padding: 80px 0; background: var(--mist); }
.promise h2 { margin: 0 0 14px; color: var(--blue-deep); font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; }
.promise-intro { max-width: 40em; margin: 0 0 36px; font-size: 1.1rem; }
.promise-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0 0 32px; padding: 0; list-style: none; }
.promise-list li { padding-top: 18px; border-top: 3px solid var(--apricot); }
.promise-list h3 { margin: 0 0 8px; color: var(--blue-deep); font-size: 1.3rem; }
.promise-list p { margin: 0; color: var(--muted); }

/* Footer */
.footer { padding: 64px 0 32px; background: var(--blue-deep); color: #dfe8f5; }
.footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-brand p { max-width: 32em; margin: 16px 0 0; color: #c3d2e6; }
.footer h2 { margin: 6px 0 12px; color: #fff; font-family: var(--sans); font-size: 1rem; font-weight: 700; }
.footer nav a { display: block; padding: 4px 0; color: #dfe8f5; text-decoration: none; }
.footer nav a:hover { color: #fff; text-decoration: underline; }
.footer-note { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.18); color: #c3d2e6; font-size: 0.92rem; }
.footer-note a { color: #fff; }

/* Article */
.article-head { max-width: 880px; padding-top: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: 0.95rem; }
.crumbs a { color: var(--muted); }
.article-head h1 { margin: 0 0 16px; color: var(--blue-deep); font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.1; }
.dek { max-width: 40em; margin: 0 0 22px; color: var(--muted); font-size: 1.2rem; line-height: 1.55; }
.byline { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 0.95rem; }
.article-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 32px; }
.article-top.no-photo, .article-top.no-care { grid-template-columns: minmax(0, 1fr); }
.article-photo { margin: 0; }
.article-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.care { padding: 26px 28px; background: var(--peach); border-radius: var(--radius); }
.care h2 { margin: 0 0 16px; color: var(--blue-deep); font-size: 1.5rem; }
.care dl { display: grid; gap: 18px; margin: 0; }
.care dt { display: flex; align-items: center; gap: 8px; color: var(--apricot-text); font-size: 0.92rem; font-weight: 700; }
.care dd { margin: 4px 0 0 28px; font-size: 1.08rem; font-weight: 600; }
.care ul { margin: 0; padding-left: 1.1em; }
.care li { margin: 0.2em 0; font-weight: 500; }
.article-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; margin-top: 56px; }
.article-main { min-width: 0; max-width: 720px; }

.answer { margin: 0 0 48px; padding: 22px 26px; background: var(--mist); border-left: 5px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.answer h2 { margin: 0 0 6px; color: var(--blue-deep); font-size: 1.2rem; }
.answer p { margin: 0; font-size: 1.12rem; line-height: 1.6; }

.prose { font-size: 1.12rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 1.9em 0 0.55em; color: var(--blue-deep); font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.15; }
.prose h3 { margin: 1.5em 0 0.4em; font-size: 1.3rem; line-height: 1.25; }
.prose p { margin: 0 0 1.1em; }
.prose ul { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose ul li::marker { color: var(--apricot); }
.prose li { margin: 0.45em 0; }
.prose strong { color: var(--blue-deep); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--peach); border-radius: var(--radius); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .table-wrap { margin: 1.8em 0; }
/* Ordered lists are the steps of a routine. */
.prose ol { margin: 1.2em 0 1.6em; padding: 0; list-style: none; counter-reset: step; }
.prose ol > li { position: relative; margin: 0 0 18px; padding: 0 0 18px 64px; border-bottom: 1px solid var(--line); counter-increment: step; }
.prose ol > li:last-child { margin-bottom: 0; border-bottom: 0; }
.prose ol > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
}

.products { margin-top: 64px; padding: 28px; background: var(--peach); border-radius: var(--radius); }
.products h2, .faq h2 { margin: 0 0 6px; color: var(--blue-deep); font-size: 1.9rem; line-height: 1.15; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.product { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--radius); }
/* Product shots are photographed on white, so their stage stays white. */
.product-media { display: grid; place-items: center; padding: 16px; background: #fff; border-bottom: 1px solid var(--line); }
.product-media img { width: 140px; height: 140px; object-fit: contain; }
.product-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 16px 18px 18px; }
.product h3 { margin: 0 0 8px; font-family: var(--sans); font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.product h3 a { color: var(--ink); text-decoration: none; }
.product p { flex: 1; margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

.faq { margin-top: 64px; }
.faq h2 { margin-bottom: 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--mist); color: var(--blue); font-family: var(--sans); font-size: 1.3rem; font-weight: 600; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 42em; margin: 0 0 20px; }

.sources { margin-top: 56px; }
.sources h2 { margin: 0 0 10px; font-size: 1.3rem; }
.sources ol { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 0.95rem; }
.sources li { margin: 0.4em 0; }
.sources a { color: var(--muted); }

.article-aside { position: sticky; top: 24px; align-self: start; display: grid; gap: 20px; }
.toc { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.toc h2 { margin: 0 0 10px; color: var(--blue-deep); font-size: 1.15rem; }
.toc ol { display: grid; gap: 8px; margin: 0; padding-left: 1.2em; font-size: 0.96rem; line-height: 1.35; }
.toc li::marker { color: var(--apricot-text); font-weight: 700; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.aside-product { padding: 22px; background: var(--peach); border-radius: var(--radius); text-align: center; }
.aside-label { margin: 0 0 12px; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.aside-product img { width: 140px; height: 140px; margin: 0 auto 14px; object-fit: contain; background: #fff; border-radius: 12px; }
.aside-name { margin: 0 0 14px; font-weight: 700; line-height: 1.3; }

/* Topic, about and not-found pages */
.page-head { padding: 56px 0; background: var(--peach); }
.page-head h1 { margin: 0 0 12px; color: var(--blue-deep); font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.08; }
.page-head .dek { margin: 0; }
.page-actions { margin: 24px 0 0; }
.about-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; margin-top: 56px; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-list { grid-template-columns: 1fr; }
  .article-top { grid-template-columns: 1fr; }
  .article-body { grid-template-columns: 1fr; gap: 0; }
  .article-aside { position: static; margin-top: 56px; }
  .toc { display: none; }
  .about-page { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-head-inner { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; padding: 14px 0 10px; }
  .nav { width: calc(100% + 32px); margin: 0 -16px; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .hero h1 { font-size: 2.3rem; }
  .lead { font-size: 1.06rem; }
  .cards { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 2.15rem; }
  .care { padding: 22px; }
  .prose { font-size: 1.05rem; }
  .prose ol > li { padding-left: 56px; }
  .prose ol > li::before { width: 38px; height: 38px; font-size: 1.05rem; }
  .products { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
