@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,480;9..144,600&family=Source+Sans+3:ital,wght@0,420;0,600;1,420&display=swap");

:root {
  --bg: #ead9c4;
  --paper: rgba(255, 251, 245, 0.86);
  --paper-solid: #fffaf3;
  --ink: #241e18;
  --muted: #6f675c;
  --line: rgba(70, 58, 42, 0.14);
  --accent: #3b5d45;
  --accent-soft: #7a9a7c;
  --wash: #e7d7c0;
  --shadow: 0 18px 40px -28px rgba(40, 28, 16, 0.45);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: #e4d2b8; }
body {
  font: 17px/1.55 "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: transparent;
  min-height: 100vh;
  isolation: isolate;
}
body > * { position: relative; z-index: 1; }
h1, h2, h3, .logo {
  font-family: Fraunces, "Iowan Old Style", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 560;
  letter-spacing: -0.02em;
}

body::before {
  content: "";
  position: fixed;
  inset: -22%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(36% 32% at 12% 18%, rgba(196, 108, 64, 0.62), transparent 62%),
    radial-gradient(28% 26% at 38% 8%, rgba(168, 86, 72, 0.42), transparent 68%),
    radial-gradient(42% 38% at 88% 12%, rgba(62, 110, 78, 0.56), transparent 64%),
    radial-gradient(24% 30% at 62% 36%, rgba(120, 92, 58, 0.36), transparent 70%),
    radial-gradient(48% 44% at 78% 88%, rgba(210, 154, 70, 0.54), transparent 62%),
    radial-gradient(30% 28% at 18% 78%, rgba(132, 78, 56, 0.44), transparent 70%),
    radial-gradient(22% 24% at 48% 62%, rgba(80, 118, 98, 0.34), transparent 72%),
    linear-gradient(165deg, #f3e6d3 0%, #e4d2b8 48%, #dcc4a4 100%);
  animation: wash 18s ease-in-out infinite;
}
body::after {
  content: "";
  position: fixed;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  animation: grain 26s linear infinite alternate;
}
@keyframes wash {
  0%   { transform: translate3d(-4%, 2%, 0) scale(1.04) rotate(0deg); }
  25%  { transform: translate3d(5%, -4%, 0) scale(1.12) rotate(1.6deg); }
  50%  { transform: translate3d(-2%, 5%, 0) scale(1.07) rotate(-1.1deg); }
  75%  { transform: translate3d(4%, 2%, 0) scale(1.14) rotate(0.8deg); }
  100% { transform: translate3d(-4%, 2%, 0) scale(1.04) rotate(0deg); }
}
@keyframes grain {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-5%, 4%, 0) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

.top, footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.95rem 1.6rem;
}
.top {
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.72);
  backdrop-filter: blur(16px);
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  color: var(--muted);
}
a { color: inherit; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 1.05rem; font-size: 0.94rem; }
nav a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
nav a:hover { color: var(--ink); border-bottom-color: var(--accent-soft); }
.logo {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.hero {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3.4rem;
}
body.landing .hero {
  max-width: none;
  width: 100%;
  padding: 1.6rem 0 3.4rem;
}
.lead {
  text-align: center;
  font-size: 1.05rem;
  margin: 0.2rem auto 1.8rem;
  color: var(--muted);
  max-width: 40rem;
  padding: 0 1.5rem;
}
.lead a { border-bottom: 1px solid currentColor; }
.portraits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.4vw, 1.6rem);
  align-items: end;
  width: 100%;
  padding: 0 clamp(0.6rem, 1.5vw, 1.6rem);
}
.portrait {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  padding: 0.55rem;
  background: rgba(255, 250, 243, 0.82);
  border: 1px solid rgba(70, 58, 42, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 252, 247, 0.7),
    0 16px 36px -24px rgba(40, 28, 16, 0.42);
}
.portrait img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}
.termine {
  max-width: 40rem;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}
