/*
Theme Name: Hamretun Premium – Visuell editor
Theme URI: https://hamretun.no/
Author: Hamretun
Description: Rediger hele Hamretun-nettsiden visuelt i WordPress Utseende → Rediger. Inkluderer redigerbar forside, meny, innlegg og designinnstillinger.
Version: 3.0.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: hamretun
*/
:root{--hm-green:#102c27;--hm-light:#eff5eb;--hm-cream:#f7f2e8}
*{box-sizing:border-box}body{margin:0}a{text-decoration:none}a:hover{text-decoration:underline}
.wp-site-blocks{overflow-x:hidden}
.hm-header{position:absolute;top:0;left:0;right:0;z-index:10;width:100%;padding:24px clamp(22px,5vw,90px);background:transparent}
.hm-header .wp-block-site-logo img{height:auto;max-width:100%}
.hm-header .wp-block-navigation{font-family:Arial,sans-serif;font-size:14px;font-weight:650}
.hm-header .wp-block-navigation a{color:#fff}
.hm-header .wp-block-navigation__responsive-container-open{color:#fff}
.hm-header .wp-block-navigation__responsive-container.is-menu-open{background:#102c27;color:#fff}
.hm-header .wp-block-navigation__responsive-container.is-menu-open a{color:#fff}
.hm-logo-fallback img{width:190px;height:auto;display:block}
.hm-hero{position:relative;isolation:isolate;min-height:100svh;display:flex;flex-direction:column;justify-content:center;background-color:var(--hm-green);background-image:linear-gradient(90deg,rgba(8,35,29,.94) 0%,rgba(8,35,29,.82) 27%,rgba(8,35,29,.40) 57%,rgba(8,35,29,.10) 100%),linear-gradient(0deg,rgba(8,35,29,.62),transparent 34%),url('assets/hamretun.jpg.png');background-size:cover;background-position:center 47%;padding:clamp(150px,20vh,245px) clamp(22px,5vw,90px) clamp(80px,13vh,145px)}
.hm-hero-content{position:relative;z-index:1;width:min(1150px,100%)}
.hm-eyebrow{font-family:Arial,sans-serif;font-size:11px;letter-spacing:.18em;font-weight:750;text-transform:uppercase;color:#ccdec4;margin:0 0 25px}
.hm-heading{font-family:Georgia,'Times New Roman',serif;font-size:clamp(48px,6.2vw,105px);line-height:1.08;letter-spacing:-.045em;font-weight:400;color:#fff;margin:0 0 22px}
.hm-heading-accent{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-weight:400;font-size:clamp(47px,6vw,100px);line-height:1.09;letter-spacing:-.05em;color:#d9e9d3;margin:0 0 27px}
.hm-intro{font-family:Arial,sans-serif;max-width:660px;font-size:clamp(17px,1.4vw,22px);line-height:1.75;color:#f0f6ee;margin:0}
.hm-news{background:#f8f8f4;color:#14392e;padding:90px max(24px,5vw)}.hm-news .wp-block-query{max-width:1250px;margin:auto}.hm-news-title{font-family:Georgia,serif;font-size:clamp(38px,4vw,58px);color:#17392e}.hm-news-label{font:700 12px Arial,sans-serif;letter-spacing:.14em;color:#638672}.hm-news .wp-block-post-template{gap:20px}.hm-news .wp-block-post{padding:28px;background:white;border:1px solid #e2e8e0;border-radius:5px}.hm-news .wp-block-post-title{font:normal 25px/1.22 Georgia,serif}.hm-news .wp-block-post-date{color:#6b8273;font-size:12px}.hm-news .wp-block-post-excerpt{font-size:15px;color:#54685b}
.hm-footer{background:#102c27;color:#d4e4d7;padding:25px max(24px,5vw)}.hm-footer p{font:12px/1.5 Arial,sans-serif;margin:0;color:#d4e4d7}
.hm-interior{padding:150px max(24px,5vw) 90px;min-height:75vh;background:#f8f8f4}.hm-interior> *{max-width:1100px;margin-left:auto;margin-right:auto}
.hm-interior h1{font:normal clamp(38px,5vw,68px) Georgia,serif;color:#18382e}
@media(max-width:850px){.hm-hero{background-image:linear-gradient(90deg,rgba(8,35,29,.91),rgba(8,35,29,.50)),url('assets/hamretun.jpg.png');min-height:720px}.hm-header{padding:20px 24px}.hm-logo-fallback img{width:145px}.hm-hero{padding:160px 24px 90px}.hm-heading{font-size:clamp(44px,8vw,75px)}.hm-heading-accent{font-size:clamp(42px,8vw,72px)}}
@media(max-width:550px){.hm-hero{min-height:710px}.hm-heading{font-size:clamp(43px,11vw,63px)}.hm-heading-accent{font-size:clamp(41px,10.5vw,60px)}.hm-intro{font-size:16px}.hm-news{padding:65px 20px}}
/* Editor previews show the same hero photograph and typography */
.editor-styles-wrapper .hm-hero{background-image:linear-gradient(90deg,rgba(8,35,29,.94),rgba(8,35,29,.30)),url('assets/hamretun.jpg.png');min-height:650px}
.editor-styles-wrapper .hm-header{position:relative;background:#102c27}

/* Blokkredigererens inline typografi og farger har nå forrang. */

/* v3.0.2: Fjern hvit stripe og uønsket WordPress-blokkavstand øverst. */
html, body { margin: 0; padding: 0; }
body { background-color: var(--hm-green); }
.wp-site-blocks { margin: 0; padding: 0; }
.wp-site-blocks > :first-child { margin-block-start: 0 !important; }
.wp-site-blocks > .wp-block-template-part,
.wp-site-blocks > .hm-hero { margin-block-start: 0 !important; }
.hm-header { margin-block-start: 0 !important; }
.hm-hero { margin-block-start: 0 !important; }
/* Behold normale mellomrom inne i artikler, menyer og øvrige blokker. */
