/* Self-hosted fonts (SIL Open Font License, see fonts/). latin-ext covers Polish letters. */
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display-latin-ext-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Herr Von Muellerhoff"; src: url("fonts/herr-von-muellerhoff-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* Change these to restyle the whole site */
:root {
  --bg: #e9e5dc;      /* cold bone */
  --card: #f6f2e8;    /* eggshell */
  --ink: #111111;
  --muted: #55524c;
  --accent: #7a1f1f;  /* oxblood, used sparingly */
  --line: #d3cec3;
  --soft: #e0dbd0;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--ink); color: var(--card); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero, .section {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 5vw, 3rem);
  padding-right: clamp(1.25rem, 5vw, 3rem);
}


/* Language switch, top right */
.lang { position: absolute; top: clamp(1rem, 2.5vw, 1.75rem); right: clamp(1.25rem, 3vw, 2.5rem); font-family: var(--serif); font-size: .85rem; letter-spacing: .2em; color: var(--muted); }
.lang a { padding: .5rem .15rem; transition: color .2s; }
.lang a:hover { color: var(--accent); }
.lang a[aria-current] { color: var(--ink); border-bottom: 1px solid currentColor; }

/* Hero */
.hero { padding-top: clamp(5rem, 10vw, 8rem); padding-bottom: clamp(5rem, 12vw, 9rem); text-align: center; }
/* Pen-signature script for the name */
.hero h1 { font-family: "Herr Von Muellerhoff", var(--serif); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: min(10vw, 9rem); line-height: 1.15; }
.sub { display: inline-block; margin-top: clamp(1.25rem, 2.5vw, 2rem); padding: 1.1em 1.4em 0; border-top: 1px solid var(--ink); font-family: var(--serif); font-size: clamp(.72rem, 3.3vw, 1.15rem); text-transform: uppercase; letter-spacing: .3em; }
.lead { max-width: 34rem; text-wrap: pretty; margin: 2rem auto 2.5rem; font-size: 1.15rem; color: var(--muted); }

.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: var(--ink);
  color: var(--card);
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .9rem;
  transition: background .25s;
}
.btn:hover { background: var(--accent); }

.section { padding-top: 6rem; padding-bottom: 6rem; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 3rem; }

.project { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.thumb {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background: var(--soft);
  overflow: hidden;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.thumb:hover img { transform: scale(1.02); }
.shots { display: grid; grid-template-columns: 16fr 9fr; gap: .75rem; }
.shots .thumb { grid-column: 1 / -1; }
.shots > img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.thumb { border: 1px solid var(--line); }
.project-info h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: .75rem 0 1rem; }
.project-info p { color: var(--muted); text-wrap: pretty; }
.project-info p + p { margin-top: 1.25rem; }
.tag { font-family: var(--serif); font-size: .85rem; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); }

/* Contact footer with the giant email */
.contact { border-top: 1px solid var(--line); padding-top: 6rem; overflow: hidden; }

.mega {
  display: block;
  width: max-content;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  font-family: var(--serif);
  font-size: 7vw;              /* the script fits it to the exact width */
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.mega span {
  display: inline-block;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), color .3s;
  transition-delay: calc(var(--i) * 12ms);
}
.m-br { display: none; }
.mega:hover span { transform: translateY(-.08em); color: var(--accent); }
.mega:active span { transform: translateY(0); }

.details {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .75rem clamp(2.5rem, 8vw, 7rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: .18em;
}
.details a { margin-right: -.18em; transition: color .25s; }  /* offsets trailing letter-spacing so it centres */
.details a:hover { color: var(--accent); }
.hint {
  margin-top: 1.25rem;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}
.legal {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 4rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 2.5rem) 2rem;
  border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.legal a:hover { color: var(--ink); }
.reg { margin-top: .35rem; font-size: .8rem; letter-spacing: .02em; }
.reg span { white-space: nowrap; }
.reg span::before { content: "·"; margin: 0 .5em 0 .2em; }
.legal > a { white-space: nowrap; }

@media (max-width: 700px) {
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .section h2 { margin-bottom: 2rem; }
  .contact { padding-top: 4rem; }
  .m-br { display: inline; }   /* name breaks onto two lines */
  .mega { line-height: 1.05; text-align: center; }
  .details { gap: .5rem 2rem; font-size: 1.05rem; letter-spacing: .14em; }
  .details a { margin-right: -.14em; }
  .project { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24vw; line-height: 1; }
  .sub { letter-spacing: .22em; padding: 1.1em .8em 0; }
    .reg span { display: block; }
  .reg span::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mega span { transition: color .2s; }
  .mega:hover span { transform: none; }
}
.visit { color: var(--ink); border-bottom: 1px solid currentColor; transition: color .2s; }
.visit:hover { color: var(--accent); }
