/* Praxis Nicoleta Frantescu: page layer on top of the tasteskill kit (assets/).
   Holds the local font, the palette as start.mjs brand printed it, and page CSS. */

/* Figtree, self-hosted (no request to a font CDN at runtime) */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
}

/* start.mjs brand: the logo's olive, sand and petrol on a warm white */
:root {
  --p-bg: #fbfaf6; --p-surface: #f3ecdf; --p-ink: #1f2e2c; --p-muted: #55605c;
  --p-accent: #535729; --p-accent-ink: #fbfaf6; --p-action: #535729; --p-action-ink: #fbfaf6;
  --p-inv-bg: #1f2e2c; --p-inv-surface: #2c3a38; --p-inv-ink: #fbfaf6; --p-inv-muted: #a0a6a3;
  --p-inv-accent: #fbfaf6; --p-inv-accent-ink: #1f2e2c; --p-inv-action: #fbfaf6; --p-inv-action-ink: #1f2e2c;
  --font-display: "Figtree", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.035em;
}

/* long German words: break at the soft hyphens set in the markup, never run past the column */
h1, h2, h3 { overflow-wrap: break-word; }
.prose, .legal, .facts dd, .footer__col li { overflow-wrap: break-word; }

/* the client's round logo beside her name */
.nav__logo { gap: var(--s-3); }
.nav__logo img { width: 40px; height: 40px; border-radius: 50%; }
/* a phone: the bar holds the logo, the name and the menu button; the main action is in the hero and in the sheet */
@media (max-width: 639px) {
  .nav__logo { font-size: 18px; gap: var(--s-2); }
  .nav__logo img { width: 36px; height: 36px; }
  .nav__bar { gap: var(--s-4); }
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; }
}

/* taps answer at once, the open menu sheet keeps its scroll to itself */
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: color-mix(in oklab, var(--accent) 18%, transparent); }
.nav.is-open .nav__links { overscroll-behavior: contain; }
a.credits { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a.credits:hover { text-decoration-color: currentColor; }

/* running text of the client's own copy */
.prose > * + * { margin-top: var(--s-4); }
.prose { hyphens: auto; }
.prose ul { list-style: disc; padding-left: 1.25em; display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 500; }
.prose h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.prose > h3 { margin-top: var(--s-6); }
.prose > h3 + p { margin-top: var(--s-2); }

/* ---------------------------------------------------------------- home */

/* the three methods: the sand tray photograph takes what the screen leaves above the list */
.offer-photo { margin: 0; flex: 1 1 0; min-height: 220px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.offer-photo > picture { display: block; width: 100%; height: 100%; }
.offer-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.offer-list { margin-top: var(--s-6); }
.offer-list > li { display: grid; gap: var(--s-2); align-content: start; }
.offer-list p { max-width: 44ch; }
@media (max-width: 1279px) { .offer-photo { flex: none; min-height: 0; aspect-ratio: 1500 / 550; } }
@media (max-width: 1023px) { .offer-list { row-gap: var(--s-6); } }
@media (max-width: 639px) { .offer-list { row-gap: var(--s-5); margin-top: var(--s-5); } }
@media (min-width: 640px) and (max-width: 1023px) { .offer-photo { flex: 1 1 0; aspect-ratio: auto; min-height: 260px; } }
@media (max-width: 639px) { .offer-photo { aspect-ratio: 16 / 9; } }

/* about: the photograph on the split's right column, as tall as the text beside it */
.about-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(620px, var(--ly-fit)); background: var(--surface); }
.about-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; }
/* stacked (tablet, phone): the photograph has no height of its own and takes what the screens leave under the text */
@media (max-width: 1023px) {
  #ueber-mich > .wrap.grid { grid-template-rows: auto minmax(220px, 1fr); row-gap: var(--s-6); }
  .about-photo { position: relative; height: auto; min-height: 220px; align-self: stretch; }
  .about-photo > img { position: absolute; inset: 0; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  #ueber-mich > .wrap.grid { grid-template-rows: auto minmax(160px, 1fr); }
  .about-photo { min-height: 160px; }
}

/* the close: the main action on the left, every way to reach the practice as ruled rows on the right */
.closing__cta.close--type { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-6); align-content: start; align-items: start; }
.closing__cta.close--type > * { grid-column: 1 / -1; }
.closing__cta.close--type > .btn--xl:not(.btn--wide) { width: 100%; justify-self: stretch; align-self: start; }
@media (min-width: 1024px) { .closing__cta.close--type > .btn--xl:not(.btn--wide) { width: min(100%, 420px); justify-self: start; } }
@media (min-width: 1024px) and (max-width: 1439px) { .closing__cta.close--type > .btn--xl:not(.btn--wide) { height: 68px; font-size: 25px; } }
@media (min-width: 640px) {
  .closing__cta.close--type > :is(.section-head, .btn--xl, .contact-note) { grid-column: 1 / span 5; }
  .closing__cta.close--type > .facts { grid-column: 7 / -1; grid-row: 1 / span 3; }
}
/* a tablet held upright: the same two columns, a little tighter, so the close and the links share one screen */
@media (min-width: 640px) and (max-width: 1023px) {
  .closing__cta.close--type { row-gap: var(--s-4); }
  .closing__links { gap: var(--s-5); }
  .closing__links > .grid { row-gap: var(--s-5); }
  .closing__cta.close--type > .facts > div { grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: var(--s-3); min-height: 48px; padding-block: var(--s-1); }
  .closing__cta.close--type > .btn--xl:not(.btn--wide) { height: 64px; }
  footer.closing > .wrap { row-gap: var(--s-6); }
}
.contact-note { max-width: 52ch; }
.contact-note a, .facts a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.contact-note a:hover, .facts a:hover { text-decoration-color: currentColor; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s-1) var(--s-5); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.facts > div:first-child { padding-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 1023px) {
  .facts > div { align-items: center; min-height: 56px; padding-block: var(--s-2); }
  .facts > div:first-child { padding-top: var(--s-2); }
  .facts a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 639px) { .facts > div { grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: var(--s-3); } }
