/* The two typefaces, kept on this server (no request to another one before text can show). Latin and the extended
   Latin that Croatian needs; both are variable files, one per range. */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
  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: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/space-grotesk-latin.woff2) format('woff2');
  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; }

/* ARHITEKTURA RN: shared tokens, header, buttons, form fields, sections and footer for every page.
   The look is a drawing on tracing paper: graphite lines and text, a fine grid, signal yellow for the main actions.
   One look for everyone: the site stays on tracing paper when the system is in dark mode. */
:root {
  --paper: #E8E6E0;        /* the tracing paper */
  --paper-2: #DFDCD4;      /* a band one shade deeper */
  --deep: #DCD8CF;         /* wells that hold a model picture */
  --grid: #DEDBD4;         /* the fine grid on the paper */
  --grid-2: #D1CDC3;       /* the grid in the wells */
  --ink: #22252A;          /* graphite: text and walls */
  --mute: #54585E;
  --nav: #3C4046;
  --line: #3F444B;         /* line work and small labels */
  --dim: #99968E;          /* dimension lines */
  --rule: #CCC8BE;
  --rule-2: #AEA99E;       /* sheet borders */
  --accent: #F2C14E;       /* signal yellow, as a fill */
  --accent-ink: #7A5200;   /* the same yellow, dark enough to read as text on the paper */
  --on-accent: #22252A;
  --focus: #7A5200;
  --band: #2A2D31;         /* the one dark band on a light page */
  --band-grid: #33373C;
  --band-ink: #EDEBE5;
  --band-mute: #B4B6B9;
  --plan-glass: #4A7F9C;
  --ph-bg: #F6E7A6;
  --ph-ink: #5A4600;
  --m-body: #FBFBF9;
  --m-roof: #DEDCD6;
  --m-brick: #A8644A;
  /* materials named in the office's models (tools/materials.py): generic tones, not the real stone or tile colour */
  --m-stone: #D2C9B5;
  --m-tile: #9F6C55;
  --m-concrete: #C3C1BB;
  --m-site: #CFCBC1;
  --m-water: #A9C3CF;
  --m-line: #2B2E33;
  --m-glass: #8FB2C4;
  --m-door: #B78E5F;
  --m-alu: #7D868B;
  --m-stair: #E3B500;
  --m-figure: #D9A400;
  --m-tree: #A9B5A3;
  --m-shadow: 0.16;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--paper);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.lbl { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
/* About a project: the architect's own word, and its facts in a row of boxes */
.voice { margin: 0 0 32px; padding: 18px 20px; border: 1px solid var(--rule-2); background: var(--paper); display: grid; gap: 8px; }
.voice .lbl { color: var(--line); }
.voice p { color: var(--ink); }
.facts-row { display: flex; flex-wrap: wrap; margin: 0; border: 1px solid var(--rule-2); background: var(--paper); }
.facts-row div { flex: 1 1 150px; display: grid; gap: 4px; padding: 14px 18px; border-right: 1px solid var(--rule); }
.facts-row dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.facts-row dd { margin: 0; font-family: var(--mono); font-size: 17px; }
.next-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
/* Pictures of a project as numbered sheets: a photo fills its frame, a drawing lies on a white sheet (or a dark
   one, when its lines are light) */
.pic-sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.pic-sheets figure { margin: 0; border: 1px solid var(--rule-2); background: var(--paper); display: flex; flex-direction: column; min-width: 0; }
.pic-sheets figure:first-child { grid-column: 1 / -1; }
.pic-sheets .bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--rule-2); }
.pic-sheets .bar .a { color: var(--accent-ink); } .pic-sheets .bar .b { color: var(--mute); }
.pic-sheets a.pic { display: grid; place-items: center; flex: 1; min-height: 0; background: var(--deep); }
.pic-sheets a.pic img { display: block; width: 100%; height: auto; }
.pic-sheets a.pic.white { background: #FFFFFF; padding: clamp(14px, 2.4vw, 32px); }
.pic-sheets a.pic.dark { background: #1D2024; padding: clamp(14px, 2.4vw, 32px); }
.pic-sheets a.pic.white img, .pic-sheets a.pic.dark img { max-height: 760px; width: auto; max-width: 100%; }
.pic-sheets figcaption { padding: 12px 16px 14px; border-top: 1px solid var(--rule-2); color: var(--mute); font-size: 15px; }
@media (max-width: 899px) { .pic-sheets { grid-template-columns: minmax(0, 1fr); } }
/* Missing information, to be filled in */
.ph {
  background: var(--ph-bg); color: var(--ph-ink);
  padding: 0 4px; border-radius: 2px; outline: 1px dashed color-mix(in srgb, var(--ph-ink) 45%, transparent);
  font-style: normal; text-transform: none; letter-spacing: 0;
}

/* Header */
.site-head {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 20;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
/* The mark: a section line through a circle, with a yellow arrow, as on a drawing */
.wordmark { text-decoration: none; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.wordmark svg { width: 26px; height: 26px; flex-shrink: 0; }
.wordmark svg .ln { fill: none; stroke: var(--line); stroke-width: 1.4; }
.wordmark svg .ar { fill: var(--accent); }
.wordmark .wm { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark .wm b { font-weight: 600; font-size: 16px; letter-spacing: 0.01em; }
.wordmark .wm small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--line); }
.site-nav { display: flex; gap: clamp(14px, 3vw, 28px); align-items: center; }
.site-nav a { text-decoration: none; color: var(--nav); }
.site-nav a:hover { color: var(--accent-ink); }
.site-nav a.nav-cta {
  color: var(--accent-ink); border: 1px solid var(--accent-ink); padding: 9px 14px; white-space: nowrap;
}
.site-nav a.nav-cta:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
/* The language switch (public/i18n.js adds it): three two-letter links, the current one marked */
.site-nav .lang { display: flex; gap: 2px; padding-left: clamp(6px, 1.5vw, 16px); border-left: 1px solid var(--line); }
.site-nav .lang a { min-width: 26px; padding: 6px 4px; text-align: center; }      /* big enough to hit with a finger */
.site-nav .lang a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 380px) {      /* a small phone: the header's button a little tighter, so nothing sticks out of the screen */
  .site-head { gap: 8px; }
  .wordmark { gap: 8px; }
  .site-nav a.nav-cta { padding: 9px 9px; letter-spacing: 0.05em; font-size: 11px; }
}
@media (max-width: 520px) {      /* a phone's header has no room beside the button: the switch takes the line under the name */
  .wordmark .wm small { visibility: hidden; }
  .site-nav .lang { position: absolute; left: calc(var(--gutter-l) + 34px); bottom: 2px; padding-left: 0; border-left: 0; font-size: 11px; letter-spacing: 0.14em; }
}
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.site-nav a.nav-cta[aria-current="page"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); text-decoration: none; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 560; letter-spacing: 0.01em;
}
.cta:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.cta.ghost { background: transparent; color: var(--ink); outline: 1px solid var(--rule); }
.cta.ghost:hover { outline-color: var(--ink); }
/* Buttons are square, like the boxes on a title block: yellow for the main action, graphite, or an outline */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 16px; padding: 14px 22px; border-radius: 0; border: 0; cursor: pointer;
  text-decoration: none; transition: background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.dark:hover { background: color-mix(in srgb, var(--ink) 84%, var(--accent)); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 500; }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }

