:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --surface: #fffcf5;
  --panel: #fffefa;
  --ink: #252a21;
  --muted: #565b4e;
  --line: #dfded2;
  --accent: #365642;
  --accent-dark: #264332;
  --accent-light: #deeadc;
  --clay: #8b4833;
  --clay-light: #f2e3d8;
  --max-width: 80rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, p, h1, h2, h3, figure, dl, dd { margin: 0; }
body { line-height: 1.55; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
abbr[title] { text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.wrap { width: min(var(--max-width), calc(100% - 5rem)); margin-inline: auto; }
.site-header { min-height: 6.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -.04em; }
.brand small { display: block; margin-top: -.18rem; color: var(--muted); font-size: .77rem; font-weight: 600; letter-spacing: 0; }
.brand-mark { position: relative; flex: none; width: 2.5rem; height: 2.5rem; background: var(--accent); border-radius: .8rem; transform: rotate(-8deg); }
.brand-mark i { position: absolute; width: 14%; height: 21%; border-radius: 50%; background: #f6faed; }
.brand-mark i:nth-child(1) { left: 19%; top: 37%; transform: rotate(-26deg); }
.brand-mark i:nth-child(2) { left: 35%; top: 23%; transform: rotate(-12deg); }
.brand-mark i:nth-child(3) { right: 35%; top: 23%; transform: rotate(12deg); }
.brand-mark i:nth-child(4) { right: 19%; top: 37%; transform: rotate(26deg); }
.brand-mark i:last-child { left: 29%; top: 51%; width: 42%; height: 29%; border-radius: 58% 58% 40% 40% / 76% 76% 42% 42%; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.12rem; padding: .72rem 1.22rem; border: 1px solid var(--accent); border-radius: .6rem; background: var(--accent); color: #fffefa; text-decoration: none; font-size: .94rem; font-weight: 680; cursor: pointer; }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-outline { color: var(--accent-dark); background: transparent; min-height: 2.7rem; }
.button-outline:hover { background: var(--accent-light); }
.button:disabled { opacity: .72; cursor: wait; }

.hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(2rem, 5.2vw, 6rem); padding-block: clamp(4rem, 7vw, 7.25rem); }
.eyebrow { display: flex; align-items: baseline; gap: .52rem; color: var(--accent-dark); font-size: .83rem; font-weight: 690; line-height: 1.5; }
.eyebrow span { flex: 0 0 .45rem; width: .45rem; height: .45rem; background: var(--accent); border-radius: 50%; }
h1, .features h2, .register h2 { font: 500 clamp(3rem, 5.1vw, 5rem)/1.02 Georgia, serif; letter-spacing: -.068em; }
.hero h1 { margin-top: 1.26rem; max-width: 11.4ch; }
.hero-description { max-width: 33rem; margin: 1.35rem 0 1.62rem; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.17rem); line-height: 1.65; }
.development { margin-top: .85rem; color: var(--muted); font-size: .86rem; }

.preview { min-width: 0; padding: clamp(.75rem, 1.65vw, 1.5rem); border: 1px solid #dce1d3; border-radius: 1.35rem; background: #e9eee2; box-shadow: 0 18px 50px #303f2912; }
.preview figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .45rem .8rem; margin: 0 .2rem .85rem; color: var(--muted); font-size: .76rem; }
.preview figcaption strong { color: var(--accent-dark); font-size: .86rem; }
.diary { container-type: inline-size; overflow: hidden; border-radius: .86rem; background: var(--panel); border: 1px solid #dfe2d7; }
.preview-tabs:not([hidden]) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; padding: .38rem; border-bottom: 1px solid var(--line); background: #f6f5ed; }
.preview-tabs button { min-width: 0; min-height: 2.55rem; padding: .25rem .1rem; background: transparent; border: 1px solid transparent; border-radius: .42rem; color: var(--muted); font-weight: 650; font-size: clamp(.71rem, 2.45cqi, .87rem); cursor: pointer; }
.preview-tabs button:hover { background: #eeefe4; }
.preview-tabs button[aria-selected="true"] { background: var(--panel); border-color: #d6ddce; color: var(--accent-dark); }
.preview-tabs button:focus-visible, .preview-panel:focus-visible { outline-offset: -3px; }
.preview-panel { min-height: 25.3rem; }
.diary-heading { display: flex; justify-content: space-between; align-items: end; gap: .5rem; padding: 1.05rem 1.1rem .86rem; }
.diary-venue { color: var(--muted); font-size: .74rem; }
.diary h2 { line-height: 1.2; font-size: clamp(1.05rem, 1.75vw, 1.45rem); letter-spacing: -.043em; }
.week { color: var(--accent-dark); background: var(--accent-light); padding: .3rem .55rem; border-radius: .33rem; white-space: nowrap; font-size: .72rem; font-weight: 650; }
.diary-scroll-hint { display: none; margin: 0 .8rem .55rem; color: var(--muted); font-size: .74rem; }
.table-scroll { position: relative; overflow-x: auto; overscroll-behavior-inline: contain; }
.table-scroll:focus-visible { outline-offset: -3px; }
table { width: 100%; min-width: 26rem; table-layout: fixed; border-collapse: collapse; font-size: .73rem; }
thead th { color: var(--muted); padding: .42rem .2rem; border-block: 1px solid var(--line); font-weight: 600; }
thead th:first-child { width: 6.25rem; text-align: left; padding-left: .8rem; }
thead span { display: block; font-size: .78rem; }
thead .today { background: var(--accent-light); color: var(--accent-dark); }
tbody th { text-align: left; padding: .46rem .4rem .46rem .8rem; white-space: nowrap; font-weight: 600; }
tbody td, tbody th { height: 2.5rem; border-bottom: 1px solid #e9e8df; }
tbody td { border-left: 1px solid #eeeae0; padding: .24rem; }
.booking { display: block; padding: .30rem .38rem; border-radius: .32rem; background: var(--accent-light); border-left: 3px solid #698873; color: var(--accent-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.booking.cat { background: #e1e9ed; border-color: #718e9c; color: #294750; }
.booking.blocked { background: repeating-linear-gradient(-45deg, #edeae1 0 5px, #e6e3da 5px 7px); border-color: #868679; color: #3f4239; }
.diary-details { display: grid; grid-template-columns: 1fr 1fr; gap: .62rem; padding: .8rem; }
.diary-card { padding: .65rem .72rem; border: 1px solid #e8e7de; border-radius: .52rem; background: #f8f7f1; font-size: .79rem; }
.diary-card h3 { margin-bottom: .25rem; font-size: .79rem; }
.diary-card p span, .arrivals dd { color: var(--muted); }
.status { display: inline-block; margin-top: .28rem; padding: .08rem .35rem; border: 1px solid #cbd9c9; border-radius: .25rem; color: var(--accent-dark); font-size: .7rem; font-weight: 620; }
.arrivals dl div { display: flex; justify-content: space-between; gap: .5rem; }
.arrivals dl div + div { margin-top: .22rem; }

.screen-body { display: grid; gap: .65rem; padding: .1rem .8rem .85rem; }
.screen-card, .screen-list-item, .screen-note, .payment-summary > div { min-width: 0; padding: .72rem; border: 1px solid #e8e7de; border-radius: .52rem; background: #f8f7f1; }
.screen-row { display: flex; align-items: center; justify-content: space-between; gap: .45rem .7rem; }
.screen-row > div { min-width: 0; }
.screen-row h3 { font-size: .93rem; line-height: 1.3; }
.screen-row p, .screen-note p, .payment-summary p { color: var(--muted); font-size: .79rem; line-height: 1.4; }
.screen-row h3 + p, .screen-note p { margin-top: .17rem; }
.screen-row .status { margin-top: 0; flex: none; }
.screen-title h3 { font-size: 1.15rem; }
.status-pending { background: var(--clay-light); color: #703d2d; border-color: #e9d3c4; }
.status-ready { background: var(--accent-light); }
.screen-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: .64rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.screen-facts dt { color: var(--muted); font-size: .71rem; }
.screen-facts dd { font-size: .87rem; font-weight: 700; }
.screen-note { background: #eef1e8; }
.screen-note strong { color: var(--accent-dark); font-size: .83rem; }
.payment-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.payment-summary strong { color: var(--accent-dark); font-size: 1.18rem; letter-spacing: -.035em; }
.screen-amount { display: grid; justify-items: end; flex: none; gap: .25rem; font-size: .87rem; }

.features { border-block: 1px solid var(--line); background: #eff0e8; }
.feature-inner { display: grid; grid-template-columns: minmax(0, .67fr) minmax(0, 1fr); gap: clamp(2rem, 9vw, 9rem); padding-block: clamp(4rem, 7.5vw, 7rem); }
.features h2, .register h2, .pet-owners h2 { margin-top: .85rem; font: 500 clamp(2.5rem, 4.8vw, 4.25rem)/1.02 Georgia, serif; letter-spacing: -.068em; }
.features h2 { max-width: 12ch; }
.feature-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #cfcec1; }
.feature-list li { display: grid; grid-template-columns: 1rem 1fr; column-gap: .9rem; padding-block: 1.12rem; border-bottom: 1px solid #cfcec1; }
.feature-list li::before { content: ""; grid-row: span 2; width: .66rem; height: .66rem; border: 1px solid var(--accent); border-radius: 2px; margin: .48rem 0 0 .08rem; transform: rotate(45deg); }
.feature-list h3 { font-size: 1.1rem; line-height: 1.35; letter-spacing: -.027em; }
.feature-list p { grid-column: 2; margin-top: .32rem; color: var(--muted); }

.pet-owners { background: #f8efe4; border-bottom: 1px solid #e7dbcc; }
.owner-inner { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(4rem, 7.5vw, 7rem); }
.owner-copy .eyebrow { color: var(--clay); }
.owner-copy .eyebrow span { background: var(--clay); }
.pet-owners h2 { max-width: 14ch; }
.owner-intro { max-width: 37ch; margin-top: 1rem; color: var(--muted); }
.owner-benefits { display: grid; gap: .85rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.owner-benefits li { padding: .08rem 0 .08rem .95rem; border-left: 2px solid #d8a58d; }
.owner-benefits h3 { font-size: 1.02rem; line-height: 1.35; }
.owner-benefits p { max-width: 49ch; margin-top: .23rem; color: var(--muted); font-size: .95rem; }
.owner-art { padding: clamp(.55rem, 1.3vw, .95rem); border: 1px solid #e4d3bf; background: #f0e0cb; border-radius: 1.25rem; }
.owner-art img { display: block; width: 100%; height: auto; border-radius: .72rem; }

.register { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(4rem, 7.5vw, 7rem); scroll-margin-top: 1.5rem; }
.register h2 { margin-top: 0; max-width: 13ch; }
.register > div > p { max-width: 34ch; margin-top: 1.1rem; color: var(--muted); }
form { padding: clamp(1.2rem, 2.8vw, 2.15rem); background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.fields label { display: block; min-width: 0; font-weight: 650; font-size: .95rem; }
.fields input, .fields select, .fields textarea { display: block; width: 100%; min-height: 3rem; margin-top: .32rem; padding: .56rem .68rem; color: var(--ink); background: var(--panel); border: 1px solid #abae9d; border-radius: .45rem; font-size: 1rem; }
.feedback-field { grid-column: 1 / -1; min-width: 0; }
.feedback-field p { margin-top: .22rem; color: var(--muted); font-size: .86rem; }
.feedback-field textarea { resize: vertical; }
.optional { margin-left: .25rem; color: var(--muted); font-size: .76rem; font-weight: 500; }
form .button { margin-top: 1.24rem; }
.form-status:not(:empty) { margin-top: .8rem; color: var(--accent-dark); font-size: .94rem; }
footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 5.05rem; padding-block: 1rem; }
.footer-inner span { font-weight: 750; letter-spacing: -.035em; }
.footer-inner a { color: var(--accent-dark); font-size: .9rem; text-underline-offset: .18em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@container (width < 26rem) {
  .diary-scroll-hint { display: block; }
  table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); box-shadow: 1px 0 var(--line); }
}

@media (max-width: 62rem) {
  .wrap { width: min(var(--max-width), calc(100% - 3rem)); }
  .hero { gap: 2.1rem; }
  .hero h1 { font-size: clamp(2.9rem, 6vw, 4.1rem); }
}

@media (max-width: 49rem) {
  .hero, .feature-inner, .owner-inner, .register { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 38rem; }
  .hero h1 { max-width: 13ch; }
  .feature-inner, .owner-inner, .register { gap: 2rem; }
}

@media (max-width: 33rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { min-height: 4.85rem; gap: .55rem; }
  .brand { font-size: 1.03rem; gap: .42rem; }
  .brand-mark { width: 2rem; height: 2rem; border-radius: .6rem; }
  .button-outline { padding-inline: .58rem; font-size: .82rem; }
  .hero { padding-block: 3.4rem; }
  .hero h1 { max-width: 12ch; }
  .diary-heading { padding-inline: .75rem; }
  .diary-details { gap: .4rem; padding: .55rem; }
  .diary-card { padding: .55rem; }
  .screen-body { padding-inline: .55rem; }
  .screen-card, .screen-list-item, .screen-note, .payment-summary > div { padding: .55rem; }
  .fields { grid-template-columns: minmax(0, 1fr); }
}
