/* =========================================================
   Noseams Custom — main stylesheet
   ========================================================= */

/* 1. Fonts
   AVUS only.
   Upload the AVUS W00 webfont files to /assets/fonts/ with these names:
   - avus.woff2
   - avus.woff
*/
@font-face {
    font-family: "Avus";
    src:
        url("../fonts/avus.woff2") format("woff2"),
        url("../fonts/avus.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 2. Variables */
:root {
    --ns-font-main: "Avus", Arial, Helvetica, sans-serif;
    --ns-black: #231f20;
    --ns-white: #ffffff;
    --ns-offwhite: #f7f7f5;
    --ns-grey: #efefef;
    --ns-line: #d7d3d1;
    --ns-muted: #7a7472;
    --ns-header-height: 132px;
    --ns-side-space: 46px;
    --ns-letter: 0.04em;
}

/* 3. Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: var(--ns-font-main);
    font-size: 13px;
    line-height: 1.35;
    color: var(--ns-black);
    background: var(--ns-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

/* 4. Global */
.ns-main {
    min-height: 70vh;
}

.ns-section--flush {
    position: relative;
    width: 100%;
}

.ns-inline-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 12px;
}

.ns-inline-links a,
.ns-inline-links span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ns-image-placeholder {
    width: 100%;
    min-height: 320px;
    display: grid;
    place-items: center;
    background: repeating-linear-gradient(45deg, #f3f3f3, #f3f3f3 10px, #e9e9e9 10px, #e9e9e9 20px);
    color: var(--ns-muted);
    border: 1px solid var(--ns-line);
    text-align: center;
    padding: 24px;
}

.ns-image-placeholder span {
    font-size: 11px;
    letter-spacing: var(--ns-letter);
    text-transform: uppercase;
}

/* 5. Header styles are loaded from header.css. */

/* 6. Homepage styles are loaded from home.css. */
/* 7. Product card styles are loaded from components.css. */
/* 8. Shop archive styles are loaded from shop.css. */
/* 9. Single-product styles are loaded from product.css. */
/* 10. Checkout styles are loaded from checkout.css. */

/* 11. Homepage newsletter */
.ns-newsletter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding: 44px var(--ns-side-space);
    background: var(--ns-grey);
}

.ns-newsletter h2 {
    margin: 0 0 8px;
    font-size: 16px;
}

.ns-newsletter p {
    max-width: 520px;
    margin: 0;
}

.ns-newsletter a {
    text-decoration: underline;
}

.ns-newsletter__options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    border: 0;
    padding: 0;
    margin: 0 0 12px;
}

.ns-newsletter__email {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.ns-newsletter__email input {
    min-height: 34px;
    border: 0;
    border-bottom: 1px solid var(--ns-black);
    background: transparent;
    padding: 6px 0;
}

.ns-newsletter-consent {
    margin: 10px 0 0;
    font-size: 10px;
    line-height: 1.45;
    opacity: 0.72;
}

.ns-newsletter__email button {
    min-width: 46px;
    border: 1px solid var(--ns-black);
    background: var(--ns-black);
    color: var(--ns-white);
}


/* 12. Generic page */
.ns-page {
    padding: 140px var(--ns-side-space) 90px;
}

.ns-page h1 {
    margin: 0 0 40px;
    font-size: clamp(36px, 6vw, 80px);
}


/* 13. Global responsive variables */
@media (max-width: 1200px) {
    :root { --ns-side-space: 36px; }
}

@media (max-width: 960px) {
    .ns-newsletter { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    :root { --ns-side-space: 22px; }
    body { font-size: 12px; }
    .ns-page { padding-left: 22px; padding-right: 22px; }
}

/* PageSpeed best-practices: avoid deprecated overflow:visible on replaced media.
   Applied only to img/video/canvas, so the visual layout remains unchanged. */
img,
video,
canvas {
    overflow: clip !important;
}

@supports not (overflow: clip) {
    img,
    video,
    canvas {
        overflow: hidden !important;
    }
}