/* Sections after the stage */
.section {
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--rule); background: var(--paper);
  position: relative; z-index: 1;
}
.section.alt { background: var(--paper-2); }
/* Drawing paper: a fine 32 px grid */
.section.grid, .grid-paper {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
/* The one contrasting band: dark on the light page, pale on the dark one */
.section.band {
  color: var(--band-ink); border-top: 0;
  background-color: var(--band);
  background-image: linear-gradient(var(--band-grid) 1px, transparent 1px), linear-gradient(90deg, var(--band-grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
.section.band p, .section.band .eyebrow { color: var(--band-mute); }
.section .eyebrow.ln { color: var(--line); }
.section-inner {
  max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px);
}
.section-inner.wide { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.section h2 {
  margin: 0; font-weight: 500; font-size: clamp(34px, 4.4vw, 60px); line-height: 1;
  letter-spacing: -0.03em; text-wrap: balance;
}
.section .eyebrow { color: var(--mute); margin-bottom: 18px; }
.section p { margin: 0; max-width: 60ch; font-size: 17px; color: var(--mute); }
.section p + p { margin-top: 14px; }
.section .lead-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: end; }


.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.wide, .check.wide { grid-column: 1 / -1; }
.field .mono { color: var(--mute); text-transform: none; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 0;
  padding: 10px 12px; width: 100%; min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field input[type="file"] { padding: 8px; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; color: var(--mute); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input, .field select, .field textarea { border-radius: 0; padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent);
}

.site-foot {
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 36px 40px;
  border-top: 1px solid var(--rule); color: var(--mute); background: var(--paper);
  position: relative; z-index: 1;
}
.site-foot .inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 18px; }
.impressum { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 32px; font-size: 13px; line-height: 1.6; }
.impressum > span { display: block; }
.site-foot .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

@media (max-width: 899px) {
  .section-inner, .section .lead-row { grid-template-columns: minmax(0, 1fr); }
  .facts-row dt { font-size: 12px; }
  .site-foot a, .mini-foot a { display: inline-block; padding-block: 10px; }      /* room for a finger */
  .fields { grid-template-columns: minmax(0, 1fr); }
  .site-nav a.hide-s { display: none; }
  .wordmark { font-size: 13px; letter-spacing: 0.14em; }
}