.termine h2 {
  font-size: 1.15rem;
  margin: 1.8rem 0 0.7rem;
}
.evt { margin: 0 0 1.15rem; }
.evt h3 { margin: 0 0 0.2rem; font-size: 1.08rem; }
.evt .when { margin: 0 0 0.35rem; color: var(--muted); font-style: italic; }
.evt p { margin: 0; }

main.gallery {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  gap: 1.6rem;
  padding: 1.3rem 1.4rem 2.4rem;
  align-items: start;
}
.filters {
  position: sticky;
  top: 4.4rem;
  max-height: calc(100vh - 5.2rem);
  overflow: auto;
  padding-right: 0.4rem;
}
.filters h3 {
  margin: 1.15rem 0 0.4rem;
  font-size: 0.72rem;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.filters button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  padding: 0.28rem 0.45rem;
  cursor: pointer;
  font: inherit;
  color: var(--muted);
  border-radius: 0 8px 8px 0;
}
.filters button:hover { color: var(--ink); background: rgba(255,250,243,0.5); }
.filters button.on {
  border-left-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 1.6rem;
  align-items: start;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px -24px rgba(40, 28, 16, 0.5);
}
.card a.thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18rem;
  max-height: 26rem;
  padding: 0.7rem 0.75rem 0.35rem;
  background: linear-gradient(180deg, rgba(231,215,192,0.45), rgba(255,250,243,0.2));
}
.card img {
  width: 100%;
  height: auto;
  max-height: 24.4rem;
  object-fit: contain;
  display: block;
}
.card .body { padding: 0.8rem 0.95rem 1rem; }
.card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.28rem;
  line-height: 1.25;
}
.card .meta, .meta { margin: 0; color: var(--muted); font-size: 0.88rem; }
.page {
  max-width: 42rem;
  padding: 2rem 1.5rem 3rem;
  margin: 0 auto;
}
.page h1 { font-size: 2rem; margin: 0 0 0.8rem; }
.page h2 { font-size: 1.2rem; margin: 1.8rem 0 0.5rem; }
.work-view {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1.4rem 3rem;
}
.work-view img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin: 0 auto 1.2rem;
  background: transparent;
}
.work-view h1 { font-size: 2rem; margin: 0 0 0.4rem; }
.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.inquiry-list {
  margin-bottom: 1.4rem;
  padding: 0.2rem 0.2rem 0.4rem;
}
.btn {
  background: var(--ink);
  color: #f7f1e6;
  border: 0;
  padding: 0.72rem 1.35rem;
  cursor: pointer;
  font: inherit;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.btn:hover { background: #3a3128; }
.btn:disabled { opacity: 0.45; cursor: default; }
form { display: grid; gap: 0.6rem; }
input, textarea, select {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
}

.contact-wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.6rem 1.4rem 3.2rem;
}
.contact-head { margin-bottom: 1.35rem; }
.contact-head h1 { margin: 0 0 0.4rem; font-size: 2rem; }
.contact-head p { margin: 0; color: var(--muted); }
.contact-form {
  display: grid;
  gap: 1.15rem;
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}
.contact-form .opt { color: var(--muted); font-size: 0.85em; }
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  border-radius: 12px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.contact-form textarea { min-height: 9.5rem; resize: vertical; }
.fields-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form .actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.15rem;
}
.contact-form .hp,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.preset {
  margin: 0;
  padding: 0.85rem 1rem;
  background: rgba(231, 215, 192, 0.35);
  border-radius: 12px;
  color: var(--ink);
}
#contact-status, #inquiry-status { margin: 0; color: var(--accent); }

@media (max-width: 720px) {
  .portraits { grid-template-columns: 1fr; padding: 0 1.2rem; }
  .portrait img { max-height: none; }
}
@media (max-width: 800px) {
  main.gallery { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .grid { grid-template-columns: 1fr; }
  .fields-2 { grid-template-columns: 1fr; }
  .top { position: static; }
}
