@font-face {
    font-family: 'QT Friz Quad';
    src: url('/fonts/QTFrizQuad.woff2') format('woff2'),
         url('/fonts/QTFrizQuad.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('/fonts/source-sans-pro.woff2') format('woff2'),
         url('/fonts/SourceSansPro.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --page: #f4f3ef;
    --paper: #fff;
    --ink: #242522;
    --muted: #62635c;
    --line: #deded6;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 280px;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(20px, 5vw, 80px);
    background: var(--page);
    color: var(--ink);
    font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
    -webkit-text-size-adjust: 100%;
    line-height: 1.6;
}

.business-card {
    width: 100%;
    max-width: 1300px;
    min-height: clamp(540px, 49.23vw, 640px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    background: var(--paper);
    box-shadow: 0 20px 65px rgb(30 32 25 / 9%);

}

.card-image {
    position: relative;
    background: #222 url('/img/iverslund-titelfoto_1000x1000.jpg') right center no-repeat; 
    background-size: cover;
    min-width: 0;
overflow: hidden;     
}

.card-logo {
    position: absolute;
    left: 8%;
    bottom: 10%;
    width: 60%;
    height: auto;
    display: block;
    filter: drop-shadow(3px 5px 3px rgb(0 0 0 / 65%));
}

.card-content {
    min-width: 0;
    padding: clamp(28px, 4vw, 58px);
}

.eyebrow {
    margin: 0 0 25px;
    font-family: 'QT Friz Quad', Georgia, 'Times New Roman', serif;
    font-size: clamp(12px, 1.25vw, 16px);
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow span {
    margin-inline: .2em;
}

h1 {
    margin: 0;
    font-family: 'QT Friz Quad', Georgia, 'Times New Roman', serif;
    font-size: clamp(29px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.intro {
    width: 100%;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.contact {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

h2 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 500;
}

address {
    font-style: normal;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    overflow-wrap: anywhere;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 5px;
    border-radius: 1px;
}

.contact-link {
    display: table;
    padding-block: 8px;
    text-decoration: none;
}

.location {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.location span {
    margin-inline: .4em;
}

.card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 20px;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.card-footer a {
    padding-block: 6px;
    text-decoration: none;
}
.card-footer a:hover,
.card-footer a:focus,
.card-footer a:active,
.legal-links a:hover, 
.legal-links a:focus, 
.legal-links a:active  {
     text-decoration: underline
}

.card-footer span {
    align-self: center;
    font-family: 'QT Friz Quad', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 15px;
}

.legal-links {
    flex-basis: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.legal-links a {
}

.legal-dialog {
    width: min(900px, calc(100% - 48px));
    max-width: 900px;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    margin: auto;
    padding: 0 clamp(24px, 5vw, 52px) clamp(32px, 5vw, 52px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #eeeeea;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 20px 65px rgb(0 0 0 / 25%);
}

.legal-dialog::backdrop {
    background: rgb(0 0 0 / 55%);
}

.legal-dialog[open],
.legal-dialog[open]::backdrop {
    animation: legal-fade-in 220ms ease-out both;
}

.legal-dialog.is-closing,
.legal-dialog.is-closing::backdrop {
    animation: legal-fade-out 180ms ease-in both;
}

@keyframes legal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes legal-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}


body.legal-dialog-open {
    overflow: hidden;
}

.legal-dialog-controls {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
    padding-block: 24px;
    background: var(--paper);
}

.legal-close {
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #eeeeea;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.legal-close:hover {
    background: var(--page);
}

.legal-close:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.legal-content {
    overflow-wrap: anywhere;
    font-size: 17px;
}

.legal-content h2 {
    font-family: 'QT Friz Quad', Georgia, 'Times New Roman', serif;
    font-size: clamp(23px, 4vw, 30px);
    line-height: 1.3;
    margin-bottom: 26px;
}

.legal-content h3 {
    font-size: 20px;
    margin: 25px 0 8px;
}

.legal-content p {
    margin: 12px 0;
}

.legal-pending {
    padding: 16px;
    background: var(--page);
    border-left: 3px solid var(--muted);
}

.legal-date {
    color: var(--muted);
    font-size: 14px;
}

.legal-page {
    width: 100%;
    max-width: 900px;
    padding: clamp(20px, 5vw, 40px);
    background: var(--paper);
}

.legal-back {
    display: inline-block;
    margin-bottom: 28px;
}

@media (max-width: 1100px) {
.business-card {
    max-width: 600px;
    min-height: 0;
    grid-template-columns: 1fr;
}

.card-image {
    aspect-ratio: 1;
}

.card-content {
    padding: clamp(25px, 6vw, 48px);
}

.eyebrow {
    font-size: clamp(11px, 2.3vw, 16px);
}
}

@media (max-width: 380px) {
body {
    padding: 12px;
}

.card-content {
    padding: 24px 20px;
}

h1 {
    font-size: 28px;
}

.legal-dialog {
    padding-inline: 24px;
}
}

@media print {
body {
    padding: 0;
    background: #fff;
}

.business-card {
    max-width: 600px;
    min-height: 0;
    grid-template-columns: 1fr;
    box-shadow: none;
    break-inside: avoid;
}
.card-image {
    aspect-ratio: 1;
    print-color-adjust: exact;
}
}