@media (max-width: 359px) { .facts > div { grid-template-columns: minmax(0, 1fr); } .facts dt { margin-top: var(--s-2); } }

/* the three facts of the hero stand on the bottom line of the photograph */
@media (min-width: 1024px) {
  .hero--split .hero__text { align-self: stretch; display: flex; flex-direction: column; }
  .hero--split .hero__text > .hero-facts { margin-top: auto; padding-top: var(--s-6); }
}

/* laptops with a low screen: a section grows with its text instead of running into the next one */
@media (min-width: 1280px) and (max-height: 880px) {
  main > :is(section, .section):not(.hero), footer.closing { height: auto; min-height: 100vh; min-height: 100svh; }
}
@media (min-width: 1024px) and (max-height: 720px) {
  main > .hero { height: auto; min-height: 100vh; min-height: 100svh; }
  .hero--split .hero__media { min-height: 460px; }
}

/* ---------------------------------------------------------------- inner pages (the methods, legal, 404)
   Their text is the client's own and as long as it is, so these pages run at their natural height. */
main.doc { padding: calc(var(--nav) + var(--hgap)) 0 var(--s-9); }
.doc h1 { max-width: 18ch; }
.doc h2 { font-size: clamp(24px, 1.1vw + 19px, 36px); line-height: 1.15; }
.doc-photo { margin: var(--s-7) 0 0; aspect-ratio: 1500 / 550; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.doc-photo > picture { display: block; width: 100%; height: 100%; }
.doc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) { .doc-photo { aspect-ratio: 16 / 9; margin-top: var(--s-6); } }
.topics { margin-top: var(--s-8); }
.topic { padding-block: var(--s-7); border-top: 1px solid var(--line); row-gap: var(--s-5); }
.topic:last-child { padding-bottom: 0; }
.topic .prose { max-width: 66ch; font-size: 17px; line-height: 1.65; }
@media (min-width: 1024px) { .topic .prose { font-size: 18px; } }
@media (min-width: 1024px) { .topic { padding-block: var(--s-8); } }
.doc-more { margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.doc-more ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-7); margin-top: var(--s-5); }

/* legal pages */
.legal { max-width: 72ch; hyphens: auto; }
.legal h1 { font-size: var(--t-h2); line-height: 1.1; max-width: none; }
.legal h2 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; margin-top: var(--s-7); }
.legal p, .legal ul { margin-top: var(--s-3); }
.legal ul { list-style: disc; padding-left: 1.25em; display: grid; gap: var(--s-2); }
.legal strong { font-weight: 500; }
.legal a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { text-decoration-color: currentColor; }
.legal .updated { color: var(--muted); }
.legal .placeholder { background: var(--surface); box-shadow: -4px 0 0 var(--surface), 4px 0 0 var(--surface); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* 404 */
.missing { min-height: 56vh; display: grid; align-content: center; justify-items: start; gap: var(--s-5); }

/* the plain footer of the legal pages */
footer.footer:not(.closing) { padding-top: var(--s-8); }

/* the portrait on a phone and a tablet: a tall frame of its own, so the face and the hand both show;
   the hero grows with it instead of squeezing the picture into what the first screen leaves */
@media (max-width: 1023px) {
  main > .hero { height: auto; min-height: 100vh; min-height: 100svh; }
  .hero--split .hero__media { flex: 0 0 auto; aspect-ratio: 1 / 1; min-height: 0; }
}
@media (max-width: 639px) {
  .hero--split .hero__media { aspect-ratio: 4 / 5; }
}

/* about: the career list under the text, in the same rows as the contact facts but smaller */
.career__title { margin: var(--s-6) 0 var(--s-3); font: 500 var(--t-small, 14px)/1.4 var(--font-text); color: var(--muted); letter-spacing: 0; }
.career { font-size: var(--t-small, 14px); }
.facts.career > div { grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s-1) var(--s-4); min-height: 0; padding-block: var(--s-2); align-items: start; }
.facts.career dd { font-weight: 400; }
/* the section grows with the career list instead of cutting it at one screen */
#ueber-mich { height: auto; min-height: 100vh; min-height: 100svh; }
