/*
 * Eton Place – Schönes aus England
 * Responsive re-make: peony wallpaper, dark green panel, oval logo,
 * rose-coloured menu, endless strip of shop photos.
 */

:root {
  --green: #103709;
  --green-2: #1a4a10;
  --rose: #f7cfd3;
  --olive: #a3b84e;
  --olive-dark: #7f9630;
  --cream: #fffbda;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream) url(../sites/default/themes/etonplace/images/background.png);
  color: #fff;
  font: 1.02rem/1.7 var(--sans);
}

img { max-width: 100%; height: auto; }
a { color: var(--rose); text-underline-offset: .15em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--green); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ------------------------------------------------------------ panel */

.page {
  max-width: 1000px;
  margin: clamp(70px, 10vw, 110px) auto clamp(20px, 6vw, 60px);
  background: var(--green);
  box-shadow: 0 12px 40px rgb(16 55 9 / .35);
  border-radius: 6px;
}

/* ------------------------------------------------------------ header */

.top { text-align: center; padding: 0 1rem .9rem; }
.logo { display: inline-block; margin-top: -62px; }
.logo img { display: block; width: 218px; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .3)); }

.nav ul { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.nav li { display: flex; align-items: center; }
.nav li + li::before { content: "•"; color: var(--rose); opacity: .8; padding: 0 .55rem; }
.nav a { color: var(--rose); font-weight: 700; font-size: .95rem; text-decoration: none; padding: .35rem .1rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; border-bottom-color: var(--rose); }
.nav a.is-active { color: var(--olive); }

/* ------------------------------------------------------------ photo strip */

.strip { overflow: hidden; height: clamp(100px, 16vw, 140px); background: var(--green-2); }
.strip__track { display: flex; width: max-content; height: 100%; animation: strip 70s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip img { display: block; height: 100%; width: auto; max-width: none; }
@keyframes strip { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ content */

.main { padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.2rem, 5vw, 3rem) 2rem; max-width: 50rem; margin: 0 auto; min-height: 320px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--rose); line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.3rem); margin: 0 0 .8rem; font-style: italic; }
h1::after { content: ""; display: block; width: 3.5rem; height: 2px; margin-top: .6rem; background: var(--olive); }
h2 { font-size: 1.35rem; margin: 1.6em 0 .4em; }
.main p { margin: 0 0 1em; }
.center { text-align: center; }
.main img { border-radius: 4px; }

/* Team list (old view) as cards */
.view-content { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4rem; margin-top: 1rem; }
.views-row { background: var(--green-2); border-radius: 6px; padding: .8rem; text-align: center; }
.views-row img { width: 100%; height: auto; border-radius: 4px; }
.views-field-title { margin-top: .5rem; font-family: var(--serif); color: var(--rose); }

.credits { margin-top: 2rem; font-size: .88rem; opacity: .85; }
.stand { margin-top: 2rem; font-size: .9rem; opacity: .8; }
.text ul, .main ul { padding-left: 1.3rem; }

/* Partner list */
.main .partner-list { list-style: none; padding: 0; margin: 1.2rem 0 0; columns: 3 12rem; column-gap: 2rem; }
.partner-list li { break-inside: avoid; padding: .45rem 0; border-bottom: 1px solid rgb(247 207 211 / .18); }
.partner-list a { color: var(--rose); text-decoration: none; font-family: var(--serif); font-size: 1.08rem; }
.partner-list a::after { content: " ↗"; font-size: .8em; opacity: .6; }
.partner-list a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------ footer */

.foot { border-top: 1px solid rgb(247 207 211 / .2); padding: 1.1rem 1.5rem 1.4rem; text-align: center; color: var(--olive); font-size: .92rem; }
.foot p { margin: .1rem 0; }
.foot a { color: var(--olive); }

/* ------------------------------------------------------------ small screens */

@media (max-width: 720px) {
  .page { margin: 64px 0 0; border-radius: 0; }
  .logo img { width: 170px; }
  .logo { margin-top: -48px; }
  .nav ul { gap: .1rem 1.1rem; }
  .nav li + li::before { display: none; }
  .nav a { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; }
  .strip__track { animation: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .page { background: #fff; box-shadow: none; margin: 0; }
  .nav, .strip { display: none; }
  h1, h2, h3, a, .foot { color: #000; }
}
